G
Graphify
graphify.homes
Graphify explained

What is Graphify and what does it build?

Graphify is shared codebase context for AI coding agents. It turns source code, documentation, diagrams, PDFs, screenshots, and engineering rationale into a persistent knowledge graph that an assistant can inspect and query. A build produces graph.html for visual exploration, graph.json for tools and later queries, and GRAPH_REPORT.md for a readable architecture summary. The goal is not another chat transcript; it is a durable project map that survives the session that created it.

Published Updated

Graphify outputs
graph.html
graph.json
GRAPH_REPORT.md

Graphify stores inspectable artifacts so codebase knowledge can be reviewed by humans and reused by AI coding assistants.

A repository becoming a luminous cartographic knowledge graph with amber insight nodes

What it is

A project graph

A connected map of files, symbols, dependencies, documentation, and rationale for AI-assisted engineering work.

What it produces

Three artifacts

graph.html, graph.json, and GRAPH_REPORT.md give the same build a visual, machine-readable, and human-readable form.

Why it matters

Reusable context

Agents can ask structural questions without rereading the whole repository at the start of every session.

What problem does Graphify solve?

AI coding assistants are good at reading text and weak at remembering an entire repository between sessions. Graphify creates a stable representation of the project so recurring questions about ownership, dependencies, architecture, and impact can start from the same evidence instead of a fresh scan.

  • Turn a repository into a reusable project artifact.
  • Keep code relationships connected to the documents that explain them.
  • Give humans and agents a shared vocabulary for architecture review.
  • Reduce repeated discovery work across prompts and sessions.

How does Graphify build a codebase graph?

Graphify extracts code structure with tree-sitter and combines it with semantic context from the project. Imports, calls, classes, functions, documents, and other inputs become nodes and edges. Edges carry confidence labels such as EXTRACTED, INFERRED, or AMBIGUOUS so reviewers can see how a relationship entered the graph.

  • Code extraction is deterministic and does not require a language-model call.
  • Documentation and multimodal inputs can add semantic relationships.
  • Confidence labels separate observed structure from interpretation.
  • The output remains inspectable rather than hidden inside a chat session.

What are graph.html, graph.json, and GRAPH_REPORT.md?

The three artifacts serve different readers. graph.html is the visual map, graph.json is the structured graph for tools, and GRAPH_REPORT.md is a concise architecture report for people. Because they come from the same build, a reviewer can move from a human summary to the underlying node and edge evidence.

  • Open graph.html to inspect clusters, hubs, and surprising connections.
  • Use graph.json for queries, integrations, exports, or custom analysis.
  • Read GRAPH_REPORT.md when a teammate needs the shortest useful overview.

How do AI assistants use Graphify?

An assistant can use the graph as a first stop before editing: find the relevant subsystem, trace callers or dependencies, inspect linked tests, and then open the current source. Hosted Graphify exposes the graph through an MCP server, while the open-source CLI can register a local skill and also expose MCP tools.

  • Ask for paths, callers, dependencies, and affected tests.
  • Require file and symbol evidence before changing code.
  • Check whether the graph is current before trusting structural answers.
  • Use exact search for strings when the question is not structural.

What kinds of repositories benefit most?

Graphify is most useful when the same repository is questioned repeatedly and its meaning is spread across code, docs, diagrams, and decisions. Large services, multi-package repositories, platform code, and inherited projects benefit more than tiny scripts where one file contains the whole answer.

  • Onboarding into an unfamiliar or poorly documented codebase.
  • Architecture review before a risky refactor or migration.
  • Cross-package and cross-service dependency questions.
  • PR impact analysis that needs more than a changed-file list.

What does Graphify not do?

Graphify does not replace the compiler, tests, a debugger, or a human reviewer. A graph can show candidates and relationships; it cannot prove that the current branch compiles, that a path executes at runtime, or that a change is safe. Treat graph output as a map that guides verification, not as the verification itself.

  • It does not replace TypeScript, language servers, or runtime tracing.
  • It does not prove that generated or dynamic behavior is covered.
  • It does not make stale artifacts current automatically.
  • It does not remove the need to open source and run tests.

How is Graphify different from a chat transcript?

A chat transcript is a record of one conversation. A graph is a structured artifact that can be shared, queried, diffed, and refreshed. Teams can ask different questions against the same build, and reviewers can inspect the relationships that produced an answer instead of trusting an opaque summary.

  • The artifact outlives the original prompt.
  • Different agents can query the same structure.
  • A build date makes staleness visible.
  • Relationships can be reviewed independently of the answer text.

How is Graphify different from vector RAG?

Vector retrieval finds text chunks that look semantically similar to a query. A code graph follows explicit relationships such as calls, imports, containment, and documentation links. The two approaches answer different questions: retrieval is useful for discovering relevant prose, while graph traversal is useful for explaining how a known symbol or subsystem is connected.

  • Use retrieval for fuzzy discovery and document search.
  • Use graph traversal for callers, dependencies, and blast radius.
  • Keep source references in both workflows.
  • Do not treat semantic similarity as architectural proof.

How should a team start with Graphify?

