jig: Instructions file for Claude Code

AGENTS.md

jig AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from ramboz/jig. It costs 3,024 tokens per session, scanned A, original, MIT.

Project instructions for jig, an AI-focused development scaffold and skill pack, including its terminology, active work, and key documents.

In plain words
What is it for?
They help agents understand project terms and status, locate architecture and roadmap information, and use jig's orientation and memory-sync workflows.
Why use it?
They give agents a compact current overview and point to fuller definitions and project decisions when needed.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: ${CLAUDE_PLUGIN_ROOT} variable, but also the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

This is ramboz/jig's own configuration. It tells Claude Code, Codex and OpenCode how to work on jig itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything jig configures →

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

View source ↗ ramboz/jig
Reuse

Borrowing it

Nothing to install: this file belongs to ramboz/jig. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ramboz/jig/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ramboz/jig

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jig AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ramboz/jig/agents-md/github.svg)](https://agentmods.dev/instructions/ramboz/jig/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ramboz/jig/agents-md"><img src="https://agentmods.dev/badge/instructions/ramboz/jig/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jig AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ramboz/jig/agents-md"><img src="https://agentmods.dev/badge/instructions/ramboz/jig/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,024 This file is loaded in full into every session.
When invoked 3,024 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03024 $0.03024
Opus 5.5 $0.01210 $0.01210
Sonnet 5.5 $0.00605 $0.00605
Haiku 4.5 $0.00302 $0.00302

Measured 23d ago against content hash 2d0c50583950, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jig AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

jig — AI-Native Dev Scaffold

The Codex skill pack that scaffolds AI-native development practices. We dogfood the workflow we build.

Hot Cache

Always-loaded primer, kept lean per spec 055/057 (orchestrator context × turns is the cost). This is an index: each bold term is a one-line claim + link; full definitions live in docs/memory/glossary.md + the lexicon and expand on demand via /jig:explain <term>. Update via /jig:memory-sync.

Project codenames / active work

  • jig = this skill pack repo (the plugin itself).
  • Branch routing — main is the sole active line: 1.x and the 2.0 multi-host work both shipped here (latest tag v2.10.0). The legacy v2 branch is closed — don't route work to it. See docs/roadmap.md.
  • Active specs: none in-flight (088 /jig:orient skill shipped + closed; 091 bug-fix repository-closure shipped + closed). Bug-fix repository closure — ADR-0037 (Accepted) / spec 091 — two marker-keyed closure gates on the bug lifecycle; JIG_BUG_CLOSURE_GATE=0. Per-slice invariants live in the status-board Notes column. Long-horizon-autonomy bridge (oh-my-cli follow-on): spec 106 — autonomy governance plane & identity separation (ADR-0051, Accepted) is built; spec 105 — durable failure-quarantine jig-half (ADR-0050, Proposed) is still recorded, not built. servo halves live in ramboz/servo (servo specs 023/024/025, ADR-0029/0030) — not yet built. See docs/specs/README.md. Deferred → docs/refinement-todo.md.

Key terms (one-line index — full defs via /jig:explain <term>)

  • Configurable docs root — ADR-0033 / spec 084 — layout.docs_root in scaffold.json (default docs); . = track-local adoption inside a larger repo; discovery sentinel-anchored; subtree push-mode refused. Read via _common/project_layout.py.
  • Subagent permission — In this jig project, the user explicitly permits Codex to use subagents when they materially help implementation, review, reconciliation, or coordination work.
  • Lifecycle-family spine — ADR-0023 — spec-workflow / bug-fix / refactor share one C1–C7 gated-evidence spine; extract to _common/lifecycle.py only at the third transition. PARKED — don't re-propose the servo pluggable-oracle boundary (ADR-0022 C5) without a real eval case / servo spec 006 / a built consumer.
  • Closed-spec drift — ADR-0010 (supersedes ADR-0008) — closed records get ## Amendments; live prose corrected inline; new ADR for decision changes. Amending a record needs explicit owner approval (spec 102, issue #125): surface a canon-artifact conflict and stop; approving a behaviour ≠ authority to rewrite the record; read the whole criteria block before asserting a contradiction.
  • Spec-gate model — ADR-0011 — jig-spec-gate.sh is a deliberateness gate on conventions.md, not human-only enforcement; real control is out-of-band.
  • Security floor — ADR-0013 / spec 052 — 5-part scaffolded floor; defense-in-depth, not a firewall.
  • Review-evidence gate — ADR-0014 (spec 045) — transition gates REVIEWED/RECONCILED/DONE on recorded verdict artifacts; bypass JIG_REVIEW_EVIDENCE_GATE=0. Sibling Lifecycle entry gate — ADR-0044 / spec 098 — fail-open PostToolUse nudge on an out-of-lifecycle source edit (no live claim held by this checkout); reads .jig/spec-ref (slice + 098-04 bug=NNN arms) w/ a .gitignore/named-artifact boundary; JIG_ENTRY_GATE=0. Sibling Session git-freshness — ADR-0048 / spec 103 — fail-open SessionStart time-zero nudge: fetches (timeout-guarded, best-effort) the integration base, warns when HEAD is behind before a stale premise forms; smart-target resolution (non-own @{upstream} else origin/main→origin/master; own-remote guard = base drift, not own-branch advancement); JIG_GIT_FRESHNESS=0.
  • Worktree-aware reservation — ADR-0015 / spec 051 — new routes on branch; off-main reserves via an ephemeral detached worktree at origin/main.
  • Context-cost discipline — spec 055 — cost ≈ orchestrator context × turns; delegate reads, keep the primer lean.
  • Thin-orchestrator — spec 057 — turn count + peak context are the top cost knobs; workflow.py session-plan dispatches.
  • Token-usage tracking — spec 056 — usage.py report <spec> per-spec token/$ totals; price via ccusage, never hand-rolled.
  • Slice-claim on working states — spec 049 / ADR-0045 — transition stamps claimed_by: on WORKING states, releases on the pickup queue + terminal; blank ≠ free.
  • Solo→team re-detection — spec 050 — re-evaluates the team signal; nudges to bootstrap people.md.
  • Vocabulary barrier / lexicon — spec 065 / ADR-0021 — on-demand jargon via /jig:explain + lexicon, off the hot path.
  • Status board — docs/specs/README.md, regenerated by workflow.py status-board; Notes column preserved + load-bearing.
  • Use-case progress — ADR-0064 / spec 116 — read-only workflow.py progress [--summary], the one bounded exception to the PM out-of-scope line — a progress view, not a drift detector; don't grow it here.
  • SPIDR, Vertical slice, Dumb zone, Reconciliation, Reframe (/jig:reframe — ADR-0024), Tier 0/1/2, Hot Cache, Research note (docs/research/R-NNN, ADR-0054) — see glossary / /jig:explain.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · +1 lines · +77 tokens per session 2d0c50583950
  2. 1mo ago First seen · 71 lines · 2,947 tokens per session scan A f665897b17be

Subscribe to this mod's changes

jig AGENTS.md is an instructions file published in the GitHub repository ramboz/jig (7 stars, last pushed yesterday), licensed MIT. It adds 3,024 tokens to every session, about $0.0121 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories