Repository navigation
Highlights
π MCP mode is now the recommended way to use grimoire
grimoire runs as an MCP server, so your agent searches the whole skill library when it needs it. Linking every skill into the agent no longer fills up its skill listing.
grimoire mcp install # Claude Code, for all your projects
grimoire mcp install --target all # every supported agent on your PATH
grimoire mcp install --scope project # only this project (commit to share with your team)- Supported agents: Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, OpenCode, Pi, Kimi Code, OMP and Antigravity.
- Automatic routing: hooks for Claude Code, Codex and Gemini CLI, plus plugins or hooks for OpenCode and Antigravity. Every request goes through grimoire's workflows, so you don't need to know skill names.
- Run one skill by name:
grimoire:<skill-name>works in any agent, and/grimoire:skill <name>works in Claude Code. A mistyped name gets "did you mean" suggestions. - Fewer prompts: read-only tools are pre-approved. Use
--no-allowto turn that off. - Guidance and warnings: the install wizard recommends MCP mode.
grimoire installandgrimoire doctorwarn when linked skills would overflow an agent's skill listing.
π§ Automatic routing in more agents
grimoire mcp install now sets up automatic routing in four more agents, using each agent's own extension or hook system:
| Agent | What install adds |
|---|---|
| Pi | an extension in extensions/grimoire.ts, plus direct access to the three skill tools |
| GitHub Copilot CLI | session and prompt hooks in ~/.copilot/hooks/grimoire.json |
| Kimi Code | a prompt hook in ~/.kimi-code/config.toml |
| OMP | an extension in extensions/grimoire.ts |
In our routing tests, Copilot went from 14 to 18 of 18 cases, and Pi, Claude Code and Antigravity routed all 18. The tests are one prompt per workflow plus small talk and a named skill.
π₯οΈ Claude Desktop
grimoire mcp install --target claude-desktop sets up the Claude Desktop app for people who don't use a terminal.
π See what grimoire decides
Each request gets one grimoire βΈ line saying what grimoire is doing and why. Plans list their steps, and when several skills fit you get up to 4 numbered choices with one marked β
recommended. A question or "Apply this plan?" always comes last, and nothing runs until you answer.
- Detail level:
grimoire config set core.trace brief|full|hidden. - Screen readers:
core.display-style plainuses words instead of symbols. It turns on automatically whenNO_COLORis set. - In-session controls: say "grimoire help", "show grimoire details", "quiet grimoire", "skip grimoire", or "grimoire off" / "grimoire on".
- Status bar: a
GRIMOIREbadge in Claude Code's status bar.
β―οΈ Turn grimoire on or off
- All sessions:
grimoire enable/grimoire disable. - One session: say "grimoire off" / "grimoire on".
- One run (CI, scripts):
GRIMOIRE_ACTIVE=0|1.
π Project standards in grimoire.toml
- Preferred, not exclusive: grimoire prefers the practices your project declares. They come first and get the β when they fit, but the whole library stays available.
- BPDD: treats the declared practices as binding.
- Hard boundary: set
[standards] scope = "strict"to offer only the declared practices. - Layers: standards and libraries merge from the organization (
/etc/grimoire/grimoire.toml), the user (~/.config/grimoire/grimoire.toml) and the project, and the nearest layer wins.
π Better skill search
- Ranking weights matches by field (BM25F).
- Search stems words, drops stopwords and reports the terms it matched.
- It accepts several phrasings in one query.
grimoire_get_skillloads up to 20 skills in one call.
π§° A friendlier CLI
- Help grouped by task:
grimoire --helpgroups commands by task and starts withmcp. Runninggrimoirewith no arguments points new users togrimoire mcp install. - One word for scopes:
--scope user|projectworks the same ininstall,uninstallandmcp install.configandinittake--user. The oldglobal/-gstill work. - Search like your agent:
grimoire searchranks results the same way your agent's search does, matching word forms. It accepts several phrasings at once, plus--topand--domain. - Preview changes:
grimoire mcp install --dry-runlists every command it would run and every file it would edit, and changes nothing.mcp uninstall --dry-rundoes the same. - Safe in scripts and CI:
- Without a terminal, commands no longer stop at a prompt and report success.
updateandself-updatego ahead. Destructive actions such asinstall --fromreplacing the library ask you to rerun with--yes.wizardexplains that it needs a terminal.-yworks wherever--yesdoes.
- Machine-readable output:
--jsononsearch,statusandinfo.
π Docs
- A shorter README.
- User guides in
docs/: MCP mode, skills mode, configuration, packages, profiles, BPDD, examples and the FAQ. - New
CONTRIBUTING.mdand Code of Conduct.
Fixes
- mcp: an empty MCP config file is read as
{}instead of failing. - update:
grimoire updaterelinks only agents that already have grimoire skills. - doctor: in MCP mode,
grimoire doctorreports the MCP setup instead of giving skills-mode advice. - agent: only directories count as linked skills.
- cli: grimoire treated input from
/dev/nullas a terminal. CI jobs usually run that way, so prompts waited for an answer that never came. - cli:
install,cleananduninstallreject an unknown--targetup front. - mcp:
grimoire_get_skillalso acceptsskill_name,skillandskillName, so an agent that guesses the argument name gets the skill on the first call. - lint: fixed the golangci-lint errors that were failing CI.
Full changelog: v0.2.0...v0.3.0