Start with a representative repository and one repeated question. Build a graph, inspect the report, ask the assistant to cite files and symbols, and compare the result with the team's current discovery process. Once the evidence quality is acceptable, add refresh rules and link the graph workflow into onboarding and review.

  • Choose one repository and one measurable question.
  • Verify graph edges against current source before trusting them.
  • Record how the graph is refreshed after structural changes.
  • Expand to more repositories only after the first workflow is stable.

How should teams interpret graph confidence labels?

A confidence label describes how an edge entered the graph, not whether the underlying engineering decision is correct. An EXTRACTED edge should be traceable to source structure; an INFERRED edge reflects semantic interpretation and deserves more scrutiny; an AMBIGUOUS edge signals competing candidates. Reviewers should use those labels to decide where to open source, run the compiler, or ask a domain owner before acting.

  • Treat extracted edges as structural evidence tied to a revision.
  • Treat inferred edges as hypotheses that need source confirmation.
  • Investigate ambiguous edges before using them for impact decisions.
  • Record the graph revision whenever an answer cites a relationship.
  • Never let a confident tone in prose upgrade weak graph evidence.

What operational decisions belong to the Graphify owner?

Someone must own repository scope, who can build or refresh the graph, where artifacts are stored, which documents may enter multimodal extraction, and how long generated data is retained. Those choices matter more than the first successful demo because a codebase graph contains file paths, architecture, and sometimes design rationale. A short written policy prevents each assistant session from inventing its own data boundary.

  • List the repositories and document types included in the graph.
  • Choose a storage location that matches the repository's sensitivity.
  • Define refresh triggers for merges, migrations, and package changes.
  • Assign review responsibility for generated artifacts and reports.
  • Document deletion and rotation when a repository or project ends.

When is Graphify a poor fit?

A tiny repository may be faster to read directly than to graph. Exact compiler or runtime questions still belong to tsc, language servers, debuggers, traces, and tests. Teams with strict rules against sending project context to an assistant should prefer a local-only configuration and verify every data path. Graphify is also not a real-time source of truth immediately after a change, so release-critical checks must stay in the normal build pipeline.

  • Do not add graph infrastructure to a one-file or short-lived project.
  • Do not substitute graph output for compiler diagnostics or runtime traces.
  • Do not assume the graph is current without checking its revision.
  • Do not use semantic extraction on data the team is not allowed to process.
  • Do not create a second source of truth beside the repository and tests.
Working commands

How do the setup commands fit together?

Install the open-source CLI

Shell
uv tool install --python 3.12 graphifyy
graphify install
graphify extract . --code-only

Ask a structural question

AI assistant
Use Graphify to explain how authentication reaches the billing service. Cite files and symbols, and separate extracted relationships from inferred ones.
FAQ

Frequently asked questions

Is Graphify open source?

Graphify Labs publishes an open-source CLI at github.com/Graphify-Labs/graphify and also offers a hosted product with a managed graph, MCP access, Memory, Wiki, and reviews.

Does Graphify send my full repository to a model?

Documented code extraction runs locally with tree-sitter. Semantic extraction for documents and media can use the configured assistant model, so teams should review their data policy before adding sensitive inputs.

What is the PyPI package name?

The official package is graphifyy. The installed command is graphify.

Do I need an AI assistant to use Graphify?

The CLI can build and query graph artifacts directly. An assistant makes the graph more useful for conversational architecture and impact questions.

Which artifact should I open first?

Start with GRAPH_REPORT.md for orientation, then use graph.html for visual inspection and graph.json when you need structured queries.

Can Graphify answer questions about non-code files?

Yes. Documented inputs include docs, PDFs, diagrams, screenshots, and transcripts in addition to source code, depending on the installed extras and model configuration.

Can Graphify build a graph without a hosted account?

The open-source CLI can build and query local graph artifacts without a hosted Graphify account. Configuration and optional semantic extraction still depend on the installed extras and model settings. Teams that need a managed index or hosted MCP should evaluate that product separately rather than assuming the local workflow includes those services.

How large a repository can Graphify handle?

Capacity depends on the installed version, parser coverage, excluded paths, extraction options, and the machine running the build. Start with the full repository if practical; otherwise exclude generated outputs and build an initial slice. Measure build time and artifact size on the largest representative project before standardizing a team-wide workflow.

How often should a Graphify graph be rebuilt?

Rebuild or update after structural changes such as package moves, new services, interface changes, and large documentation edits. Small text-only commits rarely justify a new graph. Always record the source revision so an assistant does not present an older map as the current branch, and refresh before an architecture review or migration decision that depends on the structure.

Key takeaways

What should you remember?

  • Graphify is a persistent project graph, not another conversation transcript.
  • graph.html, graph.json, and GRAPH_REPORT.md each serve a different reader.
  • Use the graph to find evidence, then verify with source, compilers, and tests.
Sources

Where can you verify the details?

Related Graphify guides

Continue through the Graphify topic cluster with pages that explain assistant context, architecture review, documentation, and graph-based codebase understanding.

Turn this concept into a real project graph

Start from the use cases page or upload a project ZIP to build a graph that your team can inspect and reuse.