PluginPartly tested (needs an account)
Project intelligence for agents
rm-context
Scans your repo into a local knowledge graph, routes work to specialised agents, and keeps project context across Claude Code sessions.
- Works with
- Claude Code
- Good for
- Build an app, Everyone
What it does
RM Context turns a repository into a lasting knowledge base for Claude Code. A dependency-free Node.js CLI scans the project into .rmcontext/ and builds a knowledge graph in which every fact points to a file and line. From there it can write documents from 49 templates (FSD, SRS, ERD, ADR and more), make plans and Gantt charts, and build an offline project viewer.
The Claude Code plugin adds nine specialised agents, 29 slash commands under /rmc:, and hooks that add a short project summary when a session starts and relevant knowledge when you send a prompt. /rmc:run <task> runs a whole task as planned stages with verification. Model routing tries to give each delegated task the smallest model that fits; it cannot change your main session's model.
Example prompts
- "/rmc:init"
- "/rmc:run <task>"
- "/rmc:feature <description>"
- "/rmc:fsd <title>"
- "Where is the users table written?"
- "Approve FSD-001, approved by Jane Doe"
How to install
/plugin marketplace add rmtemplate/rm-context/plugin install rmc@rm-context-marketplaceHow to use it
Restart Claude Code when prompted. In a project, type /rmc:init to scan it into .rmcontext/. Then use /rmc: commands such as /rmc:run <task>, /rmc:fsd <title> or /rmc:viewer. Hooks add a short project summary at session start and relevant knowledge to your prompts.
Check it works
Run claude plugin list in a terminal. It should show rmc@rm-context-marketplace enabled. Or type /rmc:status inside a project: it reports the project status, or says the project is not initialized yet.
Common problems
- Old command prefix — if you still have
/rm-context:commands, uninstallrm-context@rm-context-marketplace, then installrmc@rm-context-marketplace. Do not keep both, or every hook runs twice — https://github.com/rmtemplate/rm-context/blob/main/docs/integrations/CLAUDE_CODE.md - Marketplace stale —
/plugin marketplace update rm-context-marketplace— https://github.com/rmtemplate/rm-context/blob/main/docs/integrations/CLAUDE_CODE.md - Subagents start in the background — set
CLAUDE_CODE_FORK_SUBAGENT=0in theenvof your Claude Code settings — https://github.com/rmtemplate/rm-context/blob/main/docs/integrations/CLAUDE_CODE.md - Too much added context — set
"enabled": falseunderautoContextin.rmcontext/config.json, or setRMC_AUTO_CONTEXT=0— https://github.com/rmtemplate/rm-context - PDF or DOCX export fails — PDF needs Chrome, Chromium or Edge (or
RMC_CHROME); DOCX needs pandoc — https://github.com/rmtemplate/rm-context
Other assistants
- Codex, OpenCode and Cursor: the README marks them as planned adapters with an experimental manual setup that has not been tested; this entry covers Claude Code only — https://github.com/rmtemplate/rm-context
What to watch out for
- Needs Node.js 18.17 or newer. Hooks run node scripts on SessionStart, UserPromptSubmit (up to 1,200 tokens of project knowledge per prompt), PostToolUse (records changed files), Stop (one incremental refresh and a token-usage record) and on rmc subagent start and stop. The README says they make no model calls
- PreToolUse hooks can refuse tool calls: they deny Agent/Task calls that would run an rmc agent in the background, a second one at a time or nested, and they ask before or deny database clients and migration runners in Bash during a protected database change
- /rmc:init writes .rmcontext/ in the repository and adds a managed RM Context section (about 2,000 characters) to the project CLAUDE.md, creating the file if needed. If CLAUDE.md exists it asks combine or replace; without a way to ask it combines. Opt out with rmc init --no-claude-md
- Database work can run sqlcmd, mysql or psql. On local, dev and test databases it can run the project's own migration command; on staging it can apply after a verified backup and two approvals; production is plan only unless you ask. The README says live servers were not exercised by its tests
- Delegates to nine agents and picks haiku, sonnet or opus per task, on your Claude Code plan or API usage. rmc route benchmark run --approve starts claude -p twice and is billed
- Exports: PDF needs Chrome, Chromium or Edge, DOCX needs pandoc, and Mermaid diagrams in HTML exports load from cdn.jsdelivr.net
- Foreground subagents need CLAUDE_CODE_FORK_SUBAGENT=0 in your Claude Code settings; the plugin cannot set it
Licence and author
- Licence
- MIT
- Author
- RM Template (rmtemplate)
- Source code
- github.com/rmtemplate/rm-context
How we tested it
We installed it on an empty test computer on 7 Nov 2026. Partly tested: installed in a clean test system, but its main features need an account or key we did not use.
No command was run in a project; the hooks, scan and agents were not tested.
Technical details of the test
- Date
- 7 Nov 2026
- Method
- Reviewed against the repository at 62c7b50 (plugin 0.5.1, no tags): README, docs/integrations/CLAUDE_CODE.md, both manifests, hooks/hooks.json and scripts/hooks.mjs. Install tested in a clean container (oexp-sandbox image, no account) with the README's terminal form: claude plugin marketplace add rmtemplate/rm-context, then claude plugin install rmc@rm-context-marketplace; claude plugin list showed rmc 0.5.1 enabled.
Checked again on 7 Nov 2026
Alternatives
- claude-mem — records what the agent did in past sessions and brings it back; no project graph or documents
- Planning with Files — keeps the plan and progress of a long task in plain files; no scan or agents
FAQ
- Q: Does it need a cloud account? A: No. The knowledge stays in
.rmcontext/in your repository. Agent work uses your Claude Code login. - Q: Will hooks block my tools? A: Sometimes, by design. They refuse an rmc agent call that would run in the background, nested or beside another one, and they ask before or deny database commands during a protected change.
- Q: Will it change my CLAUDE.md? A:
/rmc:initadds a managed section to the project CLAUDE.md. Your global~/.claude/CLAUDE.mdis not touched. Usermc init --no-claude-mdto skip it. - Q: Can I use it in Codex today? A: Only as an untested manual setup with the standalone CLI. Claude Code is the supported integration.
Sources
- github.com/rmtemplate/rm-context
- github.com/rmtemplate/rm-context/blob/main/docs/integrations/CLAUDE_CODE.md
- github.com/rmtemplate/rm-context/blob/main/hooks/hooks.json
- github.com/rmtemplate/rm-context/blob/main/scripts/hooks.mjs