-
Notifications
You must be signed in to change notification settings - Fork 1
Command Guide
KGraph's main workflow is intentionally small:
kgraph init
kgraph "auth token refresh"
kgraph doctorCreates the local .kgraph/ workspace, writes config, and runs the first scan.
kgraph init
kgraph init --integrations codex,copilot,cursor,claude-code,gemini,windsurf,clineRuns the normal refresh workflow and returns focused context for a topic.
kgraph "blog admin token usage"The workflow refreshes maps, processes pending cognition notes, and returns compact context.
Checks whether the repo-local KGraph setup is usable.
kgraph doctor
kgraph doctor --qualityUse --quality when context feels stale, noisy, or incomplete.
Shows practical impact for a file, symbol, or topic.
kgraph impact "Button"
kgraph impact "createSession" --jsonImpact output includes matched files, symbols, imports, callers, callees, cognition, and risk hints.
Tracks agent-reported read/write activity and repeated reads.
kgraph session
kgraph session start --agent codex
kgraph session read src/auth.ts --agent codex
kgraph session write src/auth.ts --agent codex
kgraph session end --agent codexSession capture is optional, but it helps show where repeated repo exploration wastes tokens.
Starts the local interactive dependency graph.
kgraph visualize
kgraph visualize --port 3000
kgraph visualize --no-open