Free

Code Review Graph: map code connections and affected tests

Build a project map with Code Review Graph. Find connected functions and tests, inspect affected code and update the map after changes.

Tools

Installation instructions · Download source code (ZIP)

Code Review Graph maps a project's functions and their connections. It helps Codex find code and tests that a change might affect.

What you can use it for

  • Find callers of a changed function.
  • Choose checks for a bug fix.
  • Understand a large project's dependencies before editing.

How to install and connect it

  1. Ask Codex to find the project root and check Python 3.10 or later.
  2. Install the package in a separate environment: pip install code-review-graph.
  3. Back up connection settings and approve changes first. code-review-graph install --platform codex targets Codex rather than configuring every detected client.
  4. Run code-review-graph build in the intended project. Restart the client after setup and check that graph tools are available.

The official quickstart covers MCP setup. The installer may change project instructions and client configuration, so ask Codex to show and preserve those changes.

How to use it in Codex

Through MCP, the assistant requests connections and review context. Terminal commands such as code-review-graph status are available without MCP. File search may be simpler for a small edit; a graph is useful when several connected parts need tracing.

Where it is used

In the bug-cause investigation step, the graph helps find callers and related tests. It supplements reading the code; subsequent checks still establish whether the fix works.

How to check the result

Choose a familiar function and compare its reported callers with the code. Check that relevant files and languages were indexed. For a partial build, inspect the unparsed-file list. Refresh the graph after substantial edits before using it for another review.

Prompt for Codex

Paste this into Codex with the project open. Verify the connection by reading relationships, without changing the app.

Check whether Code Review Graph would help this project. Read https://github.com/tirth8205/code-review-graph and find the root, languages and available environment. Explain installation and Codex configuration changes. After approval, preserve existing settings, install in a separate environment and connect only Codex. Build the graph, check MCP or CLI access and find callers of one familiar function and its related tests. Compare with actual code and identify unparsed files. Do not change the application during setup.
In This Article
Saved