learn_collect
Collect compact session records from local agents for /learn, or estimate a run's cost. Writes a run directory with sessions, usage, phrases, and mapper shards without changing skills.
Instructions
Collect compact session records from every local agent for /learn, or estimate the cost of a run. Default scope is all history. Writes a run directory of sessions, surfaces, usage, phrases, and plan.json mapper shards. Does not change skills.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "learn_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Keep only sessions whose cwd starts with this | |
| out | No | ||
| days | No | ||
| agent | No | agy, claude, codex, copilot, cursor, gemini, grok, or opencode | |
| batch | No | Sessions per mapper (25, or 1 for per-trace) | |
| limit | No | ||
| estimate | No | When true, write estimate.json only | |
| since_last | No | ||
| drop_pattern | No | ||
| include_headless | No | ||
| include_subagents | No |