AGENTS.md
Instructions
Best for commands, constraints, conventions, review criteria, and instructions about tools.
AGENTS.md and a codebase knowledge graph solve different persistence problems. AGENTS.md records instructions and conventions; a graph records relationships among code, docs, and project knowledge. Reliable coding agents use both: rules guide behavior, while the graph helps the agent navigate the repository.
Published Updated
Graphify stores inspectable artifacts so codebase knowledge can be reviewed by humans and reused by AI coding assistants.

AGENTS.md
Best for commands, constraints, conventions, review criteria, and instructions about tools.
Knowledge graph
Best for symbol dependencies, call paths, subsystem communities, document links, and architecture evidence.
Together
The instruction file tells the agent what to do and how; the graph tells it where project knowledge is connected.
AGENTS.md is a versioned instruction file for coding agents. It should contain the commands, constraints, style requirements, test expectations, and repository-specific working rules that every agent needs before making changes.
A codebase knowledge graph stores nodes and edges: files, functions, classes, imports, calls, documents, and the relationships among them. It is a navigation layer for repository structure, not a replacement for source code or developer instructions.
AGENTS.md works best as a concise operating contract. When teams paste architecture essays, file inventories, and historical detail into it, the agent spends context on prose that could be queried more precisely from source and graph artifacts.
Use the graph for questions about dependency paths, callers, blast radius, subsystem boundaries, document relationships, and architecture clusters. These answers change with the code and are expensive to maintain by hand in a text file.
Add a short graph-query policy to AGENTS.md and let the graph hold the project structure. The policy should name the artifact, explain when to use it, and require source verification for uncertain edges.
No. A graph can show that two modules are connected, but it cannot decide that a team forbids schema changes without a migration or that generated files must not be edited. Those are policy statements and belong in AGENTS.md.
# AGENTS.md
## Repository rules
- Run tests before reporting completion.
- Use graphify-out/graph.json for dependency and call-path questions.
- Verify INFERRED or AMBIGUOUS graph edges against source.
## Source of truth
- Behavior: source code and tests
- Structure: graphify-out/graph.json
- Architecture summary: graphify-out/GRAPH_REPORT.mdKeep only the stable architecture rules an agent needs before reading the graph. Changeable relationships belong in graph artifacts or documentation.
Neither replaces the other. CLAUDE.md-style files and AGENTS.md carry instructions; code graphs carry structural evidence.
Update after major refactors, directory moves, dependency changes, and before architecture reviews. Active repositories can use watch mode or a Git hook.
Yes. The artifacts live with the project and can be read by different assistants or exposed through MCP, provided each agent gets the appropriate usage instructions.
Continue through the Graphify topic cluster with pages that explain assistant context, architecture review, documentation, and graph-based codebase understanding.
Codex codebase context without rereading the repository
Give Codex persistent codebase context with graph artifacts, concise AGENTS.md rules, and MCP tools so repository questions use structure, not repeated scans.
AI coding assistant context that persists
Graphify creates persistent AI coding assistant context from code, docs, PDFs, diagrams, screenshots, and transcripts.
Persistent codebase memory for Claude Code
Give Claude Code durable codebase memory: build a Graphify graph, keep GRAPH_REPORT.md and graph.json in the project, and refresh them as the code changes.
Start from the use cases page or upload a project ZIP to build a graph that your team can inspect and reuse.