record_insight
Capture cause-and-effect patterns from root cause analysis. Build a persistent knowledge base of problems, causes, and solutions that auto-surface when similar issues recur, tracking confidence scores with each observation.
Instructions
Record a cause-and-effect pattern you've discovered.
Insights are the deepest memory tier — understanding WHY things happen. Over time, your memory builds a library of patterns that surface automatically when similar situations recur. If the same pattern+cause is recorded again, the confidence score increments rather than creating a duplicate.
Use this when:
A recurring bug is explained:
record_insight("deploys fail on Fridays", "cache expires weekly", "flush cache before Friday deploys")A workflow pattern emerges:
record_insight("PR reviews take 3+ days", "no reviewer assigned", "auto-assign reviewers on PR creation")A root cause is found after investigation
Args: pattern: The observable symptom or recurring situation. cause: The root cause — why this happens. solution: How to fix or prevent it. confidence: How certain you are this cause is correct (0.0 to 1.0). Use 0.5 for hypotheses, 0.7 for likely, 1.0 for confirmed.
Returns: The insight ID and how many times this exact pattern has been observed. If this pattern+cause was seen before, returns the updated confidence count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| cause | Yes | ||
| solution | Yes | ||
| confidence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |