
Tooling
Gold Standard
A versioned set of working rules and tooling that keeps many AI-assisted Claude Code projects consistent
- When
- Jul – Nov 2026
- Status
- In use across all projects, versioned by date
- Built with
- Node.jsJavaScriptMarkdownPythonBashPowerShellGitHub Actions
Gold Standard is a shared behaviour contract for Claude Code, Anthropic's AI coding assistant: how to communicate, when to ask, how to test, document and deploy, applied the same way in every project. Each project opts in with a one-line marker, session hooks load the rules automatically, and a generated status site renders the standard and shows which version each project follows.
The need
Rules kept separately in each project drift apart, and every new session has to be given them again. The rules needed one source of truth that loads itself into every session, records every change and makes each project's state visible.
What was built
- The standard itself: a terse rulebook with a separate rationale file at matching section numbers, a changelog, and date-based versions (YY.MM.DD.N) compared as numbers.
- Session hooks: one injects the always-on rules into any session whose project carries the marker; another tells sessions already running about a rule change, once per change.
- A zero-dependency Node build that renders the standard into one static page with a table of contents and a filter, plus a Projects view that scans every project for adoption status, tier and structure checks, rebuilt every 30 minutes by GitHub Actions.
- A Rollcall tab showing usage-limit meters and live sessions, fed by a small Python service built on the standard library alone and by a desktop agent.
- A Node test suite that pins the hooks, the banners and the rendering, where every test marked as a regression pins a bug that once shipped and may never be deleted.
What was hard
- Measurement showed that the original file-import mechanism silently loaded nothing for an absolute path, so seven projects had received no rules since adopting while their markers looked current. It was replaced by a hook that fails loudly when the rules cannot be read.
- A session's context is loaded once, at start, so a rule change reached no session already running. A second hook compares the current version with what each session was last told and injects only the changelog entries it has crossed.
- Injected context above about 25,000 bytes is replaced by a short preview, so the hook injects only the sections that must apply before anything is read, and a test fails when that payload outgrows its budget.