run_managed_lesson_agent
Prevent repeated agent mistakes by processing accumulated feedback into lessons and rules. Uses LLM or fallback heuristics to create Pre-Action Gates from failure patterns.
Instructions
Run the LLM-powered lesson inference and rule generation agent over accumulated feedback. Requires ANTHROPIC_API_KEY for LLM mode; falls back to heuristics if unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview what would be written without persisting | |
| limit | No | Max feedback entries to process (default: 20) | |
| model | No | Override the Claude model (default: claude-haiku-4-5) |