KiroGraph’s git context tools bridge the gap between your version history and the semantic code graph. They enrichDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/davide-desio-eleva/kirograph/llms.txt
Use this file to discover all available pages before exploring further.
git diff, git log, and branch comparisons with the symbol-level context that matters to an AI agent: which symbols changed, who calls them, and which test files are affected. All tools in this group require enableGitContext: true in .kirograph/config.json.
Git context tools execute
git shell commands against the project repository. The project root must be a valid git repository with git installed and available on PATH.kirograph_diff_context
Get the semantic context for the current working-tree diff. Returns the set of symbols touched by unstaged (or staged) changes, each annotated with its callers and callees so the agent immediately understands blast radius without extra tool calls.
When
true, analyse staged changes (git diff --cached) instead of unstaged changes (git diff). Defaults to false.Project root path. Defaults to the current working directory.
Example: semantic context for unstaged changes
Example output
kirograph_commit_context
Inspect the staged changes that are ready to commit. Returns staged file paths, a diff summary, and the full symbol-level context for each changed symbol.
Project root path. Defaults to the current working directory.
Example: review staged changes before committing
Example output
kirograph_pr_context
Compute the semantic diff between two branches — ideal for generating PR descriptions or reviewing a feature branch before merge. Returns every symbol that changed between base and head, with callers and callees.
Base branch or ref (e.g.
main, origin/main, a commit SHA).Head branch or ref to compare against. Defaults to
HEAD.Project root path. Defaults to the current working directory.
Example: semantic diff for a feature branch
kirograph_changelog
Generate a human-readable changelog between two refs — combines a conventional git log with the full symbol-level semantic diff. Useful for release notes and sprint summaries.
Start ref (older). E.g.
v1.2.0 or a commit SHA.End ref (newer). Defaults to
HEAD.Project root path. Defaults to the current working directory.
Example: changelog since last tag
kirograph_test_map
Map source symbols to their test files, or find exported symbols that have no test coverage at all. Pass a symbol name for targeted lookup, or omit it for a project-wide uncovered-symbol report.
Symbol name to look up. When provided, returns the test files that reference this symbol. When omitted, returns all exported symbols with no test coverage.
Project root path. Defaults to the current working directory.
Example output (targeted)
kirograph_flows
Trace execution flows through the call graph. Without entryPoint, returns the most critical flows detected project-wide. With entryPoint, traces the outgoing call chain from that specific symbol.
Symbol name to trace from. When omitted, detects all significant flows project-wide.
Maximum hop depth for the trace. Defaults to
10.Maximum flows to return when
entryPoint is omitted. Defaults to 10.Project root path. Defaults to the current working directory.
Example: trace from a specific entry point
kirograph_test_coverage
Parse lcov.info or Istanbul coverage-final.json and report per-file line coverage. Automatically searches for coverage files in the project root and common output directories.
Sort order:
asc (lowest coverage first, default) or desc (highest first).Maximum number of files to show. Defaults to
30, capped at 200.Project root path. Defaults to the current working directory.
Example: find the least-covered files
Example output
CI Integration Example
Usekirograph_diff_context in CI to understand the blast radius of a PR before tests run, and feed the result to the agent for automated impact analysis.
Run semantic diff in CI
In a GitHub Actions step, call
kirograph_diff_context with the staged changes from the feature branch:.github/workflows/review.yml
