jig-harness/jig
M0

Instruction architecture

Layered agent-instruction files, conditional rules, glossary, dispositions, fallbacks for each runtime, rules scoped by artifact class
1 · The idearead this first

AI agents (and new contributors) act on whatever instructions they find. Without deliberate structure, instructions end up duplicated across files that drift apart, bloated into contexts that bury the important rules, or missing exactly where the work happens — and parallel agents invent their own vocabulary for the same concepts, producing code and docs that disagree with each other. This module is the layered instruction system that keeps agent guidance findable, small, scoped, and single-sourced.

Invariantthe rule, independent of any tool

Agent instructions form a layered hierarchy with one universal source of truth. Tool-specific and directory-specific files carry only their delta and bring the universal file in by an import or the runtime’s native read; conditionally relevant rules load only in their scope; domain vocabulary is defined once in a glossary; and behavioral defaults (dispositions) are written down with the conditions under which they flip.

Further invariants decide whether those instructions reach the agent at all:

  • Delivery is observed. Every rule that must bind a runtime reaches that runtime’s context by a load path someone has watched work: an import, or a file the runtime reads natively, never a line of text pointing somewhere else. What each runtime loads is recorded once, with the date it was observed and a procedure to check it again (mappings.md). Which file wins when two disagree is an authoring convention written down, never runtime behaviour assumed. Two runtimes have the same rules when each one’s context holds them, not when their files mirror each other.
  • Always-loaded context is a budget. The text a runtime loads before the agent acts, the always-loaded context, is measured against the smallest budget of every runtime and reviewer that reads it. It includes the chained instruction files, rules with no path scope, the names and descriptions of every skill and agent (their discovery metadata), and the instructions MCP servers send. CI checks the cumulative instruction chain and the per-item and aggregate discovery budgets before dependencies are installed. Text past a consumer’s budget counts as not delivered to that consumer, however complete the file looks.
  • A skill loads the way it was written to. Only a skill’s description is read before it is chosen, its SKILL.md when it runs, and each of its references when SKILL.md sends the agent there. The authoring rules keep each step working, and a structural check holds a repository’s skills to them, with counts that may only fall.

Further invariants decide whether a delivered instruction can be followed where it lands, and what it applies to:

  • Instructions are portable. An instruction that relies on a capability only some runtimes have (a slash command, a built-in tool, a tool the host injects, a permission rule) names a portable fallback, or the equivalent in each runtime the team uses, and writes down where there is none. The equivalents per runtime are in mappings.md.
    • Running a skill. Prose that names a skill by its slash command also gives the fallback: the runtime’s own skill directory, then a direct read of the skill’s SKILL.md, with its references/ and scripts/ resolved from the skill’s directory (the symlink’s target, where the directory is a mirror). A skill shipped in a plugin runs the way each runtime runs an installed plugin’s skill, with a read of the installed SKILL.md as its fallback. A lint enforces it for the repository’s own skills.
    • Asking the user. A runner with a control plane (a service that tracks the job and can reach a person) parks the job and raises the question there; an interactive session uses the runtime’s own question tool where it has one and may use it, and otherwise asks in plain text and waits; a run with nobody to answer and no control plane stops and states the question, never picking for the user. A step that names only one runtime’s question tool does nothing anywhere else. Plain text is the branch that works everywhere, so no per-runtime picker is built.
    • Deny lists. A command the team forbids an agent to run is denied in each runtime’s own permission format, and each file says, in its header, the written policy it mirrors and the forms it cannot match. The formats differ, so the files are kept in step by hand, each pointing at the same policy. A deny list is a backstop with known gaps, not a sandbox: every format misses some spellings of a command (mappings.md lists them).
    • Tools the host injects. A host-injected tool, which a launcher or workspace app adds to the session without any file in the repository registering it, is a convenience only, never a dependency of a gate, hook, script or skill step. Searching the repository does not find it and its configuration cannot gate it, so a step discovers it rather than assumes it, and its absence is the ordinary case. A workspace-diff view, for example, does not replace the repository’s own command for deciding what a change must run.
  • Rules declare their scope. Each standard says which artifact classes it governs: runtime code (services, workers, route handlers), one-shot command-line tools (a process that exits after its work), tests, and prose instruction files. Where a file lives does not decide its class: a script under scripts/ that starts a long-lived server or listener is runtime code. A rule applied outside its scope is a known source of false findings. For example, M14’s injected clock governs runtime code: a script that exits after its work already gets the same testability by taking the instant as a parameter, and a test’s own setup and polling deadlines are outside it too.
    • Standing review stances point to their source. A stance reviewers must treat as settled policy is written once, and the instructions reviewers read point to it, never copy it: a paraphrase drifts from its source. A pointer may say what a reviewer needs to decide whether to raise a finding; what is done with the finding belongs to the source. A finding that contradicts the stance is closed as rejected with the stance’s standing rejection, as the triage rubric of the comment-resolution loop does.
2 · The practicewhat each level asks of your repository

M0 Lite — minimum useful

one universal instruction file (≤ ~150 lines) + a glossary. Nothing else. Criteria: file exists at root; gates and guardrails listed; glossary exists.

What the audit checks at Lite convention-only is enough must be mechanically enforced
  1. A vendor-neutral universal instruction file (AGENTS.md or equivalent) exists at the repo root.
    universal-instruction-fileWhat the audit looks for (2)
    • AGENTS.md (or documented equivalent) exists at repo root
    • file is not tool-specific (readable truth for every agent runtime)
  2. The universal instruction file stays small (on the order of 150 lines): what every session needs, with longer practice detail linked from it rather than written into it.
    instruction-file-stays-smallWhat the audit looks for (3)
    • the universal instruction file is on the order of 150 lines or less
    • long content (full workflows, gate documentation, background) lives in documents the file links to
    • where shrinking the file means moving content the repository's own rules guard (a trust posture, a safety rule), a recommendation names that tension
  3. The universal instruction file lists the quality gates (runnable commands) and the critical guardrails.
    gates-and-guardrails-listedWhat the audit looks for (2)
    • instruction file has a quality-gates section with runnable commands
    • instruction file has a guardrails section naming the failures prevented
  4. A one-page domain glossary exists with canonical terms and explicit avoid-aliases, and the universal instruction file points to it.
    glossary-existsWhat the audit looks for (3)
    • GLOSSARY.md or CONTEXT.md exists
    • entries carry explicit 'avoid' aliases
    • universal instruction file links to it

M0 Standard — production teams

full layering: tool deltas that bring the universal file in by an import or a native read, per-directory files where conventions differ, conditional rules with documented loading semantics, dispositions with flip conditions. What each runtime loads is recorded with dated evidence and a procedure to check it again. Model pins in agent and skill metadata are family aliases, checked over the metadata itself, and a roster of them, where one is kept, is generated from it (model routing policy). Skills the repository maintains follow written authoring rules. Instructions and skills that rely on a runtime-specific capability name its fallback, no gate, hook, script or skill step depends on a host-injected tool, and where the team denies commands, each runtime it uses has its own deny list, its header naming the policy it mirrors and its gaps. Each standard declares the artifact classes it governs, and standing review stances are pointers to one source.

