learn_from_failures
Check which project commands fail often, with failure rates and agent-vs-human patterns, before starting work to avoid repeating known-bad approaches.
Instructions
Commands in a project that fail often, with their recorded failure rates and whether agents fail them more than humans. Call it before starting work to avoid repeating a known-bad approach. It reports rates, not diagnoses. Where suvadu kept the end of a failed run's output (opt-in [capture] failure_output, agent-hook and suv wrap commands only), the latest is shown: what the command printed, not a confirmed cause. Each command also shows what most often passed right after its earlier failures in the same session and directory — a corrected command, or an install before a rerun — as an inferred fix, not an observed one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back to look (default: 7) | |
| limit | No | Max rows in this page (default: 10) | |
| detail | No | Add directory, duration, executor and session to each row (default: false) | |
| offset | No | Rows to skip; pass the response's next_offset to page forward | |
| directory | No | Directory to analyze, including its subtree (defaults to all) |