jjj AGENTS.md

A repository guide for jjj, a project tracker built around Jujutsu version control. It explains the required agent identity, collaboration workflow, and rules for recording problems, solutions, and reviews.

In plain words
What is it for?
Use it before changing jjj, especially when claiming work, reading or creating tracked issues, setting agent identity, and checking changes against repository rules.
Why use it?
It keeps work claims and reviews tied to the correct agent and prevents automation from bypassing the project’s review process.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/doug/jjj/agents-md
Clone the repo
git clone --depth 1 https://github.com/doug/jjj

Made for: Codex, OpenCode.

Per session 464 This file is loaded in full into every session.
When invoked 464 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00464 $0.00464
Opus 5 $0.00232 $0.00232
Sonnet 5 $0.00093 $0.00093
Haiku 4.5 $0.00046 $0.00046

Measured 2d ago against content hash abe20002c3c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

jjj 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 2d 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 · 51 lines

What it actually says

Agent instructions

This repository is jjj, a project tracker built on Jujutsu. It is also managed with jjj — problems, solutions, and critiques live in the jjj bookmark alongside the code.

Before you write anything

Set an identity. Without it every agent shares the repository owner's identity, so work claims overwrite each other and per-agent queues do not work:

export JJJ_USER=<your agent name>
jjj whoami --json          # confirm it took effect

Read this first

skills/jjj/SKILL.md — how to use and collaborate through jjj: the machine interface, the single-agent loop, and the multi-agent patterns (work claiming, rival conjectures, adversarial review, collision avoidance, pods). It is checked against the real CLI by tests/skill_test.rs, so it does not drift.

For working on jjj's own code, CLAUDE.md covers the architecture, storage model, and build commands.

House rules

  • Use ids, not titles, in anything scripted. Fuzzy title matching resolves to whatever uniquely matches today. Read ids from --json.
  • Never --force past a critique. jjj solution approve --force bypasses the one mechanism that makes review real.
  • Automation rules are machine-local (.jj/jjj-meta/automation.toml) and are deliberately never synced. Do not move them into config.toml; that file travels through the shared bookmark and a rule there would execute on every collaborator's machine.
  • jjj doctor is the first thing to run when something looks wrong, and the right thing to attach to a bug report.

Verifying changes to this repository

cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test

Behaviour that users see should be covered by an executable journey in journeys/ — they are markdown, they run as tests, and they double as the documentation. RELEASE.md lists the checks CI cannot make.

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. 2d ago First seen · 51 lines · 464 tokens per session scan A abe20002c3c7

Subscribe to this mod's changes

jjj AGENTS.md is an instructions file published in the GitHub repository doug/jjj (11 stars, last pushed 3d ago), licensed Apache-2.0. It adds 464 tokens to every session, about $0.0023 per session on Opus 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-30.