Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions plugins/Jialei-03/mcode-repowiki/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "mcode-repowiki",
"version": "0.6.0",
"description": "Turn any codebase into an always-up-to-date local Wiki. Helps you and MiniMax Code understand unfamiliar projects fast, jump straight to the right files, see dependent files before editing, and save tokens.",
"author": {
"name": "Jialei-03",
"url": "https://github.com/Jialei-03"
},
"homepage": "https://github.com/MiniMax-AI/MiniMax-Code-Plugins/tree/main/plugins/Jialei-03/mcode-repowiki",
"repository": "https://github.com/MiniMax-AI/MiniMax-Code-Plugins.git",
"license": "Apache-2.0",
"keywords": [
"wiki",
"codebase",
"documentation",
"onboarding",
"read-code",
"code-map",
"save-tokens",
"architecture",
"repowiki",
"mcp"
],
"skills": [
"./skills/SKILL.md",
"./skills/mcode-repowiki/SKILL.md"
],
"mcpServers": {
"mcode-repowiki": {
"type": "stdio",
"command": "node",
"args": [
"./server/main.mjs"
],
"cwd": "${PLUGIN_ROOT}"
}
}
}
60 changes: 60 additions & 0 deletions plugins/Jialei-03/mcode-repowiki/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Changelog

## 0.6.0

Keeping the Wiki current
- Every citation is recorded with the symbol it points into and a hash of the cited lines. Line sync follows the symbol, so citations whose label does not name the symbol now move with the code too, and part-of-symbol ranges keep their length.
- Freshness is checked per citation: code that only moved is fixed silently; code whose content changed, or a deleted file, is reported with the chapter and the exact citation. Before, the post-commit sync refreshed the stored hashes, so chapters with out-of-date prose stopped being reported after the first commit.
- `wiki_plan` reports which chapters cite changed code and how to update them; `mark_reviewed` confirms a chapter is still correct. `repowiki status` prints the same report for people, with a prompt to paste into MiniMax Code; `--reviewed` marks chapters as checked.
- `wiki_serve` installs the post-commit hook. Before, only the terminal commands did, so Wikis built inside MiniMax Code never re-synced on commit.
- The reader shows which citations changed at the top of an affected chapter, with "copy update prompt" and "mark as checked" buttons.
- Fixed: when one citation moved onto the lines another citation used to have, sync could give both the same range.
- The post-commit hook falls back to `node` on `PATH` when the Node that installed it is gone (for example after a MiniMax Code upgrade), and skips quietly if the plugin was removed.
- Chapters edited without `wiki_write_page` (a plain file write, a person's edit) keep their anchors in step with their text: citations still present keep their original anchor, new ones get one, removed ones are dropped. Before, such chapters kept the anchors of the text they replaced, so freshness checks watched citations that no longer existed and missed the real ones.
- Each module evidence pack from `wiki_plan` ends with how to save the chapter (`wiki_write_page`, not a plain file write), for agents that skip the blueprint or the skill.

Code lookup
- `wiki_locate` lists who imports a symbol from resolved import statements, following package entries (`exports`, `dist/*.js` → `src/*.ts`) and re-exports, grouped by package with the import line; files that only contain the same word (comments, same-named parameters) are counted, not listed. Before, a whole-word search returned them all, the AI distrusted the list and grepped again: on earendil-works/pi impact analysis went from +5% tokens with the plugin to −14%.
- `wiki_locate` with only `file` lists every file importing anything that file exports; each result names the package and its test/build scripts.
- `file` may be a folder: its package, entry and each file's symbols; with `symbol`, the declaring file in that folder is found first.

Windows
- Fixed: the MCP server never started on Windows, or from any folder whose path has spaces: its "am I the entry script" check compared a URL path (`/C:/...`, `%20`) with a file path, so it exited silently.
- `scripts/install-local.mjs` installs a `repowiki.cmd` launcher on Windows, finds `mcode` on `PATH` (where npm puts it), and says when the launcher folder is not on `PATH`. Before, it printed "installed" without installing the command or enabling the plugin.
- `repowiki --open` opens URLs with `&` correctly on Windows.

Wiki writing
- `wiki_write_page` returns writing checks for the agent to fix: missing module sections, walkthrough steps without citations, citations over 200 lines, citations that point at no declaration, exact line or file counts in prose, very long paragraphs, an overview without chapter links or code citations, unquoted Mermaid labels.
- The skill now asks for chapters written for two readers (plain sentences first, self-contained sections, `[Symbol · file:Lx-Ly]` citations, no numbers that go stale) and adds an overview structure with a "where to change what" table and a glossary.

Docs
- README and DESIGN list every file the plugin writes outside `.repowiki/` (hook block, `~/.repowiki/registry.json`, parse cache).
- The graph animation is 0.3 MB instead of 2.5 MB (shared palette, changed regions only).
- README: install steps, the four tools, what happens to the Wiki when code changes, uninstalling; the measured table now also shows all runs with the plugin, including those where the AI did not query the Wiki.

## 0.5.0

Reader
- Notion-style look: warm neutrals, page icons, coloured callouts, tags and diagram groups; short titles in the sidebar, stats as tags, module summary under the title.
- Dependency graph rewritten as a separate module: live layout you can drag, neighbours highlighted on hover, labels that appear as you zoom, colour by module and brightness by how often a file is imported. Clicking a file lists who imports it and what it imports, each with a one-line description.
- One-line descriptions for files and modules (`.repowiki/descriptions.json`, falling back to chapter subtitles, doc comments and package manifests), hot-reloaded.
- Sync page shows one row per commit and readable line moves (`116–191 → 162–164 行`).

Wiki writing
- Plain chapter titles (项目概览, 整体架构, module name); no repo name, stats, paths or adjectives.
- Module chapters follow six sections: what it does, where it sits, core concepts, one call step by step, how to change it, key files.
- Packages holding at least 10% of the code always get their own chapter; up to 10 modules plus one "other packages" chapter.
- `wiki_plan` no longer points agents at removed tools.

Code lookup
- `wiki_locate` with `symbol` lists every file that uses it (repo-wide whole-word search, test files marked). Before: 7 of 27 files for `SessionEntry` in earendil-works/pi; now 27/27.
- Multi-line function signatures with a `= {}` default are parsed to their real end.
- Clearer guidance on when to call `wiki_locate`, including before code changes.

Docs
- README: measured results from 43 MiniMax Code runs with and without the plugin.
- DESIGN rewritten in plain language, with a Chinese version.

## 0.4.0 and earlier

See the git history of `plugins/Jialei-03/mcode-repowiki`.
Loading