The Grimoire Index for coding — a tool-agnostic, file-first knowledge base for AI pair programming. One markdown repo holds your programming decisions, rules, and lessons; every AI coding agent you use (Claude Code, Codex, Gemini, GitHub Copilot, Cursor, local models) reads it before working and records what it learns back into it. A scheduled "librarian" routine keeps it "aggressively maintained".
Expectation-setting: this is an early, experimental personal project, published because the pattern is useful — not a turnkey product. Windows + PowerShell 7 first; the conventions are portable, the scripts currently are not.
GRIMDEX.mdis the law — the only file agents always read. Kept deliberately tiny. Everything situational lives inuniversal/playbooks/and loads only at its moment (starting a project, compacting a session, ending a project).- Decisions are the product. Every significant choice becomes a decision record —
what was chosen, the alternatives, the reasoning — in that project's tier under
projects/<id>/. Seeexamples/. - Rules earn their way in. Cross-project rules are proposed into a staging inbox
(
universal/promotions/). A daily sweep (a headless agent session on a scheduler) conflict-checks candidates against the law and two append-only ledgers:PROMOTIONS-LOG.md(past admissions/rejections) andRIPPEDPAGES.md(everything ever removed, with the why). Clean additions auto-inscribe with a full paper trail; conflicts and removals always wait for the human. - Every tool is a contributor.
wire-project.ps1injects a marked pointer block into a repo'sCLAUDE.md,AGENTS.md,GEMINI.md,GROK.md,.cursorrules, and.github/copilot-instructions.md, so whatever agent opens the project finds the knowledge base and the contribution rule. - Cold-start seeding. Rules normally earn their way in through observed failures — a fresh instance has none yet. SUGGESTED-RULES.md carries seven community-converged conventions (each independently advocated by 3+ prominent practitioners), the reasoning behind each, and a paste-into-your-agent prompt that files them through the normal promotions inbox.
- Multi-machine consistency. Run one knowledge base across several machines via a
hub-and-spoke, single-writer model: a designated hub is the only writer of rules/law;
spokes pull read-only and propose edits with
scripts/propose-rule.ps1(filed as arule-syncproposal inuniversal/promotions/), which the hub reviews and publishes withscripts/review-rule-proposals.ps1. GitHub is the exchange — no merge conflicts on shared rules by construction.
git clone https://github.com/Ryfter/Grimdex.git
pwsh Grimdex\setup.ps1 # verify structure, report state
pwsh Grimdex\scripts\wire-project.ps1 -ProjectDir <your-project>
pwsh Grimdex\scripts\install-schedule.ps1 # optional: daily sweep + weekly auditYour knowledge accumulates in projects/ and universal/ — keep your instance
repo private; it will contain your decision history and preferences. This public
repo is the engine/template only.
Requirements: PowerShell 7+, git. The scheduled routines additionally expect a
headless-capable AI CLI (built against Claude Code);
everything else is plain files. Tests: pwsh scripts/test-<area>.ps1 (7 suites).
See GRIMDEX.md — it is the canonical description, and the file your agents read first.
MIT licensed.