# 7.3 Repository as system of record

AGENTS.md is a table of contents into a structured docs/ directory the agent reads on demand.

1. A monolithic AGENTS.md crowds context and rots.
2. AGENTS.md becomes a table of contents into docs/.
3. Progressive disclosure: the agent follows one pointer.
4. A doc-gardening agent finds stale docs and opens a fix-up PR.

- **Use when:** Agents need project knowledge that outgrows one instruction file.
- **Avoid:** Knowledge kept in chat or wikis: what the agent cannot read does not exist.

```
AGENTS.md            # ~100 lines, pointers only
ARCHITECTURE.md
docs/
    design-docs/
    exec-plans/      # active/, completed/, tech-debt-tracker.md
    product-specs/
    references/
    QUALITY_SCORE.md
```

## References

- [Harness engineering](https://openai.com/index/harness-engineering/) (OpenAI)
- [How Claude remembers your project](https://code.claude.com/docs/en/memory) (Claude Code)
- [Effective context engineering for AI agents](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) (Anthropic)
