agentic-engineering-os
AGENTS.md1 starsChanged 3 months agoMITView on GitHub
Universal, non-negotiable invariant principles governing all AI-assisted software development in this workspace. When resolving conflicts or choosing implementation strategies:
- Reads credentials
- Installs packages
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 repository30 other files it gives its agents.
- adr-managementSkill
- agentic-developmentSkill
- ci-cdSkill
- code-architectureSkill
- database-postgresqlSkill
- data-engineeringSkill
- debuggingSkill
- deep-learningSkill
- dependency-managementSkill
- deploymentSkill
- dockerSkill
- documentation-orchestratorSkill
- documentationSkill
- environment-guardrailsSkill
- frontend-react-typescriptSkill
- git-githubSkill
- machine-learningSkill
- observabilitySkill
- performance-optimizationSkill
- portfolio-readinessSkill
- project-bootstrapSkill
- project-knowledgeSkill
- python-apiSkill
- python-environmentSkill
- rag-ocr-llmSkill
- release-engineeringSkill
- reusable-componentsSkill
- security-secretsSkill
- supply-chain-securitySkill
- testing-qualitySkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 10
Never install project dependencies globally: All development must occur inside isolated project virtual environments (.venv/ or local …
- Very specific: line 14
Keep
.venv/strictly out of Git: Never commit virtual environments. - Distinctive: line 17
Consult project memory before significant decisions: Check existing Architecture Decision Records (ADRs), codebase memory graph, or project …
- Distinctive: line 23
Reuse existing abstractions: Search the codebase for existing helpers, schemas, and utilities before creating new ones.
- Distinctive: line 31
Documentation must reflect verified reality: Never document an intended or unbuilt feature as if it were already implemented.
- Distinctive: line 36
Never claim deployment succeeded without live verification: Always probe health endpoints and verify 200 OK status on live URLs when …
- Very specific: line 40
Zero secret leakage: Never commit .env, credentials, tokens, or private keys to version control.
- Very specific: line 41
Always maintain a sanitized .env.example.
- Distinctive: line 43
Never disable security checks, authentication guards, or tests to make a build pass.
- Distinctive: line 49
When resolving conflicts or choosing implementation strategies:
- Distinctive: line 64
Declare Uncertainty: If requirements, third-party APIs, or environment states are ambiguous, state the uncertainty explicitly and present …
- Distinctive: line 65
Anti-Looping Gate: If a command, build, or test fails twice with the same error, STOP.
≈ “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
Core Agent Engineering Rules (AGENTS.md) - V2
Universal, non-negotiable invariant principles governing all AI-assisted software development in this workspace.
1. Universal Engineering Invariants
1.1 Environment Isolation (Hard Requirement)
- Never install project dependencies globally. All development must occur inside isolated project virtual environments (
.venv/or localnode_modules). - Always establish the project environment BEFORE installing dependencies. Create
.venvfirst, then run package manager commands. - Never use bare
pip installagainst system Python. Always use managed project tools (uv add,uv sync,uv runor activated.venv/bin/pip). - Never mix dependency managers without explicit justification (e.g. do not mix
poetryandcondaandpipconcurrently in one repo). - Keep
.venv/strictly out of Git. Never commit virtual environments.
1.2 Codebase Memory & Durable Knowledge
- Consult project memory before significant decisions: Check existing Architecture Decision Records (ADRs), codebase memory graph, or project logs before modifying core architecture, changing major dependencies, altering database schemas, or modifying deployment targets.
- Record durable decisions: Capture non-obvious architecture choices, resolved root causes, and rejected alternatives in memory/ADRs immediately after verification.
- Never store secrets in memory: API keys, credentials, tokens, passwords, and sensitive personal information must NEVER be written to codebase memory or ADRs.
1.3 Inspect Before Modifying
- Never modify code without reading it first: Inspect existing files, module boundaries, type contracts, and runtime configurations before generating edits.
- Reuse existing abstractions: Search the codebase for existing helpers, schemas, and utilities before creating new ones.
1.4 Minimal, Surgical Diffs
- Make the smallest possible change that correctly fulfills the requirement.
- Preserve existing formatting, unrelated comments, docstrings, and code style.
- Preserve backward compatibility for existing APIs, interfaces, and database records unless an intentional breaking change is explicitly mandated.
1.5 Truthful & Verified Documentation
- Documentation must reflect verified reality: Never document an intended or unbuilt feature as if it were already implemented.
- Adaptive documentation depth: Scale documentation appropriately to project complexity (Utility vs ML Platform vs Fullstack vs Enterprise Production).
1.6 Verification Before Completion
- Never claim tests were run unless they were actually executed: Zero hallucination of test results or syntax validity.
- Never claim deployment succeeded without live verification: Always probe health endpoints and verify 200 OK status on live URLs when available.
- A task is ONLY complete when code is implemented, automated tests pass, linters pass, and documentation is updated.
1.7 Security & Least Privilege
- Zero secret leakage: Never commit
.env, credentials, tokens, or private keys to version control. - Always maintain a sanitized
.env.example. - Inspect
git diffbefore staging and committing. - Never disable security checks, authentication guards, or tests to make a build pass.
2. Decision Hierarchy
When resolving conflicts or choosing implementation strategies:
1. Universal Engineering Rules (AGENTS.md) [Highest Priority Invariants]
2. Project Memory & Architecture Decision Records (ADRs / MCP Memory)
3. Specialized Task Skills (.agents/skills/*)
4. Existing Project Conventions & Local Utilities
5. Language & Framework Idioms (PEP 8, Modern TypeScript, FastAPI, React 19)
6. General Industry Best Practices [Lowest Priority]3. Operational Discipline & Anti-Looping
- Declare Uncertainty: If requirements, third-party APIs, or environment states are ambiguous, state the uncertainty explicitly and present concrete options rather than making assumptions.
- Anti-Looping Gate: If a command, build, or test fails twice with the same error, STOP. Do not retry a 3rd time without altering the diagnosis or modifying inputs.
- Explain Architectural Rationale: Focus explanations on trade-offs, design choices, and non-obvious decisions rather than narrating trivial code syntax.
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.

