Skip to main content
In a large monorepo, a ten-line pull request can change behavior three packages away. The diff shows what changed. It doesn’t show who depends on it. This recipe has your coding agent read a pull request, look up each changed file and function in the Graphify code graph, and write a blast radius summary: the callers, the dependent files, the tests to run, and the other repositories involved.
Works with: Graphify, with Claude Code, Codex, Cursor or any agent that can run the GitHub CLI. Time: about 10 minutes to set up, then one prompt per pull request.

The short version

Already connected? Paste this into your agent:

What you’ll build

  • A repeatable check your agent runs on any pull request.
  • A blast radius summary you paste into the pull request, so reviewers start from the riskiest code.
  • The same check across repositories, through a combined graph.

Before you start

The tools

Run it on a pull request

1

List what changed

The agent works from the changed files and the functions the diff touches.
2

Find the dependent files

For each changed source file, the agent calls graphify_file_neighbors with the path, such as graphify/detect.py. The result lists the file’s symbols and its neighbor_files, each with the edges that link them and a direction: in means the other file depends on this one.
3

Fan out from each changed function

For each changed function, the agent calls graphify_impact:
Real output from the open-source Graphify-Labs/graphify repository, trimmed:
graphify_impact
dir: "in" marks callers, the code that breaks if the function’s behavior changes. call_site is the exact line. untested_hotspots lists hotspot files with no linked tests, which is where to look first.
4

List the tests to run

graphify_impact with include_risk also returns linked tests. For a file or a symbol on its own, call graphify_tests_for. In the example above, the change to classify_manifest_files() links to tests in tests/test_detect.py through its caller detect_incremental().
5

Write the summary

Ask the agent to write it in this shape and paste it into the pull request:

Make it repeatable

Add this to AGENTS.md or CLAUDE.md so “check the blast radius of PR 123” always runs the same way:
AGENTS.md

Across repositories

When a change in one repository can break another, put them in one graph.
1

Combine the repositories

In the console, open the cross-repository view in Graphs and select Combine repositories. Pick two or more repositories and wait until the combined graph is ready. See Combine repositories.
2

Point the agent at the combined graph

Ask the agent to run list_repositories. A combined graph appears with kind: "workspace" and its own repositoryId. Pass that id as repository_id to graphify_impact, graphify_callers and graphify_file_neighbors.
3

Read the review too

Once a repository is part of a combined graph, its pull request reviews add a Cross-repo impact section: “This change impacts N symbol(s) across M peer repo(s)”, with up to 10 symbols for each affected repository. The section is advisory and never changes whether the Graphify check passes.

Read the result honestly

  • graphify_impact is a first pass. It returns direct connections, not every path through the code. Ask for graphify_callers or graphify_trace to go further.
  • The hosted graph describes the indexed default branch. A function the pull request adds isn’t in it yet, so check the existing functions that the new code calls or replaces. For uncommitted work, run the local MCP server from Graphify CLI.
  • An empty or truncated answer carries a coverage note. n=0 means no edge was indexed, not that the code has none. Code reached through reflection or string lookups may not appear.
  • The hotspot ranking is a signal from the graph, not a verdict that the change is safe.

Troubleshooting

Next steps

Set up automated PR review

Get a scored review on every pull request.

PR impact in CI

Post a graph impact comment from GitHub Actions with Graphify CLI.