learn_collect
Collect session records from local coding agents for /learn, or estimate run cost. Writes a run directory of sessions, usage, and mapper shards without altering 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Keep only sessions whose cwd starts with this | |
| out | No | ||
| days | No | ||
| agent | No | 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 |