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
- A repository marked Indexed in Graphify. See Repositories and builds.
- A coding agent connected to the hosted MCP server. See Graphify MCP.
- The GitHub CLI (
gh) signed in where the agent runs.
The tools
Run it on a pull request
1
List what changed
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 Real output from the open-source Graphify-Labs/graphify repository, trimmed:
graphify_impact: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 toAGENTS.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_impactis a first pass. It returns direct connections, not every path through the code. Ask forgraphify_callersorgraphify_traceto 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
coveragenote.n=0means 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.