Free

Graphify: map code relationships for Codex

Build a code map with Graphify and find links between files, functions and components. Check it against source code before changing the project in Codex.

Tools

Installation instructions · Official package · Download source code (ZIP)

Graphify maps relationships between code files, functions and components. Codex can use the map to locate the parts relevant to a task and examine what a change might affect.

What it is useful for

Use it in an unfamiliar or large project: locate a form handler, follow calls into data storage or inspect component dependencies before editing. Ordinary search is often enough for a few simple files. The map guides inspection; it does not replace source reading or tests.

Local code extraction uses tree-sitter to analyze program structure without a language model. Documents, PDFs and images use a separate semantic pass through the assistant or a chosen provider. Start with code only. This trial needs no paid Graphify Cloud account.

How to install and connect Codex

Python 3.10 or later is required. The package is graphifyy, with two y characters; the installed command is graphify. If uv is already available, the official route is:

uv tool install graphifyy

With existing pipx, use pipx install graphifyy instead. The assistant selects one route, checks existing installations and avoids mixing copies or modifying system Python for the package. The macOS, Linux and Windows installation guide covers environments and command discovery.

Codex can call the installed CLI, a command-line program, without a separate skill. To register a persistent skill in the current project, use graphify install --project --platform codex. Review and approve the changes first: registration adds a skill with references, a section in AGENTS.md and .codex/hooks.json. Preserve existing rules and inspect the diff. Do not replace AGENTS.md or use an untargeted installer.

The registered Codex skill is invoked as $graphify, not Claude's /graphify. The upstream installer labels its Codex hook a no-op: it does not inject context before tool calls; guidance comes from AGENTS.md and the skill. A hooks.json file alone does not prove the map is being used. A first code map needs no multi-agent setting, MCP, cloud account or automatic Git hooks.

How to build a first map

  1. Codex finds the project root, its rules and a small source-code area relevant to your question. It checks exclusions, existing graphify-out data and files that must not be indexed. It chooses a separate output directory to preserve previous maps and excludes keys, customer exports and private documents.
  2. After approval of installation and output writes, it runs local graphify extract with --code-only and an explicit --out, filling in paths itself. It checks processed files, warnings and omissions, then prepares the available JSON, report and HTML map. Document extraction and external providers are outside this trial.
  3. The assistant uses the map to trace one question, such as the route from a form to its submission handler. It opens the referenced files and checks at least three connections against actual imports or calls. It shows the confirmed path and unresolved points without changing the app.

For an entirely code-only project, a command can be graphify extract . --code-only. In a working project, the assistant limits scope and chooses a separate --out. The assistant opens graph.html in a browser and uses JSON, a structured data file, for query, path and explain. Follow the current extract reference, not instructions from the old main branch.

How to verify and update

EXTRACTED means an explicitly extracted connection; INFERRED means a connection Graphify derived by matching dependencies. Check both against the source location. Dynamic calls, unsupported syntax or a misidentified language can leave gaps. An empty graph does not establish that a program has no dependencies.

Before answering a question, check which code revision the map describes. Update the selected area after changes and repeat the comparison. For errors, compare processed-file counts, warnings and the previous output. Do not use --force to explain away an unexpectedly smaller graph: first identify what disappeared. If a name matches several nodes, choose by its path instead of guessing.

--code-only skips model-based document processing. However, excerpts read by Codex still enter its context. Check local query logging too: the current README describes ~/.cache/graphify-queries.log and GRAPHIFY_QUERY_LOG_DISABLE=1 to disable it. Review a map before sharing; it can contain filenames and internal relationships. Measure usefulness through your task's usage and repeat attempts, not an advertised percentage.

Where it fits and how to disconnect

A map can help when agreeing on an existing website change or investigating an error. It is an optional way to inspect code, not a required dependency of those plans. Continue with the selected guide and retain its checks.

To remove a project skill registration, use the official graphify uninstall --project --platform codex after reviewing affected files. Omit --purge if you want to keep the graph. Remove the package separately through the chosen manager, preserving source code and other instructions. Check that only Graphify's block is removed, not the whole AGENTS.md or hooks configuration.

The trial is complete when the selected area has a map and several connections checked against source. Next, make the agreed website change with tests for affected behavior.

Prompt for Codex

Paste into Codex with project access:

Find the current project, its rules, Git state and code area relevant to my question. Help build and verify a small Graphify dependency map without changing the app. If my question is undefined, ask which function or change I want to investigate.
Read https://docs.graphify.com/installation, the extract reference and the current Graphify-Labs/graphify branch. Check Python, existing graphify and the official graphifyy package. Before installation or file changes, show one suitable approach and wait for approval. Do not install an unrelated similarly named package or bypass system Python protection.
Start with code-only CLI extraction, without model-based document processing. Select a small area, check exclusions, preserve existing maps and create a separate output directory using explicit --out. Fill in paths yourself instead of leaving manual placeholders. Do not add cloud access, keys, MCP, multi-agent settings, background processes or Git hooks for this trial.
If a persistent Codex skill is needed, separately show changes to .agents/skills, references, AGENTS.md and .codex/hooks.json, preserve existing rules and wait for approval. Do not treat a hook file as proof of context injection. One map can use the CLI alone.
Run the approved extract --code-only and check processed files, omissions and warnings. Show the available map, report and JSON. Trace my question, open source files and verify at least three connections. Distinguish EXTRACTED, INFERRED and unsupported conclusions. If fewer connections exist, state the actual count.
Identify the code revision, update route and disconnection steps. Check local query logging and created files without exposing secrets. Do not delete previous results, apply --force without a reason or present someone else's percentage as measured savings for my task. Do not change the app or publish anything.
In This Article
Saved