template / infrastructure
AGENTS.md20 starsChanged 2 months agoApache-2.0View on GitHub
Layer 1 contains reusable tooling for the research template: project discovery, pipeline execution, validation, rendering, reporting, publishing, skills, and agent-facing documentation. Project-specific science stays in projects/{name}/src/; root and project scripts stay thin. - Business logic lives in infrastructure/ or projects/{name}/src/. - Scripts orchestrate only; moving computation into scripts breaks the template contract and the thin-orchestrator drift checks. - Do not hard-code rotating private project names. Link docs/generated/activeprojects.md for public rendered scope. - .codegraph/, .leann/, .omo/, coverage files, local/private output trees,…
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 31
Do not hard-code rotating private project names.
- Very specific: line 43
Add new routable packages with AGENTS.md, README.md, and SKILL.md when they are intended for agent discovery.
- Very specific: line 45
Keep generated facts in generated files.
- Distinctive: line 61
Use focused pytest slices for changed packages, then broaden only when the changed surface crosses package or pipeline boundaries.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Infrastructure Layer
Purpose
Layer 1 contains reusable tooling for the research template: project discovery,
pipeline execution, validation, rendering, reporting, publishing, skills, and
agent-facing documentation. Project-specific science stays in
projects/{name}/src/; root and project scripts stay thin.
Where To Look
| Task | Primary package | Notes |
| Run or inspect the pipeline | core/pipeline/, orchestration/, scripts/ | run.sh delegates into infrastructure.orchestration; stage semantics live in core/pipeline/pipeline.yaml. |
| Validate manuscripts and outputs | validation/ | CLI entry point: uv run python -m infrastructure.validation.cli .... |
| Render PDFs, slides, web, DOCX, EPUB | rendering/ | Rendering preflight may import validation leaves, not broad validators. |
| Project roster, sidecar links, git guards | project/ | Public scope comes from project.public_scope; private mirrors are local-only. Sidecar sync for all four top-level trees is registered in orchestration/link_sync.py. |
| Resource pools (fonds, rules, tools) | fonds/, rules/, tools/ | Passive data pools, governance rules, and invocable tools mirror projects/ with git-tracked templates/* exemplars. |
| Reports and release readiness | reporting/ | Local evidence dashboards only; network publication is outside release-readiness aggregation. |
| Generated docs and live counts | documentation/ | COUNTS.md, active projects, API reference, publication records. |
| Methods orchestration | methods/ | Read-only mapping of pipeline contracts, methods prose, artifacts, evidence, validation commands. |
| Skill discovery and manifests | skills/ | Regenerates docs/_generated/skills_index.md and .cursor/skill_manifest.json. |
| Optional companions | search/, llm/, steganography/, sia/, autoresearch/ | Keep opt-in dependencies and generated state out of default CI/pipeline unless documented. |
| Expose the agent surface over MCP | mcp_server.py | Opt-in self-contained stdio JSON-RPC server (python -m infrastructure.mcp_server) exposing list_operations / describe_pipeline / list_skills / invoke_cli as MCP tools. Dual-era: legacy 2024-11-05 initialize plus stateless 2026-07-28 server/discover and per-request metadata. Standard-library only; not wired into CI/pipeline. |
Boundaries
- Business logic lives in
infrastructure/orprojects/{name}/src/. - Scripts orchestrate only; moving computation into scripts breaks the template contract and the thin-orchestrator drift checks.
- Do not hard-code rotating private project names. Link
docs/_generated/active_projects.mdfor public rendered scope. .codegraph/,.leann/,.omo/, coverage files, local/private output trees, and other local indexes are generated state and must not be tracked. Canonical public exemplar outputs admitted by the repository allowlist are publication evidence.- Optional tools such as CodeGraph and LEANN are navigation aids. Publication claims require source files, tests, evidence registries, artifacts, and gates.
Public API Rules
- Infrastructure packages that re-export symbols must keep explicit
__all__entries and passuv run python -m infrastructure.skills check-all-exports. - Add new routable packages with
AGENTS.md,README.md, andSKILL.mdwhen they are intended for agent discovery. - Keep generated facts in generated files. Do not copy measured counts into
long-lived prose; regenerate
docs/_generated/COUNTS.mdinstead.
Verification
uv run python -m infrastructure.project.public_scope lint-paths | xargs uv run ruff check
uv run python -m infrastructure.project.public_scope source-paths | xargs uv run mypy
uv run python scripts/audit/check_template_drift.py --strict
uv run python scripts/audit/check_tracked_all.py
uv run python scripts/audit/check_tracked_generated_artifacts.py
uv run python scripts/gates/module_line_count_check.py
uv run python -m infrastructure.skills check
uv run python -m infrastructure.skills check-all-exportsUse focused pytest slices for changed packages, then broaden only when the changed surface crosses package or pipeline boundaries.
Documentation Contract
AGENTS.md: operating contract for agents; concise and non-redundant.README.md: human guide and deeper examples.SKILL.md: routing contract with YAML frontmatter.docs/_generated/*: generated facts; update via generator commands, not by hand.
See Also
README.mdmethods/AGENTS.mdproject/AGENTS.mdvalidation/AGENTS.mdrendering/AGENTS.md
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 28,693 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 repository42 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/skills/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- fonds/AGENTS.mdAGENTS.md
- .github/actions/AGENTS.mdAGENTS.md
- .github/actions/setup-acceptance-documents/AGENTS.mdAGENTS.md
- .github/actions/setup-acceptance-fixtures/AGENTS.mdAGENTS.md
- .github/actions/setup-acceptance-model/AGENTS.mdAGENTS.md
- .github/actions/setup-docs-lint/AGENTS.mdAGENTS.md
- .github/actions/setup-native-installed-readiness/AGENTS.mdAGENTS.md
- .github/actions/setup-python-env/AGENTS.mdAGENTS.md
- .github/actions/upload-readiness-shards/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/ISSUE_TEMPLATE/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- projects/AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- advanced-evaluationSkill
- bdi-mental-statesSkill
- context-compressionSkill
- context-degradationSkill
- context-fundamentalsSkill
- context-optimizationSkill
- evaluationSkill
- filesystem-contextSkill
- harness-engineeringSkill
- hosted-agentsSkill
- latent-briefingSkill
- long-horizon-promptingSkill
- memory-systemsSkill
- multi-agent-patternsSkill
- project-developmentSkill
- self-improvement-loopsSkill
- tool-designSkill
- continual-learningSkill
- gauss-open-gauss-cliSkill
- infrastructure-overviewSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

