Skip to content

v0.3.0

Latest

Choose a tag to compare

@jeffreytse jeffreytse released this 24 Nov 15:13
· 6 commits to main since this release
9795987

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-allow to turn that off.
  • Guidance and warnings: the install wizard recommends MCP mode. grimoire install and grimoire doctor warn 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 plain uses words instead of symbols. It turns on automatically when NO_COLOR is set.
  • In-session controls: say "grimoire help", "show grimoire details", "quiet grimoire", "skip grimoire", or "grimoire off" / "grimoire on".
  • Status bar: a GRIMOIRE badge 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_skill loads up to 20 skills in one call.

🧰 A friendlier CLI

  • Help grouped by task: grimoire --help groups commands by task and starts with mcp. Running grimoire with no arguments points new users to grimoire mcp install.
  • One word for scopes: --scope user|project works the same in install, uninstall and mcp install. config and init take --user. The old global / -g still work.
  • Search like your agent: grimoire search ranks results the same way your agent's search does, matching word forms. It accepts several phrasings at once, plus --top and --domain.
  • Preview changes: grimoire mcp install --dry-run lists every command it would run and every file it would edit, and changes nothing. mcp uninstall --dry-run does the same.
  • Safe in scripts and CI:
    • Without a terminal, commands no longer stop at a prompt and report success.
    • update and self-update go ahead. Destructive actions such as install --from replacing the library ask you to rerun with --yes. wizard explains that it needs a terminal.
    • -y works wherever --yes does.
  • Machine-readable output: --json on search, status and info.

πŸ“š Docs

  • A shorter README.
  • User guides in docs/: MCP mode, skills mode, configuration, packages, profiles, BPDD, examples and the FAQ.
  • New CONTRIBUTING.md and Code of Conduct.

Fixes

  • mcp: an empty MCP config file is read as {} instead of failing.
  • update: grimoire update relinks only agents that already have grimoire skills.
  • doctor: in MCP mode, grimoire doctor reports the MCP setup instead of giving skills-mode advice.
  • agent: only directories count as linked skills.
  • cli: grimoire treated input from /dev/null as a terminal. CI jobs usually run that way, so prompts waited for an answer that never came.
  • cli: install, clean and uninstall reject an unknown --target up front.
  • mcp: grimoire_get_skill also accepts skill_name, skill and skillName, 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