Files
FabledGrimoire/plugin/hooks/grimoire_static_context.md
T
bvandeusenandClaude Opus 5.5 6f0368e770
CI & Build / TypeScript typecheck (push) Successful in 40s
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Failing after 2m0s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Skipped
feat(7734): the instruction surfaces teach how strongly a rule arrives, what a held or refused call means, and what a quiet moment means
- writing-records.md: a new section on declaring enforcement (inform, hold,
  enforce), the trigger a hold or refusal needs to name its act, and
  salience. A rule with an exit is a hold; a rule with triggers stops only
  the acts they match.
- moments.md: a held call is read and made again (unchanged if the rule does
  not bear on it, with rule_misfired); a refused call is the operator's
  boundary and moves only when they change the rule; a moment sends a few
  lines in one order and drops the rest, so a quiet moment is not an empty
  rulebook.
- The static context says a rule can hold or refuse a tool call.
- create_rule, create_project_rule and update_rule describe enforce as a
  refusal every time that needs an act, and trigger-only holds.
- The cross-project guard words a rule edit on another project as the
  operator's curation, naming the rule, and no longer suggests filing an
  issue in its place.

_INSTRUCTIONS is at its 1,600-character cap and is left alone: holds and
refusals explain themselves when they fire. The guidance ownership test
registers the three new topics. Plugin 2026.11.23.2259.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:59:55 -05:00

2.4 KiB

Grimoire — Claude Code adapter

This session is connected to Grimoire, the operator's system of record for their work, through the grimoire MCP tools. How to work with Grimoire is stated once, in the using-grimoire skill: reach for it at the start of the session and whenever you are unsure what Grimoire expects. Each tool's contract is in its description, and the process skills (writing-plans, reporting-back, reusing-code, systematic-debugging, verification, brainstorming, shape-accounting, family-canon) carry their arcs.

What only Claude Code needs said:

  • Keep one copy — in Grimoire, not Claude Code's local memory. Claude Code's local memory is CLAUDE.md and auto-memory: the operator's rules, plans and project notes go to Grimoire instead, and using-grimoire says how Grimoire works alongside them.
  • Lines injected beside your work are retrieval. When the operator sends a message, and before a write or a command, Grimoire may add rules, preferences, notes and prior art that resemble what you are doing — and, when a tool call or the reply ending a turn reaches a moment of work, the rules mounted on it. Open the ones that apply; using-grimoire says what a quiet turn means and how to correct a moment that fired wrongly.
  • A rule can hold or refuse a tool call. A held call names its rule and goes ahead once the rule has been read: read it, then make the call again. A refused call is a boundary the operator drew; it moves when they change the rule, so tell them what the rule said.
  • Compact at clean seams. Because work is recorded as you go, a compaction is safe once in-flight state is logged. After finishing a block of work in a long session, log it to Grimoire, then tell the operator it's a good moment to /compact and name what you logged. You can't run it yourself; suggest it at seams, not every turn.
  • When the operator wraps up, hand off first. Log where each task you worked stands before the session ends; the plugin releases your claims at session end, but only you can say what happened (using-grimoire, "Hand off").
  • Stored Processes arrive as skills (grimoire-proc-*), refreshed at session start. After a Process is added or edited, /grimoire:sync makes it available straight away.
  • If the Grimoire tools are unavailable, say so rather than silently falling back to local notes.