CLAUDE.md
Working rules
Best for commands, conventions, protected paths, and instructions that govern assistant behavior.
CLAUDE.md and a codebase knowledge graph are complementary context layers. CLAUDE.md stores project instructions and conventions; solution docs explain decisions; the graph stores relationships among code, docs, and architecture. Reliable Claude Code sessions use all three in the right order instead of expecting one file to contain the entire repository.
Published Updated
Graphify stores inspectable artifacts so codebase knowledge can be reviewed by humans and reused by AI coding assistants.

CLAUDE.md
Best for commands, conventions, protected paths, and instructions that govern assistant behavior.
Solution docs
Best for explaining why a subsystem was designed in a particular way.
Knowledge graph
Best for querying code symbols, dependencies, documents, and architectural paths.
CLAUDE.md should contain durable instructions that Claude Code needs before it acts: build and test commands, coding conventions, protected paths, review requirements, and explicit instructions for using project tools.
CLAUDE.md does not maintain a live map of symbols, imports, calls, or documentation links. Those relationships change with the code and are better queried from a graph than rewritten in an instruction file.
A code knowledge graph stores structural relationships that Claude can query while working. It complements CLAUDE.md by answering repository questions that are too large or too changeable to maintain manually in a context file.
CLAUDE.md tells the assistant how to work, solution docs explain why a design exists, and the graph shows where implementation and explanation connect. Source code remains the final authority for behavior.
Add a short graph usage policy: name the artifact, say which questions it should answer, and require source verification for inferred edges. Do not paste the entire graph report into the instruction file.
No. A graph shows relationships, but it cannot establish that a team forbids a schema change without a migration or that generated files must be edited through a script. Those are policies and belong in CLAUDE.md or AGENTS.md.
## Repository context
- Use graphify-out/graph.json for architecture and dependency questions.
- Read the cited source before editing.
- Verify INFERRED or AMBIGUOUS edges.
- Refresh the graph after major refactors.They serve similar instruction roles for different agent ecosystems. Some teams maintain one canonical instruction file and link or synchronize the other.
Keep only stable rules there. Put changeable relationships in graph artifacts and deeper rationale in solution documentation.
Refresh after structural changes, large refactors, dependency changes, and before architecture or PR impact reviews.
No. Graphify adds a queryable project structure that can supplement instruction files and session memory.
Continue through the Graphify topic cluster with pages that explain assistant context, architecture review, documentation, and graph-based codebase understanding.
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.
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.
AI coding assistant context that persists
Graphify creates persistent AI coding assistant context from code, docs, PDFs, diagrams, screenshots, and transcripts.
Start from the use cases page or upload a project ZIP to build a graph that your team can inspect and reuse.