Rules
AGENTS.md
Keep durable instructions, commands, constraints, and ownership hints close to the repository.
Codex gets reliable codebase context when repository rules live in AGENTS.md and structural relationships live in a queryable graph. Graphify gives Codex graph.html, graph.json, and GRAPH_REPORT.md so it can follow imports, calls, communities, and documentation links across sessions instead of repeatedly rebuilding context from search results.
Published Updated
Graphify stores inspectable artifacts so codebase knowledge can be reviewed by humans and reused by AI coding assistants.

Rules
Keep durable instructions, commands, constraints, and ownership hints close to the repository.
Structure
Store reusable code and documentation relationships that are expensive to reconstruct from search.
Interface
Expose graph queries as repeatable tools instead of relying on a single long prompt.
Codex codebase context is the set of repository facts, instructions, and relationships available while Codex works. It includes files Codex reads, AGENTS.md guidance, tool results, prior artifacts, and any graph or MCP service that exposes repository structure.
A larger context window increases capacity, but it does not guarantee that Codex chooses the right files or preserves relationships between them. Architecture work needs explicit edges: who calls a function, which modules import a package, which document explains a subsystem, and what changes together.
AGENTS.md should tell Codex when and how to use the graph; the graph should contain project relationships. Put build commands, coding rules, review requirements, and graph usage instructions in AGENTS.md, then keep the graph itself machine-readable in graph.json.
Graphify gives Codex a compact map of the project before it reads full files. Codex can use paths, communities, god nodes, and report sections to decide which source files deserve detailed inspection, which reduces repeated exploration and makes handoffs more consistent.
Generate Graphify artifacts inside the repository, register the graph instructions in AGENTS.md, and expose graph queries through the Graphify skill or MCP when your installation provides it. Some Graphify distributions include a Codex installer; if graphify codex install is available, it can write the recommended registration for you.
Use grep for exact strings, recent edits, configuration values, and files the graph may not cover. Use the graph for ownership, dependencies, call paths, subsystem boundaries, and questions that require evidence from multiple files.
Inspect the graph edge labels and open the cited source files before accepting an architectural change. EXTRACTED edges come from deterministic parsing; INFERRED and AMBIGUOUS edges need extra review because they may reflect semantic interpretation rather than direct syntax.
## Repository context
- For architecture, dependency, or blast-radius questions, query graphify-out/graph.json first.
- Verify INFERRED and AMBIGUOUS edges against source before editing.
- Refresh the graph after large refactors.Yes. AGENTS.md is the open repository-instruction format used by Codex and several other coding agents to keep project guidance versioned with the code.
No. graph.json is a navigation and relationship layer. Codex must still open source files for exact implementation details and verification.
Yes. Codex can read graph artifacts and follow AGENTS.md instructions directly. MCP adds structured, repeatable tool calls for querying the graph.
Reference graph.json for machine queries and GRAPH_REPORT.md for a concise human-readable overview. Link to graph.html when a reviewer needs the interactive view.
Continue through the Graphify topic cluster with pages that explain assistant context, architecture review, documentation, and graph-based codebase understanding.
AGENTS.md vs a codebase knowledge graph
Compare AGENTS.md instructions with a codebase knowledge graph, see what each layer stores, and learn how to combine them for persistent AI coding context.
Cursor codebase context beyond indexing
Cursor indexing finds similar code. Graphify adds structural context: dependencies, subsystem clusters, and rationale your editor cannot infer from embeddings alone.
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.