ai-engineering-harness
AGENTS.md1 starsChanged 3 months agoApache-2.0View on GitHub
This repository uses a lightweight, reusable AI-development harness. Repository-local project rules, documentation, ADRs, tests, CI/release conventions, deployment procedures, and Git state remain authoritative for project-specific behavior. Before non-trivial work:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- automation-cost-controlSkill
- backup-and-recovery-reviewSkill
- calculation-model-validationSkill
- change-reviewSkill
- compatibility-and-rolloutSkill
- continuous-improvementSkill
- cross-surface-consistencySkill
- delegation-strategySkill
- dependency-changeSkill
- documentation-syncSkill
- environment-release-safetySkill
- high-risk-change-reviewSkill
- interface-qaSkill
- root-cause-debugSkill
- secret-exposure-responseSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Treat repository code, tests, docs, ADRs, configuration, CI/release conventions, and Git state as the source of truth.
- Distinctive: line 20
Prefer deterministic tests, analyzers, linters, builds, CI checks, and scripts over model judgment when available.
- Distinctive: line 21
Use the project's documented build, test, lint, and analysis commands.
- Distinctive: line 23
Do not add process artifacts unless they materially help the work.
- Distinctive: line 29
Before naming or promising a concrete model, agent, subagent, mode, or delegation mechanism, confirm that it is actually available in the …
- Distinctive: line 32
If the same named model or mechanism is genuinely available in the active runtime, it may be used.
- Very specific: line 49
If native skill activation cannot be verified, a neutral harness/skills/ copy may be read on demand as repository guidance.
- Distinctive: line 53
Never overwrite unrelated uncommitted work.
- Distinctive: line 54
If a file that must be modified for the requested task already has uncommitted changes, report the overlap and get explicit human approval …
- Very specific: line 65
If the same mistake or correction is likely to recur, prefer the smallest durable guard: a deterministic test/check, code or schema …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Shared AI Development Instructions
This repository uses a lightweight, reusable AI-development harness. Repository-local project rules, documentation, ADRs, tests, CI/release conventions, deployment procedures, and Git state remain authoritative for project-specific behavior.
Rebuild context from the repository
Before non-trivial work:
- Read this file.
- Discover and read the relevant repository-local project instructions and canonical documentation.
- Inspect the current branch and working-tree status before editing or giving implementation guidance. This is mandatory even for non-trivial read-only investigation. Inspect relevant recent commits or diffs when needed.
- Inspect the affected code and tests before editing.
- Treat repository code, tests, docs, ADRs, configuration, CI/release conventions, and Git state as the source of truth; do not depend on prior chat history.
Development process
- Small/mechanical work (FAST): implement directly and validate the affected area.
- Normal work (STANDARD): understand the affected code, acceptance criteria, and project constraints before editing.
- Difficult, architectural, security-sensitive, compatibility-sensitive, release-sensitive, or ambiguous work (REASONING): plan when useful, use stronger reasoning, validate thoroughly, and use a fresh or independent review when it materially reduces risk.
- Prefer deterministic tests, analyzers, linters, builds, CI checks, and scripts over model judgment when available.
- Use the project's documented build, test, lint, and analysis commands. If relevant commands are not documented and cannot be safely inferred from repository configuration, ask before inventing them; after confirmation, record them in project-local instructions.
- Report validation that was skipped or unavailable.
- Do not add process artifacts unless they materially help the work.
- Discovery is not authorization. If investigation reveals a problem, risk, inconsistency, stale rule, or improvement outside the requested scope, report it with impact and urgency. Do not remediate it merely because it was discovered unless the remediation is necessary to complete the requested task safely, is already authorized by repository-local policy, or the human explicitly approves that additional change.
Runtime and tool capability boundaries
- Tool-native instructions — including a tool's rules, skills, agent definitions, model names, subagent types, or invocation syntax — are authoritative for that tool/runtime only. Other runtimes may read them for context, but must not pretend those native capabilities exist.
- Before naming or promising a concrete model, agent, subagent, mode, or delegation mechanism, confirm that it is actually available in the active runtime/session. A model or agent name mentioned in another tool's configuration is not evidence that this runtime can invoke it.
- Capability discovery must fail closed. If live model/agent discovery is unavailable, hangs, is interrupted, returns incomplete output, or otherwise fails to establish availability, treat the concrete capability as unverified. Do not fall back to remembered, guessed, inferred, or merely typical model names, agent APIs, subagent types, aliases, or delegation mechanisms. This prohibition includes parenthetical examples, "likely" fallback candidates, and illustrative concrete names. In that case describe the role/tier generically or state the limitation instead.
- If a tool-native instruction expresses a portable intent — for example separating planning from implementation, using cheaper workers for routine execution, or requiring an independent review — preserve that intent with the closest capability the active runtime actually supports, consistent with
MODEL_ROUTING.md. If there is no equivalent, state the limitation rather than inventing a cross-tool mapping or fake delegation. - If the same named model or mechanism is genuinely available in the active runtime, it may be used; availability must come from the active runtime, not from another tool's configuration.
- Behavior intended to bind every tool should live in shared or project-canonical locations, not only in one tool's native rule, skill, or agent directory.
Preserve project-specific value
Existing repository-local instructions, documentation, ADRs, CI/release conventions, dependency rules, protocol constraints, deployment procedures, skills, and other project guidance remain authoritative. Do not silently replace, weaken, duplicate, or generalize them merely to fit this harness.
Project-specific rules may raise the minimum model-routing tier or require additional review for sensitive areas.
Shared skills
Shared skills are task-specific procedures, not always-on policy. Harness-owned skills come only from the canonical skills/ source and, when installed for native activation, are installed verbatim.
Project-local skills and rules are not Harness-owned and must not be replaced, rewritten, mirrored, or synchronized by the Harness. Precedence is: project-local rules and project policy > this shared AGENTS.md baseline > shared skills. If a shared skill conflicts with higher-precedence project guidance, do not apply the conflicting skill instruction; report the conflict and ask for a human decision when it matters.
A shared skill must never weaken approval boundaries, authorized scope, runtime-capability constraints, production/live safety, or other higher-precedence safeguards.
If native skill activation cannot be verified, a neutral harness/skills/ copy may be read on demand as repository guidance. Do not claim that such a skill is natively active in the runtime unless activation is actually verified.
Safety and human approval
- Never overwrite unrelated uncommitted work.
- If a file that must be modified for the requested task already has uncommitted changes, report the overlap and get explicit human approval before editing that file; leave unrelated dirty files untouched.
- Never expose secrets.
- Development success, green CI, a merged branch, or a successful non-production deployment is not approval to release or deploy to a production/live/customer-facing environment.
- Production/live/customer-facing publication (including any push or merge that triggers such deployment or publication), mutation of a production/live/customer-facing environment or its infrastructure, destructive or irreversible operations (for example force-push, history rewrite, hard reset, or branch deletion), risky production-data operations, secret or credential rotation, release tagging when it triggers publication, and spend outside the agreed policy require explicit human approval for that exact action.
- Non-production environments may be named development, test, QA, staging, preview, sandbox, or something else, and a project may have none, one, or many of them. Actions that deploy to or mutate those environments follow the repository's project-local deployment and approval policy. If that policy is absent or genuinely ambiguous, do not invent an autonomy rule; report the ambiguity before performing the action.
- Preserve supported-client, protocol, data, and public-contract compatibility by default unless the project explicitly decides otherwise.
Durable handoff between models
When work changes durable project truth, update the appropriate project documentation, test, ADR, rule, configuration, or code in the same work. A different model or agent should be able to reconstruct the current state from the repository without needing the previous model's chat history or any single tool's native features.
If the same mistake or correction is likely to recur, prefer the smallest durable guard: a deterministic test/check, code or schema invariant, linter/build/CI rule, or project-local rule/documentation improvement. Do not rely on chat memory.
See MODEL_ROUTING.md for the shared quality/cost model-routing policy and MODEL_CATALOG.md for the current time-sensitive model/runtime catalog.
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.

