delegation-layer
AGENTS.md2 starsChanged 2 months agoMITView on GitHub
Read the product boundary before proposing a design, guarantee or restriction. Delegate owns task lifecycle and evidence; users and providers own their CLI installations, settings and accounts. The installed-executable rule also applies to Delegate, Pueue, fixtures and contributor tools. See what Delegate provides for product purpose and current capabilities, and architecture for implementation details. 1. Do the smallest correct change. In the existing plan, name the requested behavior, affected area, non-goals and done condition. No mandatory plan template, tracking file…
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 35,117 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 repository11 other files it gives its agents.
- add-an-adapterSkill
- agent-integrationSkill
- delegate-upgradeSkill
- delegation-architectSkill
- docs-updaterSkill
- go-concurrencySkill
- go-implementerSkill
- go-reviewerSkill
- go-test-writerSkill
- live-e2eSkill
- supervisor-architectSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 2 are common, 12 are distinctive, and 2 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈12
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 5
Read the product boundary before proposing a design, guarantee or restriction.
- Distinctive: line 17
Do the smallest correct change.
- Distinctive: line 20
Before changing shared state or an interface, name its authoritative owner, writers, readers and invariant.
- Distinctive: line 25
Keep explicit control flow, typed boundaries, immutable defaults and useful errors.
- Distinctive: line 28
Verify source and required native/provider facts before choosing a design.
- Distinctive: line 41
Use focused checks while editing and applicable final checks on stable source.
- Distinctive: line 42
Do not repeat a suite through an aggregate unchanged.
- Distinctive: line 54
After implementation and behavioral verification, reconcile affected README, guides, examples, skills and diagrams as the final development …
- Distinctive: line 60
Use docs-updater for the reconciliation procedure.
- Distinctive: line 61
Update only affected guidance and diagrams.
- Distinctive: line 81
Use the user's selected models, effort and permissions.
- Distinctive: line 99
Prefer codebase-memory MCP search, trace and snippets.
- Common: line 105
Use Context7/current primary documentation for uncertain library or CLI APIs.
- Common: line 106
Never send secrets or private source to external searches.
- Very specific: line 120
Use the matching repository skill: delegation-architect, supervisor-architect, go-implementer, go-reviewer, go-test-writer, go-concurrency, …
- Very specific: line 126
Run make verify-skills after skill/link changes.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Working on Delegation Layer
Product direction
Read the product boundary before proposing a design, guarantee or restriction. Delegate owns task lifecycle and evidence; users and providers own their CLI installations, settings and accounts. The installed-executable rule also applies to Delegate, Pueue, fixtures and contributor tools.
See what Delegate provides for product purpose and current capabilities, and architecture for implementation details.
Shared engineering rules
- Do the smallest correct change. In the existing plan, name the requested behavior, affected area, non-goals and done condition. No mandatory plan template, tracking file or extra approval process.
- Before changing shared state or an interface, name its authoritative owner, writers, readers and invariant. Keep one owner per state; derive other views.
- Group new capabilities into cohesive packages, rather than adding filename-prefix families. Separate data, pure decisions and I/O; depend inward through narrow consumer-owned interfaces. Reuse the existing policy, resolver, transaction and finalizer instead of copying them.
- Keep explicit control flow, typed boundaries, immutable defaults and useful errors. Preserve supported behavior and persisted data. A private signature or test name is not a compatibility promise merely because it once existed.
- Verify source and required native/provider facts before choosing a design. An unavailable tool blocks only dependent work. Do not repair global configuration or substitute a provider to obtain a pass.
- Construct, parse and compare values through domain APIs using the contract's semantics: value, structure or identity. Check required representation and input/safety constraints separately; equivalence alone does not prove validity. Derive expected results independently from verified requirements and fixture facts, not incidental output from one host. Use native path/temp APIs and isolate OS primitives. A cross-build or another kernel does not prove native behavior. Windows is a future, unverified host.
- Tests, fixtures, installers and contributor tools are maintained code. Keep architectural boundaries and meaningful checks; never weaken assertions, suppress a finding or relabel handwritten code to obtain a pass.
- Use focused checks while editing and applicable final checks on stable source. Do not repeat a suite through an aggregate unchanged. Rerun for changed inputs or a concrete concern. Independently review the integrated result and valid corrections; do not add the same review pair to every worker as well.
- Include necessary callers/tests/references; report unrelated findings separately. If scope must expand, explain the dependency and smallest alternative, ask for that decision, and continue independent work.
- Report actual changes, commands/results and limitations in the conversation. Blocked or unverified checks are not passed. Keep credentials, inherited environments and unrestricted private provider output out of diagnostics.
Documentation completion
After implementation and behavioral verification, reconcile affected README, guides, examples, skills and diagrams as the final development step before independent integrated review and opening or completing the PR. Implementers report documentation impact; Root owns reconciliation across subsystems; the independent reviewer verifies the integrated result against current source.
Use docs-updater for the reconciliation procedure. Update only affected guidance and diagrams; a specific, source-backed reason for no change is valid. Record the assessment and actual checks in the PR's documentation checklist. Checks for links, commands and checksums do not establish semantic freshness or visual quality.
Corrections that change documented behavior reopen this assessment. Reconcile those changes before final review and rerun only invalidated checks, including applicable documentation checks. Do not force token documentation edits, unrelated diagram regeneration, or repeated runtime/provider suites for prose.
Coordination
- Root owns integration and Git operations: commits, pushes, PRs, CI observation, merges and releases. Other agents leave changes uncommitted unless explicitly assigned otherwise.
- Give each worker an exact base, owned files and prerequisites. One writer owns overlapping files. Apply and verify a prerequisite before dependent edits; independent work proceeds in parallel.
- Preserve others' work and unique local data. Use supported resource commands for bounded cleanup; add tooling only for an observed correctness problem.
- Use the user's selected models, effort and permissions. Do not pin the repository process to a particular model or silently substitute one.
- Independent reviewers did not implement the reviewed change. A stopped or inconclusive check is reported honestly, not converted into approval.
Test and experiment cleanup
The creator owns cleanup of test-only files, binaries, schedules, admitted tasks, processes and managed workspaces. Arrange cleanup before creating a resource and cover success, failure and interruption. Prevent further launches, close active work through its supported lifecycle owner, and verify closure before removing owned paths. Preserve user data, shared state and intended deliverables; retained history in a shared store is not active work and is not purged. If cleanup or closure is unresolved, retain necessary evidence, report the exact remaining resource and do not claim cleanup or test completion.
Code discovery
Prefer codebase-memory MCP search, trace and snippets. Confirm project/index freshness; use bounded queries and relevant pagination. Check coverage when its tool is available. Read exact source for stale, missing or partial results. An empty search is not proof of absence. Use source search when graph tools cannot answer. Discovery describes relationships, not allowed dependencies.
Use Context7/current primary documentation for uncertain library or CLI APIs. Never send secrets or private source to external searches.
Task-relevant guidance
Load only the owner of the rule needed for the change:
| Question | Authority |
| Architecture, dependencies and maintainability | Maintainability |
| Task authority, durable writes, lifecycle/signals | Delegation invariants |
| Provider preparation and interpretation | Adapter contract |
| Toolchain, lint and test floor | Code quality |
| Current implementation and commands | Architecture, contributing |
Use the matching repository skill: delegation-architect, supervisor-architect, go-implementer, go-reviewer, go-test-writer, go-concurrency, live-e2e, docs-updater or add-an-adapter. Read its SKILL.md only when applicable. Agent-integration owns external delegation guidance. Antigravity is for its integration acceptance, not implementation work.
Run make verify-skills after skill/link changes. Local plans and historical
diagnostics belong under ignored .local/archive/, not product documentation.
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.

