Skip to main content

Documentation 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.

KiroGraph ships a single installer command that wires the MCP server, hooks, and agent instructions into every AI coding tool in your environment. Run it once with no flags and KiroGraph scans for installed platforms, confirms what it found, then configures each one — all sharing the same .kirograph/ graph data.

Auto-Detection

When you run kirograph install without --target, the installer checks for known config directories (.kiro/, .cursor/, .mcp.json, etc.) and CLI binaries on your PATH, then offers to configure all detected platforms at once.
$ kirograph install

  Detected platforms:

 Kiro                 (.kiro/ found in project)
 Claude Code          (claude binary on PATH)
 Cursor               (.cursor/ found in project)

  Install KiroGraph for all 3 detected platform(s)? [Y/n]
You can also install for a specific platform, all platforms, or skip the confirmation prompt entirely:
kirograph install                  # Auto-detect and confirm
kirograph install --all            # Auto-detect, skip confirmation
kirograph install --target kiro    # One platform only

Kiro (Primary)

kirograph install --target kiro writes four integration artifacts into your Kiro workspace. All four coexist so you can switch freely between the Kiro IDE and Kiro CLI.

MCP Server Config

The installer writes .kiro/settings/mcp.json to register the KiroGraph MCP server with all tools auto-approved. Both the IDE and the kiro-cli --agent kirograph CLI agent pick this up automatically.
{
  "mcpServers": {
    "kirograph": {
      "command": "kirograph",
      "args": ["serve", "--mcp"],
      "autoApprove": [
        "kirograph_search", "kirograph_context", "kirograph_callers",
        "kirograph_callees", "kirograph_impact", "kirograph_node",
        "kirograph_status", "kirograph_files", "kirograph_dead_code",
        "kirograph_circular_deps", "kirograph_path", "kirograph_type_hierarchy",
        "kirograph_architecture", "kirograph_coupling", "kirograph_package",
        "kirograph_hotspots", "kirograph_surprising", "kirograph_diff",
        "kirograph_exec", "kirograph_gain",
        "kirograph_mem_search", "kirograph_mem_store",
        "kirograph_mem_timeline", "kirograph_mem_status",
        "kirograph_docs_toc", "kirograph_docs_search",
        "kirograph_docs_section", "kirograph_docs_outline", "kirograph_docs_refs",
        "kirograph_data_list", "kirograph_data_describe",
        "kirograph_data_query", "kirograph_data_aggregate", "kirograph_data_search",
        "kirograph_data_join", "kirograph_data_correlations", "kirograph_data_quality"
      ]
    }
  }
}

IDE Hooks

Up to three lifecycle hooks are installed into .kiro/hooks/:
Hook fileEventBehavior
kirograph-sync-if-dirty.kiro.hookagentStopRuns kirograph sync --quiet when the agent stops. Skips unchanged files via content hashing.
kirograph-compress-hint.kiro.hookpreToolUse (shell)Reminds the agent to use kirograph_exec for shell commands that benefit from token compression. Only installed when shell compression is enabled.
kirograph-mem-capture.kiro.hookagentStopPrompts the agent to store important observations in memory at the end of each session. Only installed when memory is enabled.

Steering File

.kiro/steering/kirograph.md is always-active and teaches the Kiro IDE to prefer graph tools over file scanning when .kirograph/ exists. It includes a quick decision guide, tool selection rules, and — when the relevant modules are enabled — sections for memory, docs, data, and security. KiroGraph also installs five task-specific steering files under .kiro/steering/ with inclusion: manual. These load on demand:
FileActivate withUse case
kirograph-review.md/kirograph-reviewStructured code review — blast radius, test coverage, coupling
kirograph-debug.md/kirograph-debugSystematic debugging — trace calls, check recent changes
kirograph-architecture.md/kirograph-architectureArchitecture exploration — packages, layers, coupling metrics
kirograph-onboard.md/kirograph-onboardOnboarding — structure, entry points, key symbols
kirograph-refactor.md/kirograph-refactorSafe refactoring — blast radius, rename preview, verify after
kirograph-security.md/kirograph-securitySecurity audit — CVE triage, EPSS prioritization, license compliance (written only when enableSecurity: true)

CLI Agent Config