What the audit checks at Standard convention-only is enough must be mechanically enforced
  1. Every tool-specific instruction file (CLAUDE.md, .cursor rules, copilot-instructions.md, ...) carries only runtime-specific content and brings in the universal file, maintaining none of it by hand, through the runtime's import or its native read of the universal file. Where a runtime has neither, the delta it needs is generated from it and checked for freshness, or the gap is recorded in the load model; a pointer line alone is not delivery.
    tool-deltas-are-pointersWhat the audit looks for (4)
    • each tool-specific file imports the universal file (Claude Code: an @AGENTS.md line), or its runtime reads the universal file natively
    • where a runtime has neither, its delta is generated from the universal file, or the gap is recorded where the load model is; a pointer line alone does not count
    • no rule text is maintained by hand in both the universal file and a tool delta; a delta generated from the universal file and checked for freshness is a projection of it, not a copy
    • before recommending an import, verify what the runtime already loads natively (the load model, or a session's loaded instructions): an import of a file the runtime already loads loads it twice
  2. Directories whose conventions differ from the repo default carry their own nested instruction file, and the universal file states that a nested file extends its parent and never contradicts it.
    per-directory-instructionsWhat the audit looks for (2)
    • nested instruction files exist where apps/packages diverge
    • universal file states that nested files extend it and that a contradiction is a bug
  3. If a conditional-rules directory exists, its README documents the loading semantics — path-frontmatter rules load on match, frontmatter-less rules always load — and each rule is scoped to the narrowest paths that cover it.
    conditional-rules-documentedWhat the audit looks for (2)
    • rules directory contains a README stating the loading model
    • rules carry path frontmatter unless deliberately universal
  4. What each agent runtime the team uses actually loads is recorded in one place, with the date it was observed and a procedure to check it again, and which instruction file wins when two disagree is written as an authoring convention, not assumed runtime behaviour.
    load-model-recordedWhat the audit looks for (4)
    • one document records which instruction files each runtime loads, and when
    • each observation carries a date (and the runtime version where known)
    • a procedure to re-check the observations is written beside them
    • precedence between instruction files is stated as a convention (a nested file extends its parent; a contradiction is a bug)
  5. Behavioral defaults (dispositions) are written down, and every disposition states the condition under which it flips.
    dispositions-with-flip-conditionsWhat the audit looks for (2)
    • a dispositions document exists and is linked from the universal file
    • every disposition entry contains an explicit flip condition
  6. Every model tier an agent or skill declares lives in its metadata (or, for a judgment pass inside a skill, in that skill's configuration) as a family alias, never a versioned model id (where the runtime has no family aliases, the vendor's most general model name, or one central name mapped to a release in a single place), a CI check over that metadata enforces it, and any committed roster of the assignments is generated from the metadata and drift-checked. This pin check is expected-absent when a repository's agents and skills pin no model in metadata or at invocation; shared routing is assessed separately.
    model-pins-are-family-aliasesWhat the audit looks for (7)
    • every model: value in agent and skill definitions that pins a model is a bare family alias (Claude Code: fable, opus, sonnet, haiku), not a versioned id with a date or release number; an inheritance selector (Claude Code: inherit) or an absent field pins nothing and is not a pin
    • where a runtime has no family aliases, the pin is the vendor's undated, most general model name, or one central name the repository maps to a release in a single place; no agent or skill carries a release of its own
    • a model setting in a skill's configuration for a judgment pass follows the same rule
    • no skill, prompt or script assigns a model at invocation time (Claude Code: the model parameter of a subagent call, a --model flag on a spawned CLI) other than by forwarding a model selected from agent or skill metadata, a documented built-in fallback used only when no configured or routed value applies, a skill's explicit pass-model configuration, an explicit recorded one-run operator choice, or the shared routing table only for a field the effective definition leaves open; such an override otherwise outranks the definition's own model and is an undeclared pin
    • a CI check reads that metadata and accepts the runtime's inheritance selector as unpinned, and rejects an unknown model family, a versioned id used as a pin, and a declared cost tier that contradicts the model; it runs whether or not a roster is kept
    • a roster of model assignments, where one is committed, is generated from the metadata and a CI check fails when it drifts; no per-agent assignment is kept by hand in prose
    • a repository whose agents and skills pin no model in metadata or at invocation meets this pin check (expected-absent)
  7. Every Judgment-tier metadata pin, skill Judgment-pass setting, and decision layer that shared routing selects onto a Judgment model records its admission and A/B baseline beside that layer's own declaration; a shared routing row is not that declaration because one row can serve several decision layers.
    judgment-tier-admission-and-baselineWhat the audit looks for (4)
    • each Judgment-tier assignment identifies its decision layer and explains how that layer meets every admission clause, while identifying the cheaper mechanical procedure that ran without settling the call
    • each Judgment-tier assignment records its A/B comparison beside the layer's own declaration: the Strategic baseline and planned comparison before measurement, then the exact measured model and result; each decision layer selected onto a Judgment model through shared routing has the same layer-specific evidence, while an implementation consumer that may edit code is not Judgment-only merely because shared routing selects a Judgment family for it
    • a shared routing row alone is not evidence of admission or a baseline
    • a repository with no Judgment-tier metadata pin, skill Judgment-pass setting or shared-routing Judgment selection meets it (expected-absent)
  8. Every instruction and skill step that relies on a runtime-specific capability (a slash command for a skill outside a plugin, a built-in tool such as a question tool, a tool the host injects) names its portable fallback or the equivalent in each runtime the team uses, and no gate, hook, script or skill step depends on a host-injected tool.
    runtime-capabilities-name-fallbacksWhat the audit looks for (7)
    • each slash command for a repository skill (one not invoked through a plugin namespace) has a fallback beside it: the runtime's skill directory or a link to the skill's SKILL.md
    • each step that names one runtime's question tool also says what to do elsewhere: the runtime's own question tool or a plain-text numbered question (the recommended option first, marked as the default where there is one) in another interactive runtime or in a session whose permissions deny the native tool while a person is present, and stop and state the question only when nobody is there to answer (parking the question through a control plane is an equally valid route where the repository has one)
    • a page that relies on a variable only one runtime fills in (a skill's own directory) has a paragraph that says what it stands for and that another runtime's agent substitutes it by hand
    • a page that hands a ruling to an agent the plugin ships (the review arbiter) says the calling session makes it where the runtime has no subagents, or names an equivalent that keeps the ruling independent of the caller (a separate read-only session, a person's ruling); on either route the ruling applies the same rubric, anchored evidence and disposition rules as the primary route, and the same ladder verdicts where that route uses them, so the ruling is bound to the same inputs; Jig's own fallback is the calling session
    • each other built-in tool a step names has its fallback beside it
    • no gate, hook, script or skill step needs a tool that a launcher or workspace app injects and no repository file registers; where a step mentions one, it is optional
    • a repository with no instruction that relies on a runtime-specific capability meets it
  9. Where the team forbids agents commands through a runtime's permission rules, each runtime it uses has its own deny list in that runtime's format, and each file's header names the written policy it mirrors and the command forms it cannot match.
    deny-lists-per-runtimeWhat the audit looks for (6)
    • each runtime the team uses (from its instruction files, configuration and the load model) that has a permission format carries a deny list: Claude Code permissions.deny in .claude/settings.json, Codex prefix_rule entries in .codex/rules/*.rules
    • each deny-list file's header, or a comment beside it, names the written policy it mirrors
    • each file lists the forms it cannot match (for Codex: a flag after a variable argument, `run` scripts, a global flag before the verb, part of one word), or links where they are listed
    • a runtime the team uses that has a permission format but no deny list while another does is a gap, and writing the gap down does not close it
    • a runtime the team uses that has no permission format meets it when the file of a runtime that has one says so
    • a repository that keeps no deny list for any runtime meets it (expected-absent)
  10. Each written standard (a coding rule, a lint policy, a review lens) states the classes of artifact it governs: runtime code, one-shot command-line tools, tests, prose instruction files.
    standards-declare-scopeWhat the audit looks for (3)
    • the universal instruction file or a document it links maps each standard to the artifact classes it governs, or each standard states its own
    • the mapping lists a script that starts a long-lived server or listener as runtime code, wherever the script lives
    • a rule about runtime behaviour (an injected clock, structured logging) names the classes it leaves out, such as one-shot tools and tests
  11. Every stance reviewers must treat as settled policy is written in one place, and the instructions and reviewer configuration that mention it point to that source rather than restate it.
    review-stances-are-pointersWhat the audit looks for (4)
    • a list of standing review stances, in the instructions or the reviewer configuration, gives each as a pointer to one source (an ADR, a policy section)
    • no stance's rule is restated in a second place; a pointer may say when a finding is worth raising, not what is done with it
    • the review process closes a finding that contradicts a stance as rejected with a link to its source
    • a repository with no standing review stance meets it
  12. Where the repository maintains agent skills, written authoring rules say how a skill is put together for the moment each part is read: a description that leads with the distinguishing trigger and carries its negative triggers, references named directly by the skill's entry file, contents sections in long references, no incident history or time-sensitive phrasing in instruction bodies, and discovery controls used for what they do (expected-absent where the repository keeps no skills).
    skill-authoring-rulesWhat the audit looks for (3)
    • the rules are written where skill authors read them (the skills folder's README or the nested instruction file for skills), covering the description, references, history and time-sensitive phrasing, and discovery controls
    • the rules say negative triggers belong in the description, since only the description is read before a skill is chosen
    • a repository with no skill folder (Claude Code: .claude/skills; Codex: .agents/skills; a plugin's skills/) is expected-absent

M0 Strict — regulated / compliance posture

instruction files carry freshness checks (M2): countable facts are CI-verified against reality, referenced paths are checked to exist, and the instruction set has a named owner and review cadence. CI fails a change that puts the always-loaded context over its smallest consumer’s budget, before dependencies are installed, and one that adds to any skill file’s count of a skill-authoring rule. CI also fails a slash command for one of the repository’s own skills that names no fallback.

What the audit checks at Strict convention-only is enough must be mechanically enforced
  1. Countable facts and referenced paths in instruction files are verified against reality by a CI check that fails on drift.
    instruction-freshness-checkedWhat the audit looks for (2)
    • a CI job re-derives countable facts stated in instruction files
    • a CI job (or link checker) verifies referenced paths exist
  2. The instruction set has a named owner and a stated review cadence.
    instruction-set-ownedWhat the audit looks for (2)
    • an owner is named in or alongside the universal instruction file
    • a review cadence is stated (and last-review date is plausible)
  3. CI measures the always-loaded context against the smallest budget of every runtime and reviewer that reads it (the cumulative root-to-directory instruction chain, each skill and agent description, and the aggregate skill listing) in a step that runs before dependencies are installed, and fails when any is over.
    context-budget-gatedWhat the audit looks for (3)
    • a CI step measures every root-to-directory instruction chain against a byte budget no larger than the smallest consumer's (Codex: 32,768 bytes by default)
    • a CI step checks each skill and agent description against a per-item cap and the skill listing against an aggregate allowance
    • the steps run before the dependency install, on every pull request, with no path filter
  4. A CI check fails every slash command for one of the repository's own skills that names no fallback for that skill beside it (expected-absent for a repository with no skill of its own).
    skill-invocation-fallback-gatedWhat the audit looks for (4)
    • a CI step runs M0's skill-invocation-fallback lint, or an equivalent, over the instruction files and skills that invoke the repository's own skills
    • the check takes its skill names from the skill directory, so a new skill is checked without a change to the command
    • a fallback counts only for the skill it names: a link to that skill's SKILL.md, its path under the runtime's skill directory, or an interop document
    • a repository with no skill of its own meets it (expected-absent)
  5. A structural check counts the skill-authoring rules a script can see (references the entry file does not name, long references without a table of contents, issue-id density, time-sensitive phrasing, negative triggers only in the body) per rule and per skill file, and CI fails a change that adds to any file's count, compared against the merge base or a baseline that may only fall (expected-absent where the repository keeps no skills).
    skill-authoring-ratchetedWhat the audit looks for (3)
    • a check measures the skills' files per rule and per file (Jig's reference: M0's check-skill-authoring.ts as a json counter of M1's ratchet with per: file)
    • CI runs it on pull requests and fails when any file's count for any rule grows; a committed baseline, where one is used, is itself refused when it grows
    • a repository with no skill folder is expected-absent

Adoption steps

  1. Copy templates/AGENTS-skeleton.md to the repository root as AGENTS.md, fill in the quality gates and the guardrails, and keep it near 150 lines. Copy templates/GLOSSARY-skeleton.md to GLOSSARY.md and link it from AGENTS.md. This is Lite.
  2. Turn every runtime-specific file into a delta that imports the universal file or relies on the runtime’s native read of AGENTS.md; where a runtime has neither, generate the delta or record the gap in the load model (where each runtime reads from: mappings.md); add nested instruction files where a directory’s conventions differ; if you use conditional rules, copy templates/rules-README.md into the rules directory; write your dispositions from templates/dispositions.md, each with its flip condition. Record what each runtime you use loads, with the date and a way to check it again: start from What each runtime loads and observe your own repository. If the repository keeps skills, write the authoring rules where its skill authors read them. Go through the instructions and skills for runtime-specific capabilities and give each its fallback from the capability table; write each runtime’s deny list in its own format, its header naming the written policy it mirrors and the forms it cannot match. Fill in the skeleton’s Standards scope by artifact class and Standing review stances sections: which classes each standard governs, and a pointer to each settled stance’s source. This is Standard.
  3. Check the instruction files mechanically in CI: stated counts and referenced paths with M2’s prose-facts checks, and the always-loaded context with the context-budget checks, in a step before dependencies are installed (recipe). Run the skill-authoring check over the repository’s skills as a per-file counter of M1’s ratchet, so existing debt may stay and only fall, and check slash commands with the skill-invocation fallback lint. Name an owner for the instruction set and a review cadence. This is Strict.
3 · The mechanicsopen what you need
The layersOpen
  1. Universal instruction file (AGENTS.md at repo root) — project overview, critical guardrails, quality gates, ways of working. Vendor- neutral so every agent runtime reads the same truth.
  2. Tool-specific delta (CLAUDE.md, .cursorrules, …) — only what is specific to that runtime; everything else comes from the universal file, through the runtime’s import or its native read of AGENTS.md. Where a runtime has neither, a pointer line is not delivery: generate the delta it needs from the universal file, with a drift check, or record the gap in the load model (mappings.md).
  3. Per-directory files — nested instruction files scoped to an app or package. Runtimes add them to the parent’s instructions rather than replacing them; some let a nearer file override by placing it later, others state no precedence at all. So the authoring rule does not lean on either: a nested file extends its parent, and a contradiction between them is a bug. Which files each runtime actually loads is observed, not assumed (mappings.md).
  4. Conditional rules — rule files with path patterns in their frontmatter, loaded into agent context only when matching files are edited. A rule without patterns is always loaded — that distinction must be documented in the rules directory’s README, or authors will get it wrong silently.
  5. Glossary (CONTEXT.md / GLOSSARY.md) — one short page of canonical domain terms with explicit “avoid” aliases. The cheapest known fix for parallel-agent vocabulary drift.
  6. Dispositions — written behavioral defaults: the systematic-over- improvised bias, minimalism ladders, and lifecycle-stage stances (e.g., “backward compatibility deferred until first real customer data — here is the flip condition”). A disposition without a flip condition becomes dogma.
SkillsA skill is written for the moment each part of it is read. The rules below apply to every skill a repository maintains; the ones a script can count are counted by the skill-authoring check.Open

A skill is written for the moment each part of it is read. The rules below apply to every skill a repository maintains; the ones a script can count are counted by the skill-authoring check.

  • The description leads with the trigger that tells this skill apart from its neighbours: the situation or the words a user would bring, not an inventory of what the skill can do. The skill’s name already supplies the domain. How long a description may be is the context budget’s rule.
  • Negative triggers go in the description too (“not for X; use Y instead”), kept short. The description is all that is read before the choice, so a negative trigger written only in the body can redirect an agent that already chose wrongly, never prevent the choice. A longer “Not this skill” section in the body is an addition, not the place for it. Counted: a body that says when not to use the skill under a description that says nothing of the kind.
  • References sit one hop from SKILL.md. SKILL.md names every reference and says when to read it; a reference reached only through another reference is often read in part, or not at all. Counted: each reference SKILL.md does not name.
  • A reference over 100 lines opens with a table of contents linking to its headings, so an agent that reads only the top still sees what the rest holds. Counted.
  • Incident history stays out of instruction bodies. Keep the rule an incident taught and link the document that tells its history; ids of old issues and pull requests cost context in every invocation and explain nothing to the agent. Counted: issue and pull-request ids past 5 per 100 prose lines.
  • No time-sensitive phrasing. “As of March”, “recently added” and “currently the only option” go stale without anyone noticing; state the condition or the version instead. Counted: the common markers.
  • Discovery controls are used for what they do (what each runtime offers). A skill tied to a file area should reach the agent only once that area is in play: scope it to those paths where the runtime can, and keep workflow entry points and skills needed before any file is chosen unscoped. A skill the user must decide to start should not be picked by the agent: make it explicit-only where the runtime can, and not merely because it changes something; check first whether a workflow calls it. What each control removes from the listing differs per runtime, and hiding a skill from the user’s menu alone saves no discovery budget.
In your toolsThe same rule, wired into a specific CI provider, hook manager or tracker. Shows only your stack.Open

Where each instruction layer (see the module README) lives in each major agent runtime, and how the universal-file + tool-delta pattern maps onto it. Vendor conventions move fast: the table below is current as of 2026-07, the Claude Code and Codex loading rows and the deny-list row as of 2026-10, and the budgets and the capability table carry their own dates. Before you rely on a detail, check it the way What each runtime loads describes; a vendor’s docs page is not enough.

Layer → location per runtime

LayerClaude CodeOpenAI CodexCursorGitHub Copilot
Universal instruction fileCLAUDE.md is what’s read natively — make it import AGENTS.md with an @AGENTS.md line (see below)AGENTS.md (native; the format’s origin)AGENTS.md (supported in recent versions) plus .cursor/rules/the coding agent reads AGENTS.md natively; .github/copilot-instructions.md has no import, so what it must carry is generated from AGENTS.md
Tool-specific deltaCLAUDE.md (delta + @AGENTS.md import)usually none needed — reads the universal file directly.cursor/rules/ entry with alwaysApply: true (delta only; Cursor reads AGENTS.md natively); legacy .cursorrules is deprecated.github/copilot-instructions.md (delta only, for the surfaces that do not read AGENTS.md)
Per-directory files (added to the parent’s, not replacing them)nested CLAUDE.md, read when a file under it is read; a nested AGENTS.md by default only in a project with no CLAUDE.md of its own (otherwise only with a user-level setting), so beside a root CLAUDE.md pair it with a nested CLAUDE.md that imports itnested AGENTS.md files along the path; an AGENTS.override.md in a directory is read instead of that directory’s AGENTS.mdnested .cursor/rules/ directories; nested AGENTS.mdnested AGENTS.md (coding agent)
Conditional rules (path-scoped).claude/rules/*.md with paths: frontmatter (no paths: ⇒ always-loaded) — see templates/rules-README.mdno native equivalent — state scoped rules in the relevant nested AGENTS.md instead.cursor/rules/*.mdc with globs: frontmatter (alwaysApply: true ⇒ always-loaded).github/instructions/*.instructions.md with applyTo: frontmatter
Skills (on-demand procedures).claude/skills/<name>/SKILL.md, invoked as /<name>.agents/skills/<name>/SKILL.md (scanned walking up to repo root; follows symlinks).agents/skills/<name>/SKILL.md or .cursor/skills/<name>/SKILL.md, and for compatibility .claude/skills/ and .codex/skills/; invoked as /<name>.github/prompts/*.prompt.md
Glossaryplain file (GLOSSARY.md / CONTEXT.md) linked from the universal file — same in every runtime; Claude Code can additionally auto-load a reminder rule scoped to source/docs pathssamesamesame
Dispositions / HITL registryplain docs linked from the universal file — runtime-independentsamesamesame
Command deny list (enforced, not read: see the capability table)permissions.deny in .claude/settings.jsonprefix_rule entries in .codex/rules/*.rulesnot observednot observed

What each runtime loads

A file a runtime does not load does not instruct it, however clearly another file points at it. What each runtime loads is vendor behaviour that changes without notice, so it is something to observe, not to assume. These were observed in 2026-10:

  • Claude Code reads CLAUDE.md. A nested CLAUDE.md loads when a file under its directory is read, and is added to the root one. Which AGENTS.md files it reads depends on the built-in agents-md setting instructionFiles. Under the default, claude-md-or-agents-md, a project with no CLAUDE.md (or .claude/CLAUDE.md, or CLAUDE.local.md) in any directory from the root down to the working directory gets its AGENTS.md files instead, loaded where a CLAUDE.md would be: the ones on that path at the start, and a nested one when a file under its directory is read, unless a CLAUDE.md in that directory claims it. A project with such a CLAUDE.md gets no AGENTS.md at all by default; a root @AGENTS.md import loads the root one, and a nested one loads only when the setting is claude-md-and-agents-md. The setting is read only from user, managed or command-line settings: a repository cannot commit it, and a person can switch the built-in off. Rules in .claude/rules/ without paths: load at session start; with paths:, when a matching file is read.
  • OpenAI Codex reads AGENTS.md from the root down to the working directory. In each directory an AGENTS.override.md is read instead of that directory’s AGENTS.md. Its documentation says nearer files override earlier guidance because they come later in the combined prompt. By default it keeps only the first 32,768 bytes of the whole chain and drops the rest without a warning; project_doc_max_bytes in its configuration sets that budget, so check the value each consumer actually runs with. The hosted Codex reviewer applies the default even where the repository configures a larger value (observed 2026-09), so for the repository the smallest budget is the default whatever it configures.
  • pi (checked against its loader at version 1.2.0) reads one file per directory, from the working directory up through its parents plus its own agent directory, and none below the working directory. In each directory it takes the first regular file that exists, in this order: AGENTS.override.md, AGENTS.md, AGENTS.MD, CLAUDE.md, CLAUDE.MD. So an AGENTS.override.md replaces every other there, and any AGENTS file wins over any CLAUDE file. On a case-insensitive file system (the macOS and Windows defaults) the two spellings of one name are the same file.

Consequences:

  • An import is not a pointer. “See AGENTS.md” is text the model may or may not act on. An @AGENTS.md import puts the file in context. Every rule that must bind a runtime reaches it by a path someone has watched load.
  • Never rely on “closest file wins”. The runtimes add nested files to the parent’s instructions instead of replacing them. Codex lets a nearer file override by placing it later; Claude Code states no precedence. A rule that holds only because one runtime orders the files a certain way breaks in the next one, so a nested file extends its parent, and a contradiction between them is a bug to fix, not a tie for the runtime to break. Precedence is an authoring convention written down, never runtime behaviour assumed.
  • Parity is what arrives, not what is mirrored. Two runtimes have the same rules when each one’s context holds them, which the check below shows. Mirrored files prove only that the files match; a runtime that does not load one, or cuts it off at its budget, still misses the rule.

To check again: start a fresh session, note which instruction files are in context before any file is opened, then read one file under a directory that has its own instruction file and note what arrives. Record the date and the runtime version with what you saw. Ask also where the instruction files end: have the session quote the last lines of each file it holds, and compare them with the files’ real ends. A file cut short at a budget looks loaded until its tail is asked for.

Always-loaded context budgets

The always-loaded surface (see the glossary) is everything a runtime puts in context before the agent acts. Each consumer has its own budget for it, and the repository’s surface has to fit the smallest one, because what runs past a consumer’s budget does not reach that consumer. The budgets, with the date each was checked:

ConsumerWhat it boundsBudgetPast itChecked
Codexthe joined root-to-directory AGENTS.md chain32,768 bytes by default; project_doc_max_bytes changes itthe rest is dropped without a warning2026-10
Hosted Codex reviewerthe same chain32,768 bytes, whatever the repository configuresdropped without a warning2026-09
Claude Code (2.1.x)the skill listing: each model-invocable skill’s name, description and when_to_useabout 1% of the context window: 8,000 characters for a 200,000-token window at 4 characters a tokennot every entry reaches the listing2026-09
Claude Code (2.1.x)one listing entry’s description plus when_to_use1,536 characterscut off2026-09
Any runtime following the agent-skills specificationone skill description1,024 charactersthe skill fails validation2026-09

Jig sets a soft target of 512 characters per description, half the hard limit: room enough to say what the skill does and when to use it, while every character past that is paid in every session whether the skill runs or not. Text past a budget fails quietly: a root file past the budget looks complete to its editors while Codex sees only its first 32,768 bytes.

Where the always-loaded surface lives in each runtime:

PartClaude CodeOpenAI CodexCursorGitHub Copilot
Chained instruction filesCLAUDE.md with its imports, root to working directoryAGENTS.md chain, root to working directoryAGENTS.md and alwaysApply: true rules.github/copilot-instructions.md; AGENTS.md for the coding agent
Unscoped rules.claude/rules/*.md without paths:none.cursor/rules/*.mdc with alwaysApply: true.github/instructions/*.instructions.md with applyTo: "**"
Skill and agent discovery metadataname, description and when_to_use of every model-invocable skill; each subagent’s name and descriptionname and description of each skill it scansthe skills it discovers at startup, for the agent to apply by contextprompt files are invoked, not listed
MCP server instruction blocksthe instructions each connected server sendsthe servers’ instructions, where the runtime passes them onthe samethe same

MCP (Model Context Protocol) server instruction blocks arrive from the servers a session connects to, which a person’s own configuration can add, so no repository file shows them: measure them in a running session, with the check in What each runtime loads.

CI recipe: before dependencies install

The context-budget checks use only Bun’s built-ins, so they run before the dependency install, on every pull request and with no path filter. Run them from a pinned Jig checkout, or vendor the folder with the Jig files it imports, keeping their paths relative to it: lib/cli.ts and lib/files.ts for the checks, and lib/test-helpers/expect-spawn-exit.ts, lib/test-helpers/windows-skip.ts and plugin/shared/guarded-git-spawn.ts as well to run their self-tests. These files use only Bun’s built-ins.

The chain check models Codex’s AGENTS.md chain. A repository whose instructions live only in CLAUDE.md files measures them the way Codex would read them by naming that file as a fallback in .codex/config.toml:

toml
project_doc_fallback_filenames = ["CLAUDE.md"]

Claude Code’s own chain, CLAUDE.md and what its imports bring in, is not measured: it loads by other rules and no byte cut-off is known for it.

yaml
# GitHub Actions: steps of the job that runs the gate set.
steps:
  - uses: actions/checkout@<full-commit-sha> # v6
  - uses: actions/checkout@<full-commit-sha> # v6
    with:
      repository: <owner/name> # of https://github.com/jig-harness/jig
      ref: <jig-full-commit-sha>
      path: jig
  - uses: jdx/mise-action@<full-commit-sha> # v3 (installs the pinned Bun)
  - name: Check the always-loaded context budget
    run: |
      bun jig/modules/M0-instruction-architecture/reference/context-budget/check-instruction-chain.ts .
      bun jig/modules/M0-instruction-architecture/reference/context-budget/check-discovery-budget.ts \
        --skills .claude/skills --agents .claude/agents
  - name: Install locked dependencies
    run: <install command>
yaml
# GitLab CI: a job with no install step and no `rules: changes:` filter, in
# an image that has Bun.
context-budget:
  stage: .pre
  image: oven/bun:<version>
  script:
    - git clone https://github.com/jig-harness/jig.git jig
    - git -C jig checkout <jig-full-commit-sha>
    - bun jig/modules/M0-instruction-architecture/reference/context-budget/check-instruction-chain.ts .
    - bun jig/modules/M0-instruction-architecture/reference/context-budget/check-discovery-budget.ts --skills .claude/skills --agents .claude/agents

Name only folders that exist: a missing folder is a usage error. Name every skill folder a runtime scans (.claude/skills, .agents/skills when it holds real files rather than the symlink mirror) and add --namespace <plugin> when the folder ships as a plugin, since the runtime lists its skills as <plugin>:<skill>. A repository that measures its own plugin and also has skills of its own names those with --bare-skills <dir>: both appear in the same session’s listing, so they share one allowance. When a repository has legacy commands, also pass --commands .claude/commands to the discovery check: commands share the aggregate listing with skills.

The universal-file + delta pattern

The invariant is one source of truth regardless of which file each runtime happens to read:

  1. Write everything once in AGENTS.md (see templates/AGENTS-skeleton.md).
  2. For each runtime that reads a different file natively, make that file a delta: only runtime-specific content (its MCP config, its slash-command notes), plus the line that brings in the universal file through the runtime’s import (Claude Code: @AGENTS.md). A pointer line (“For universal standards, see /AGENTS.md”) is not delivery. Where a runtime has no import and no native read of AGENTS.md, generate the delta from the universal file (with a drift check, as M2 describes) or record the gap in What each runtime loads. Never copy a rule into a delta file by hand — a copy is a fork waiting to drift.
  3. Where a runtime supports AGENTS.md directly (Codex, Cursor, Copilot coding agent), the delta file may not be needed at all.

A minimal delta file is one line. If a delta file grows a section that isn’t runtime-specific, move it to AGENTS.md, which the import brings back.

Cross-runtime skill discovery (the symlink mirror)

Skills — packaged, named procedures an agent can invoke (see the glossary) — are the one layer where runtimes scan different directories for the same kind of content, so a pointer line doesn’t work — the runtime needs real files in its scan path. The portable mechanism:

  • Author skills once in one canonical directory (.claude/skills/ by default; the script’s CANONICAL_DIR names another).
  • Maintain the other runtime’s directory (.agents/skills/) as a gitignored symlink farm pointing back at the canonical one, regenerated on every dependency install and drift-checked from a pre-push hook.
  • Script, usage and recipe (in its header comment): reference/sync-skills-mirror.ts. Run it with no argument to create, repair and prune the links; --check only reports drift and exits 1. CANONICAL_DIR and MIRROR_DIR override the two directories.

Fallback for runtimes with no skill discovery at all: reference the skill by path in the instruction file (“read .claude/skills/<name>/SKILL.md and follow it”) — any tool that can read files can execute a skill. Wherever prose names a skill by its slash command, it gives that fallback too, in the order and with the limits in Running a skill; the skill-invocation fallback lint checks it.

The skill mirror command runs under the pinned Bun runtime; see tools/README.md for the source-checkout layout. Windows requires Developer Mode or permission to create symlinks for this optional discovery mirror; it never substitutes copies for the canonical skills.

Runtime-specific capabilities and their fallbacks

An instruction that relies on a capability only some runtimes have does nothing in the others, and nothing says so: the agent skips the step or improvises one. M0’s portability invariant asks each such instruction to name its fallback, or the equivalent per runtime, with the gaps written down. What each runtime offers, observed in 2026-10; “not observed” means nobody has checked it, not that the runtime lacks it, so the portable fallback applies there:

CapabilityClaude CodeOpenAI CodexCursorGitHub CopilotpiPortable fallback
Running a skill/<name> from .claude/skills/; a plugin’s skill as /<plugin>:<name>skills scanned from .agents/skills/ (the mirror); a plugin’s skill asked for by name (<plugin>:<name>)/<name> from .agents/skills/, .cursor/skills/, .claude/skills/ or .codex/skills/.github/prompts/*.prompt.mdnot observedread the skill’s SKILL.md and follow it
Asking the userthe built-in AskUserQuestion toolnot observednot observednot observednone built ina plain-text numbered question with the recommended option first and marked as the default where there is one, then wait
A skill’s own directory${CLAUDE_SKILL_DIR} filled in SKILL.mdnot filled innot observednot observednot observedthe skill says what the variable stands for, and the agent replaces it with the absolute path of the directory containing SKILL.md
A subagent (a second agent for one judgment)the Agent tool (formerly Task, still an alias) and a plugin’s agentsa subagent given the agent’s file as its instructionsnot observednot observednone built infor a ruling such as the review arbiter’s, the calling session makes the judgment itself with the same rubric; not where the step requires the judgment to stay out of the calling session
Denying a commandpermissions.deny in .claude/settings.jsonprefix_rule in .codex/rules/*.rulesnot observednot observednot observednone: a written policy is a request, not a control
A tool the host injectspresent only in a session the injecting launcher or app startedthe samethe samethe samethe samethe repository’s own script or command

Running a skill

Prose that names a skill by its slash command also gives the fallback, in this order: the runtime’s own skill directory (.agents/skills/<name>/ where the mirror keeps one), then a direct read of SKILL.md. Resolve the skill’s references/ and scripts/ from the skill’s own directory, which for a mirrored skill is the symlink’s target, not the mirror. A link to the skill’s SKILL.md beside the command is the shortest fallback that works everywhere.

A skill shipped in a plugin runs the way each runtime runs an installed plugin’s skill: /<plugin>:<name> in Claude Code, asked for by name (<plugin>:<name>) in Codex. Where neither works, or the skill was installed by copying or linking its folder into a skill directory, the fallback is the same as for any skill: the runtime’s own skill directory, then a read of the installed skill’s SKILL.md. The plugin’s installation notes say where each runtime installs it. The lint leaves plugin commands out, because the installed SKILL.md lies outside the repository it scans.

Run the lint beside the context-budget checks; it uses only Bun’s built-ins, and needs lib/cli.ts, lib/files.ts, lib/findings.ts and lib/markdown-links.ts when vendored:

sh
bun jig/modules/M0-instruction-architecture/reference/skill-invocation-fallback/check-skill-invocation-fallback.ts \
  --skills .claude/skills AGENTS.md CONTRIBUTING.md docs .claude/skills

Asking the user

A step that needs a person’s answer asks in the first way that applies:

  1. A runner with a control plane (a service that tracks the job and can reach a person) parks the job and raises the question there.
  2. Claude Code, in an interactive session that may use it, uses its built-in AskUserQuestion; where the session cannot use it, the next branch that applies.
  3. Any remaining interactive session uses its own question tool where it has one and its permissions allow it; otherwise it asks a plain-text numbered question, the recommended option first and marked as the default where there is one (a reply of default takes it), and ends its turn.
  4. A run with nobody to answer and no control plane stops and states the question, rather than picking for the user.

A call site that names only AskUserQuestion is incomplete: elsewhere it has no behaviour at all. Plain text is the branch every runtime has, so a per-runtime picker abstraction adds nothing it does not already cover.

Deny lists per runtime

A command the team forbids an agent to run is denied in each runtime’s own format. Both formats below were observed in 2026-10.

  • Claude Code: permissions.deny in .claude/settings.json, a list of tool patterns; a Bash pattern may hold wildcards, so a flag after a variable argument can be matched:

    json
    {
      "permissions": {
        "deny": ["Bash(git push --force *)", "Bash(git push * --force)"]
      }
    }

    A * matches any text, spaces included, but the spaces around it are literal: Bash(git push * --force) does not match git push --force, which needs the first pattern. Claude Code splits a compound command (&&, ;, |, a subshell, a command substitution) and applies a deny rule to each part, and matches past a leading environment-variable assignment and a fixed set of wrappers such as timeout and nohup. It does not match the same program written another way: an absolute path (/usr/bin/git push), a command passed to sh -c, or a flag before the subcommand (git -C . push).

  • OpenAI Codex: prefix_rule entries in .codex/rules/*.rules, written in Starlark (a small Python-like configuration language). Each rule matches the command’s argument list, split into words, as a literal prefix from its first word; decision is allow, prompt or forbidden, and where several rules match, the most restrictive wins. The project’s rules load only once its project layer is trusted.

    python
    # Mirrors: <docs/agent-policy.md § Forbidden commands>.
    # Gaps: see that section; a flag after a variable argument is not matched.
    prefix_rule(
        pattern = ["git", "push", "--force"],
        decision = "forbidden",
        justification = "Force-pushing rewrites shared history.",
    )

What Codex’s literal prefix cannot match:

  • a flag after a variable argument: git push origin <branch> --force;
  • a script run through the package manager’s run: pnpm run <script> and bun run <script> put run second, so ["pnpm", "<script>"] does not match them;
  • a global flag placed before the verb: kubectl -n <namespace> patch … needs its own literal rule for each form, since there are no wildcards;
  • part of a single word, such as the type in <type>/<name>.

Neither format follows the command into a script or an alias. A string passed to a shell differs: Claude Code does not match into sh -c, while Codex splits a bash, sh or zsh -c/-lc script made only of plain words and &&, ||, ; or | into its commands and checks each; a script with a redirection, a substitution, a variable assignment, a wildcard or control flow stays one opaque command that only a rule on the shell itself matches. A deny list is a backstop worth having for the commands that do the most harm, not a sandbox.

The two formats differ, so each runtime’s file is written by hand and kept in step by convention: every file’s header names the one written policy it mirrors and lists the forms it cannot match, and a change to the policy changes every file that names it.

Tools the host injects

A launcher or workspace app may add tools to a session, such as a Model Context Protocol (MCP) server registered in no file of the repository. Searching the repository finds no trace of it, and the repository’s configuration cannot turn it off or gate it. Such a tool is a convenience: no gate, hook, script or skill step depends on it. A step that can use one discovers it in the running session, and treats its absence as the ordinary case. A tool that looks like a cheaper route to something the repository already does is the trap: a workspace-diff view lists the changed files, but the repository’s change-impact command is what decides which checks a change must run.

Skill discovery controls

The authoring rules say what each control is for; this is what each runtime offers. Checked against each runtime’s documentation in 2026-10.

ControlClaude CodeCodex
List a skill only once a file it is tied to is readpaths: in SKILL.md frontmatter, globs as for path-scoped rulesnone documented: a skill under .agents/skills is discovered from the working directory up to the repository root, not scoped to files
Started only by the userdisable-model-invocation: true: the description leaves the listing, and /<name> still runs itpolicy.allow_implicit_invocation: false in the skill’s agents/openai.yaml: Codex does not pick it from a prompt, and $<name> still runs it. Whether its description leaves the listing is not documented
Hidden from the user’s menuuser-invocable: false: hidden from the / menu, while the description stays listed and the model can still invoke it, so it saves no discovery budget. A /<name> prompt, typed or passed to claude -p, is refused, so a skill an unattended run starts by slash command must not set itnone

Claude Code’s skills reference and Codex’s skills guide are the sources. The discovery-budget check counts a paths: skill as listed, since it joins the listing mid-session, and leaves an explicit-only skill out of the listing.

Model tiers per vendor

The tiers of the model routing policy are roles; these are the model families that filled them in 2026. Verify against the vendor’s current lineup and pricing before relying on them.

TierAnthropicOpenAI
JudgmentClaude Fable (fable)Astra (astra, gpt-6-astra)
StrategicClaude Opus (opus)Sol (sol, gpt-6.2-sol)
ExecutionClaude Sonnet (sonnet)Terra (terra, gpt-5.6-terra)
ScoutClaude Haiku (haiku)Luna (luna, gpt-6-luna)
Pin asa bare family alias (below)the undated model name, which points at the current snapshot, never a dated snapshot; where a runtime offers neither, one central name the repository maps to a release in a single place

The jig plugin keeps these families, each with the model it names today and its tier, in one list, plugin/shared/model-families.ts, which a release updates. Its routing loader reads the list: no complexity tier of an implementer’s route maps to a Scout family, and a Judgment family is no tier’s default (CONFIGURATION.md § routing).

Long prompts can cost more than their length suggests: Anthropic’s pricing has billed a request whose prompt passes a length threshold at a higher rate on some models (pricing documentation, checked 2026-10). That is why the policy keeps scouts short and bounded; check the vendor’s current pricing page for the thresholds that apply.

Family aliases and pins in Claude Code

From Claude Code’s documentation on model configuration and sub-agents, checked 2026-10; re-check after a CLI upgrade.

  • The aliases. An agent’s or skill’s model: front matter takes a bare family alias, fable, opus, sonnet or haiku, which ordinarily resolves to that family’s current release (the same-family and third-party-provider bullets below give the exceptions). A versioned id (claude-… with a date or release number) is accepted too, and that is the problem: it freezes the pin. inherit (in an agent’s or a skill’s model:) keeps the caller’s model, as an omitted field does for a skill: neither is a pin, so a metadata check accepts both and derives no tier from them.
  • Invocation-time overrides. A model passed when a subagent is invoked takes precedence over the subagent’s model: front matter, and --model sets a spawned CLI’s model the same way. A value chosen at the call site assigns a model outside the metadata the check reads, so the policy forbids it: route through a definition that carries the pin instead. A value the caller reads from that checked metadata or skill configuration and forwards unchanged declares nothing new and is allowed.
  • A subagent in the session’s own family. A family alias in a subagent’s model: front matter, or in the model passed when it is invoked, resolves to the session’s exact model, not the family’s current release, when the session already runs a model of that family. A session on an older Opus release therefore runs a model: opus subagent on that older release too. An alias guarantees the current release only where neither this nor a provider override applies.
  • Third-party providers. Through Amazon Bedrock, Google Cloud Vertex AI or another provider, an alias may resolve to an older release than it does on Anthropic’s own API. A deployment there sets the provider’s ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL (and the equivalent for any other family it uses) to the intended releases. That is environment configuration, outside what a repository’s roster check can see.
  • Session model and pinned model. The model chosen for a session (/model) runs the session and every skill that neither declares its own model: nor hands off to a pinned agent. The two ways to pin differ in how long the pin lasts. A subagent, and a skill that runs forked (context: fork), runs on its pin inside its own context, and the caller continues on its own model when it returns. An inline skill’s model: instead switches the session’s model for the rest of the current turn: the caller keeps running on it, gathering and editing included, until the next user prompt restores the session model. So a premium tier meant for one call belongs on a subagent or a forked skill, not an inline skill. A forked skill with no model: of its own but an agent: field runs on that agent’s pin. Choosing the session model is a person’s own cost and quality decision; moving a pin is governed by the policy.
  • Effort. The effort: front matter field sets an agent’s or skill’s effort beside its pin; default effort differs between model generations, so a scout sets effort: low explicitly.

Judgment-tier access and data retention

Vendor terms and runtime behaviour that change without notice; each line carries the date it was observed. Re-check after a CLI upgrade and in each account before a Judgment-tier layer runs unattended.

  • Data retention (vendor documentation, checked 2026-10). Anthropic lists its Fable models as Covered Models: they require 30-day data retention, zero data retention is not available for them, and a request from an organisation or workspace whose retention settings do not meet that is rejected rather than downgraded (API and data retention). An arrangement that keeps other families’ payloads unretained does not extend to them.
  • Usage credits (observed 2026-10, Claude Code 2.1.x). The CLI reports that a Fable session draws on usage credits rather than the plan’s usage limits: a separate pool that runs out independently of the plan.
  • Enablement (observed 2026-10, Claude Code 2.1.x). The CLI may ask for a one-time interactive step (/model fable in an interactive session) to review and enable the model. One headless run that spawned a subagent pinned to fable, in an account that had never taken that step, completed on the Fable model without an error: one data point, in one account and build, not a guarantee.

Source: modules/M0-instruction-architecture/mappings.md

4 · Statuswhat is built, and what is left out on purpose

What this module provides:

  • templates/AGENTS-skeleton.md — the universal instruction file’s structure: overview, guardrails, gates, git workflow, per-directory table. Its key references link the delivery lifecycle map (M6), so the stage that comes next is one hop from the instructions every session loads.
  • templates/GLOSSARY-skeleton.md — a one-page domain glossary with Avoid aliases; authoring notes in its header comment.
  • templates/rules-README.md — the conditional rules directory’s README, with the loading semantics written inline.
  • templates/dispositions.md — the systematic default, the minimalism ladder and the deferred-backward-compatibility stance, each with its flip condition.
  • templates/hitl-registry.md — the registry of decisions that always stay with a human (shared with M7).
  • reference/model-routing-policy.md — which model tier (Judgment, Strategic, Execution, Scout) handles which work and at what effort, the decision rule for a new agent or skill, cost measured per completed task, model pins as family aliases in metadata with a generated roster, and the admission test that keeps the Judgment tier narrow.
  • reference/sync-skills-mirror.ts — keeps a second runtime’s skill directory as a symlink mirror of the canonical one; --check reports drift. Its self-test is in scripts/freshness.test.ts; the recipe is in mappings.md.
  • reference/context-budget/ — two checks of the always-loaded context: every root-to-directory instruction chain against the smallest consumer’s byte budget, and skill and agent descriptions against their per-item caps and the aggregate skill listing. Built-ins only, with self-tests and fixtures beside them.
  • reference/skill-invocation-fallback/ — a lint that fails a bare /<skill> with no fallback for that skill (a link to its SKILL.md, its path under the runtime’s skill directory, an interop document) within a window of lines; plugin-namespaced commands are not checked, and a whole file is exempt only when it is on the exemption list and opens with a generated-file banner that carries the exemption marker. Built-ins only, with its self-test and fixtures.
  • reference/skill-authoring/ — counts the authoring rules a script can see, per rule and per skill file: references SKILL.md does not name, long references without a table of contents, issue-id density, time-sensitive phrasing, and negative triggers only in the body. Its JSON output is a counter M1’s ratchet compares per file against the merge base, so no baseline file is kept.
  • mappings.md (Claude Code, Codex, Cursor and Copilot file conventions, what each runtime loads, the budgets per consumer with their dates, the CI recipe, and each runtime-specific capability with its fallback per runtime, deny-list formats and their gaps included) and the module’s maturity criteria.

Jig’s own AGENTS.md, the CLAUDE.md files that import it, and the nested AGENTS.md files, each with a CLAUDE.md beside it that imports it, are a working instance of this module; bun run gates and CI run the context-budget checks over Jig itself, with the soft description target enforced for the plugin’s skills, since every repository that installs the plugin pays for them. The plugin’s skills follow the authoring rules (plugin/AGENTS.md), and bun run quality holds each skill file’s counts so they only fall. The skill-invocation fallback lint runs over Jig’s instruction files and its own maintenance skills (.claude/skills); the plugin’s skills are invoked as /jig:<name>, which the lint leaves out by design, so a plugin skill’s procedure is held to the fallback rule by plugin/AGENTS.md and review instead. Jig commits no deny list for any runtime, so it has none to keep in step.

What the context-budget checks leave out, and why: MCP server instruction blocks, skills from a person’s own setup or another plugin, and a person’s own instruction files are part of the always-loaded surface, but no repository file shows them, so they are measured in a running session instead. Whether a runtime received a rule at all is the observation in mappings.md; the checks measure what the repository asks each runtime to load, not what arrived.

Left out on purpose: a per-runtime question picker (plain text is the branch every runtime has), a deny list generated for every runtime from one source (the formats match differently, so a projection would hide each one’s gaps rather than state them), and a lint for capabilities other than slash commands, such as a built-in tool named with no fallback beside it: their names are open-ended, so they are left to review until a working repository has a check worth bringing in.

Future: section labels that mark each section of a skill as exact (run the named command as written) or judgment (reach the stated outcome by the means that fit), with a check that a prescribed command sits under an exact label. Some of Jig’s skills already use the labels; they become a rule once their effect is measured with more than one review per skill, since a single review gives no estimate of how much reviewers vary. Also future: a reference generator for the model roster, which arrives when the working tool moves here (the routing policy states what it renders and rejects; its generate-and-check mechanism belongs with M2), and a pull-request review step that reads rule frontmatter to pick the rules relevant to a diff (it belongs with M7’s review harness).