mine_sessions
Extract architectural decisions, tech choices, bug root causes, and preferences from session logs. Choose regex, LLM, or hybrid strategy to improve recall.
Instructions
Mine Claude Code / Claw Code session logs for architectural decisions, tech choices, bug root causes, and preferences. Strategies: "regex" (default, free, ~20-40% recall), "llm" (higher recall, costs tokens), "hybrid" (regex + LLM safety net). Skips already-mined sessions unless force=true. Mutates the decision store; idempotent. Returns JSON: { mined, decisions_extracted, sessions_processed, strategy?, llm_sessions?, llm_decisions_extracted? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-mine already processed sessions (default: false) | |
| strategy | No | Extraction strategy: regex (default, free/fast/low recall), llm (AI provider, costs tokens, higher recall), hybrid (regex + LLM safety net). Falls back to regex with a warning if no AI provider is configured. | |
| project_root | No | Only mine sessions for this project path (default: all projects) | |
| min_confidence | No | Legacy reject floor — drops decisions below this. Superseded by reject_threshold; kept for back-compat. | |
| reject_threshold | No | Reject floor (default: config decisions.reject_threshold, fallback 0.45). Decisions in [reject_threshold, review_threshold) queue for review; below it, dropped. | |
| review_threshold | No | Auto-approve cutoff (default: config decisions.review_threshold, fallback 0.75). Decisions ≥ this enter the active graph immediately. | |
| incremental_cursor | No | Per-call override for `memory.mining.incrementalCursor`. true (default) reuses byte-offset cursors for appended turns; false falls back to legacy mined/unmined semantics. |