kage_context
Validates memory health, recalls relevant packets, and queries code and knowledge graphs in a single call. Call at the start of every task to integrate memory and graph context.
Instructions
Primary kage entry point. Validates memory health, recalls relevant packets, and queries both the code graph and knowledge graph — all in one call. Call this at the start of every task; it answers caller/usage questions from the code graph too, so you rarely need a separate graph tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | Absolute path to the project root | |
| query | Yes | The task or question — used for both memory recall and code graph search | |
| limit | No | Max memory packets to return (default 5) | |
| session_id | No | Optional active agent session id for memory reconciliation | |
| targets | No | Optional files the agent may edit or explain; used for risk context | |
| changed_files | No | Optional changed files for pre-edit or PR risk context |