Documentation Index
Fetch the complete documentation index at: https://kiro-learn.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have:- Node.js 22 or later — kiro-learn uses modern Node APIs and will refuse to install on older versions.
- Kiro CLI or Kiro IDE — you need at least one Kiro surface to generate events. The CLI shim works with
kiro-clihooks; the IDE shim works with Kiro IDE’s.kiro/hooks/system. - AWS credentials for extraction — kiro-learn uses
kiro-clito call Amazon Bedrock for memory extraction. Without valid credentials, events are captured but never promoted to memory records.
Install
Initialize in your project
init handles everything:- Global + project install — writes agent configs at both
~/.kiro/agents/and your project’s.kiro/agents/. - Hooks auto-configured — deploys hook files into
.kiro/hooks/so events are captured automatically. - MCP server registered — configures the
kiro-learn-memoryMCP server in your Kiro agent settings, giving agents access tosearch_memory,save_observation, andsave_session_summarytools. - Daemon starts — launches the collector and opens the Viewer at http://127.0.0.1:21100/ui/.
Your first session
Once the daemon is running, walk through a single session to see the full loop in action.Open a Kiro session
Start a new session in Kiro CLI (
kiro-cli) or open your project in Kiro IDE. If you ran init with project scope, the IDE hooks are already wired.Do one simple task
Ask the agent to do something concrete — edit a file, run a command, answer a question about your codebase. This generates
prompt and tool_use events that flow into the collector.Watch events arrive
Open the Viewer at http://127.0.0.1:21100/ui/. The Recent Events table shows events arriving in real time. You should see your prompt and any tool uses appear within seconds.
Wait for extraction
After the session’s events accumulate in the buffer (triggered by size threshold or an idle timer), the extraction worker sends them to Bedrock via
kiro-cli. Watch the Memory Graph — a new memory node appears when extraction completes. This typically takes 10–30 seconds after the buffer triggers.The Viewer
The collector serves a visual Viewer at http://127.0.0.1:21100/ui/. It shows:- Health indicator — whether the daemon is responsive.
- Metric cards — total memories, events, projects, and concepts at a glance.
- Memory graph — an interactive node graph showing projects, concepts, and memory records with their relationships. Click any node to open the detail panel.
- Recent Events — a live table of recent events, newest first.
Other commands
Troubleshooting
Daemon won't start
Daemon won't start
Port conflict — another process is using port 21100. Check with
lsof -i :21100 (macOS/Linux) and stop the conflicting process, or stop and restart kiro-learn.Node version too old — the daemon requires Node 22+. Run node --version to confirm. If you have multiple Node versions, make sure the one on your PATH is 22 or later.Permission issues — the daemon writes to ~/.kiro-learn/. Ensure your user owns that directory.No events appearing
No events appearing
Hooks not installed — re-run
kiro-learn init in your project directory. For IDE users, verify that .kiro/hooks/kiro-learn-prompt.kiro.hook, kiro-learn-tool.kiro.hook, and kiro-learn-stop.kiro.hook exist.Agent config not pointing to kiro-learn — for CLI users, check that kiro-learn is the active agent (kiro-cli agent list). Run kiro-learn init again or kiro-cli agent set-default kiro-learn.Shim errors — the shim writes errors to stderr but always exits 0 (it never blocks the agent). Check the daemon log at ~/.kiro-learn/logs/collector-<date>.log for POST failures.Events appear but no memory records
Events appear but no memory records
kiro-cli not installed — extraction spawns kiro-cli under the hood. Run kiro-cli --version to confirm it’s on your PATH.Bedrock credentials missing — extraction calls Amazon Bedrock via your AWS credentials. Ensure your credentials are configured (aws configure or environment variables) and have Bedrock model access.Circuit breaker tripped — after 3 consecutive extraction failures, the circuit breaker disables further attempts. Restart the daemon (kiro-learn stop && kiro-learn start) to reset it. Check ~/.kiro-learn/logs/ for the underlying error.Related pages
Projects
How kiro-learn scopes memory per repository
Privacy
What lives on your machine and what leaves
Architecture overview
How the pieces fit together
Event buffer
What happens between capture and extraction