| description | Review and approve learned CyxCode patterns |
|---|
Find and read the file cyxcode-learned.json in the .opencode directory at the project root (look for it by searching upward from the current directory, or check common locations like .opencode/cyxcode-learned.json and ../../.opencode/cyxcode-learned.json).
If the file doesn't exist or has no pending entries, say "No pending patterns to review."
Otherwise, show the user all pending patterns as a numbered list. For each:
- Error (first 100 chars of errorOutput)
- Regex: the generated regex
- Fix: the suggested fix command or description
- Learned from: the failed command
Then ask the user which patterns to:
- Approve (move from pending to approved — will be active on next restart)
- Reject (remove from pending)
- Skip (leave as pending for later)
Update the JSON file by moving approved entries from the pending array to the approved array, and removing rejected entries.
After updating, summarize what was approved/rejected.
$ARGUMENTS