.kiro/agents/kirograph.json defines a custom agent for kiro-cli with session-boundary sync hooks:
EventAction
agentSpawnkirograph sync-if-dirty --quiet (catches edits made between sessions)
userPromptSubmitkirograph sync-if-dirty --quiet (keeps graph fresh mid-session)
stopkirograph sync-if-dirty --quiet (deferred flush on exit)
Use it from the CLI:
kiro-cli --agent kirograph
Or swap agents inside an active session:
/agent swap kirograph

Install by Target

kirograph install --target kiro
Writes .kiro/settings/mcp.json, .kiro/hooks/, .kiro/steering/kirograph.md, and .kiro/agents/kirograph.json. Restart Kiro IDE after installing.

Other Tools

Non-Kiro integrations are community-contributed and provided as-is. They have not been verified against every version of each tool. PRs are welcome for fixes.
KiroGraph supports 34 targets in total. All share the same .kirograph/ graph; installing a new target only writes that tool’s integration files.
ToolTarget flagMCP config pathInstructions pathAuto-sync hook
Kiro (primary)kiro.kiro/settings/mcp.jsonSteering + CLI agent✅ sync + hint + memory
Cursorcursor.cursor/mcp.json.cursor/rules/kirograph.mdc✅ sync on stop
Claude Codeclaude.mcp.jsonCLAUDE.md✅ sync on Stop
GitHub Copilotcopilot.github/copilot-mcp.json.github/copilot-instructions.md✅ sync on session-end
GitHub Copilot CLIcopilot-cli~/.copilot/mcp-config.jsonAGENTS.md
Roo Coderoo.roo/mcp.json.roo/rules/kirograph.md
JetBrains Juniejunie.junie/mcp/mcp.json.junie/AGENTS.md
Continuecontinue.continue/mcpServers/kirograph.json.continue/rules/kirograph.md
Warpwarp.warp/.mcp.jsonAGENTS.md
Traetrae.trae/mcp.json.trae/rules/kirograph.md
Augment Codeaugment.augment/mcp.jsonaugment-guidelines.md
Sourcegraph Ampamp.amp/config.json.amp/instructions.md
Tabninetabnine.tabnine/mcp.json.tabnine/instructions.md
Codex CLIcodex.codex/hooks.jsonAGENTS.md✅ sync on Stop
Gemini CLIgemini-cli.gemini/settings.jsonGEMINI.md✅ SessionEnd
OpenCodeopencode.opencode.json.opencode.json (instructions)✅ plugin
Kilo Codekilokilo.json.kilo/rules/kirograph.md
Devindevin.devin/config.jsonAGENTS.md.devin/hooks.v1.json
OpenHandsopenhands.openhands/config.jsonAGENTS.md
WindsurfwindsurfPrint command.windsurf/rules/kirograph.md✅ sync on response
ClineclinePrint command.clinerules/kirograph.md✅ sync script
AntigravityantigravityPrint commandGEMINI.md.agents/hooks.json
AideraiderPrint CLI flagCONVENTIONS.md
Replit AgentreplitPrint commandAGENTS.md
Block GoosegoosePrint commandAGENTS.md
Mistral Vibemistral-vibePrint command.kirograph/mistral-vibe.md
IBM Bobibm-bobPrint command.kirograph/ibm-bob.md
CrushcrushPrint command.kirograph/crush.md
Droid Factorydroid-factoryPrint command.kirograph/droid-factory.md
ForgeCodeforgecodePrint command.kirograph/forgecode.md
iFlow CLIiflowPrint command.kirograph/iflow.md
Qwen CodeqwenPrint command.kirograph/qwen.md
Atlassian Rovo DevrovoPrint command.kirograph/rovo.md
QoderqoderPrint command.kirograph/qoder.md
Tools marked “Print command” (Pattern D) have user-scoped or cloud-hosted MCP configs. The installer writes instructions locally and prints the exact command to register the server.

Global Hook Library

Personal Kiro hooks can be saved outside any project and reused across workspaces via a global store at ~/.kirograph/hooks/.
CommandAction
kirograph hook save [path]Copy hooks from .kiro/hooks/ to ~/.kirograph/hooks/
kirograph hook import [path]Copy global hooks into the current project’s .kiro/hooks/
kirograph hook listList all saved global hooks with name and description
During an interactive kirograph install --target kiro, if the global store is non-empty, the installer adds a Hooks step that lets you choose to import hooks (None / All / Select specific hooks). Use kirograph hook import for standalone imports outside of install.

Build docs developers (and LLMs) love