harness-kit
AGENTS.md0 starsChanged 7 months agoMITView on GitHub
This repository is a reusable documentation-first harness for Codex projects. If you are working in this repository, treat this file as the first operating document to read before changing anything else. This repository mainly defines the workflow in Markdown. If a team wants real automatic enforcement, they must add code, scripts, CI, or lint rules in the target repository. When starting work here, use this order: Then open only the specific template or README that matches the task. Do not…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- decision-recordingSkill
- harness-bootstrapSkill
- issue-driven-workflowSkill
- planning-workflowSkill
- review-workflowSkill
- spec-writingSkill
- subagent-workflowSkill
- technical-learning-noteSkill
- troubleshooting-workflowSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 0 are common, 20 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
If you are working in this repository, treat this file as the first operating document to read before changing anything else.
- Distinctive: line 15
Not a build framework
- Distinctive: line 16
Not a runtime package manager
- Distinctive: line 17
Not an automatic enforcement engine by itself
- Distinctive: line 20
If a team wants real automatic enforcement, they must add code, scripts, CI, or lint rules in the target repository.
- Distinctive: line 24
When starting work here, use this order:
- Distinctive: line 41
Keep this repository Markdown-first
- Distinctive: line 42
Prefer reusable operating guidance over one-off chat-only advice
- Distinctive: line 43
Write documents so another Codex user can apply them without project-specific context
- Distinctive: line 45
When adding a new rule, say who follows it, when it runs, and how it is validated
- Distinctive: line 49
Do not add code here unless the user explicitly changes the repository scope
- Distinctive: line 50
Do not assume every repository has the same stack, folder layout, or CI setup
- Distinctive: line 51
Do not promise automatic enforcement if the mechanism is only documented
- Distinctive: line 52
Do not mix project-specific product rules into generic harness documents
- Distinctive: line 56
Do not default to one serial agent when a task can be split safely and usefully.
- Distinctive: line 60
When delegation is justified, prefer a small role-based agent team:
- Distinctive: line 86
Prefer the lightest execution mode that preserves quality:
- Distinctive: line 93
Do not let delegation widen authority.
- Distinctive: line 94
Do not spawn role labels without a concrete question, artifact, or file ownership boundary.
- Distinctive: line 96
If sub-agents are used, record enough evidence that another agent can understand what was delegated, what changed, and what was validated.
- Very specific: line 120
Use learning for generalized technical understanding.
- Very specific: line 122
Use troubleshooting for concrete incidents:
- Very specific: line 129
Use guardrails when either of these is true:
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This repository is a reusable documentation-first harness for Codex projects.
If you are working in this repository, treat this file as the first operating document to read before changing anything else.
What This Repository Is
- A reusable workflow kit for Codex-based development
- A documentation harness that can be copied into other repositories
- A source of operating rules, issue-first workflow, learning-note rules, and repo hygiene loops
What This Repository Is Not
- Not a build framework
- Not a runtime package manager
- Not an automatic enforcement engine by itself
This repository mainly defines the workflow in Markdown.
If a team wants real automatic enforcement, they must add code, scripts, CI, or lint rules in the target repository.
Read Order
When starting work here, use this order:
AGENTS.mdREADME.mdREADME.ko.mdwhen Korean context mattersassets/templates/docs/README.mdassets/templates/docs/operations/agent_session_boot_protocol.mdassets/templates/docs/operations/guardrails.mdassets/templates/docs/troubleshooting/README.mdassets/templates/docs/playbooks/repo_hygiene_gc_loop.md
Then open only the specific template or README that matches the task.
Default Working Rules
Do
- Keep this repository Markdown-first
- Prefer reusable operating guidance over one-off chat-only advice
- Write documents so another Codex user can apply them without project-specific context
- Explain where work is automatic, semi-automatic, or manual
- When adding a new rule, say who follows it, when it runs, and how it is validated
Don't
- Do not add code here unless the user explicitly changes the repository scope
- Do not assume every repository has the same stack, folder layout, or CI setup
- Do not promise automatic enforcement if the mechanism is only documented
- Do not mix project-specific product rules into generic harness documents
Agent Teaming
Do not default to one serial agent when a task can be split safely and usefully.
At the same time, do not split work just because a task is large. Stay local first until scope, affected paths, and validation are clear enough that delegation will reduce risk instead of creating guesswork.
When delegation is justified, prefer a small role-based agent team:
main agent- owns the plan
- decides whether delegation is justified
- assigns role boundaries and write ownership
- integrates results
- resolves conflicts
- performs final verification
analysis / research agent- maps files
- identifies risks
- gathers evidence
implementation agent- edits only its assigned write scope
- reports exact changes
review / verification agent- stays read-only and independent
- checks regressions
- checks missing tests
- checks evidence and completion claims
writer / ops agentwhen relevant- updates docs, notes, playbooks, or run procedures
Default behavior:
- Prefer the lightest execution mode that preserves quality:
- local first
- then bounded delegation
- then multi-agent team composition when parallel lanes materially improve speed, safety, or coverage
- For non-trivial work, prefer specialist sub-agents once scope, validation, and ownership are clear enough to split safely.
- Parallelize only when write scopes do not overlap and the lanes are behaviorally independent or connected by an agreed interface.
- Different files do not automatically make parallelism safe; dependency chains and shared behavior still matter.
- Do not let delegation widen authority. Protected files, human-approved-only files, and issue-level scope locks still apply.
- Do not spawn role labels without a concrete question, artifact, or file ownership boundary.
- The main agent must never offload final judgment, final integration, or final validation.
- If sub-agents are used, record enough evidence that another agent can understand what was delegated, what changed, and what was validated.
Core Operating Model
This repository supports four layers:
Session boot- What Codex should read first
- What should be checked before implementation
Guardrails- What should be checked before coding
- Which implementation patterns exist to prevent repeated mistakes
Troubleshooting- How to record mistakes, regressions, symptoms, and fixes
- How to leave behind incident history that another agent can reuse
Repo hygiene / garbage collection loop- How to review drift between docs and code
- How to inspect rule violations, dead code, stale docs, and unused assets
Guardrail Boundary
Use learning for generalized technical understanding.
Use troubleshooting for concrete incidents:
- user-reported breakage
- regression symptoms
- runtime errors
- confusing or misleading UX states
Use guardrails when either of these is true:
- the user explicitly says “do not do this again”
- a mistake has already repeated or is expensive enough that repetition is unacceptable
Important Constraint
Markdown can define the loop, but Markdown cannot enforce the loop alone.
That means:
AGENTS.mdcan tell Codex what to read first- playbooks can define repeatable review steps
- issue docs can capture findings
But fully automatic checks such as:
- dead code detection
- drift checks
- lint enforcement
- unused file scanning
- failing build gates
need executable tooling in the target repository.
Goal of Changes Here
Any new document added to this repository should help another project answer:
- What should Codex read first?
- What should be documented before coding?
- How are failures recorded?
- How do we detect drift and cleanup needs?
- Which parts are manual vs automatic?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

