ALM Forget
Perform a hard reset for a specific task type, removing all learned data for it.
Instructions
Validate Argument
The task type to forget is: $ARGUMENTS
If no argument is provided (empty), do NOT delete anything. Instead:
- •Read
~/.claude/alm/confidence.jsonto list known task types - •Also check
~/.claude/alm/playbooks/for any playbook files - •Output the list:
[ALM] Available task types: code-refactoring, bug-fixing, ... - •Ask:
Which task type do you want to forget? Run /alm:forget <task-type> - •Stop here.
If the argument doesn't match any known task type (not in confidence.json AND no playbook file AND no evaluations), output: [ALM] Unknown task type: "{argument}". Run /alm:forget without arguments to see available types.
Perform Deletion
Once you have a valid task type, delete the following:
- •Playbook: Delete
~/.claude/alm/playbooks/{task-type}.mdif it exists - •Confidence entry: Read
~/.claude/alm/confidence.json, remove the key for this task type, write it back - •Taxonomy: If
~/.claude/alm/playbooks/_index.mdexists, remove the task type entry from it - •Evaluations: For each
.jsonlfile in~/.claude/alm/evaluations/, filter out lines wheretaskTypematches, rewrite the file. Delete any files that become empty. - •Classifier: If
~/.claude/alm/classifier/model.jsonexists, delete it. Output a note:TF-IDF model deleted. Run /alm:reflect to rebuild it. - •Reflect queue: If
~/.claude/alm/reflect-queue.jsonexists, remove the task type entry from it
Report
Output a summary:
code
[ALM] Forgot task type: {task-type}
Deleted: playbook, {N} evaluation records, confidence entry
TF-IDF model deleted — run /alm:reflect to rebuild