A cheat sheet for AI agents that reduces unnecessary repo scans.
When an AI agent opens your project, it typically scans every file to understand the codebase. That wastes tokens, time, and money. SUMMARY.md gives agents a map — they read one file and jump directly to the code they need, scanning only when necessary.
A single SUMMARY.md file at the root of your repo that tells AI agents:
- What the project is and what it's built with
- Where every major piece of code lives
- Key architectural patterns to understand
- Common gotchas and pitfalls
- How to navigate by task ("change the chat UI? → go here")
Agents are trained to read project root files (README.md, AGENTS.md, CLAUDE.md,
CONTRIBUTING.md) before exploring. If SUMMARY.md answers their orientation
questions, they skip the expensive grep/glob/read scanning phase for
everything they already know.
Estimated savings: 50-90% fewer tokens on initial orientation, depending on repo size.
- Copy
SUMMARY_TEMPLATE.mdto your repo root asSUMMARY.md - Fill in the
{{PLACEHOLDERS}}with your project's specifics - Commit and push
- Activate it -- add an agent rule so AI agents actually read it (see below)
That's it. No build step, no config, no runtime dependency.
Open Graph / GitHub social preview asset, sized at 1200×630.
Creating SUMMARY.md is only half the step. AI agents won't read it unless their
rules tell them to. Add the following to your project-level or global AGENTS.md:
## Codebase Orientation
- **Project Summary (`SUMMARY.md`):** Always check the workspace root for
`SUMMARY.md` at session initialization. Read it before exploring the codebase
-- it provides a source map so you can navigate directly to relevant files
instead of scanning every directory. If the project doesn't have one, offer
to create it from a template.Without this rule, SUMMARY.md sits silently at the repo root and most agents
will never see it.
See SUMMARY_TEMPLATE.md for the full annotated template.
CC0 1.0 Universal — public domain. Use it, modify it, sell it, do whatever you want. No attribution required (though appreciated).
See LICENSE for the full legal text.
Created by Toshon Jennings because watching AI agents recursively list every directory in a 6,000-file repo was painful.
- AGENTS.md — a convention for agent instruction files
- CLAUDE.md — Claude Code's project-level memory
- Cursor Rules — Cursor's AI instruction system
