Description
The terraphim-agent learn correct subcommand is documented in the CLI but returns "(Not yet implemented)" when invoked.
Current Behavior
$ terraphim-agent learn correct <ID> --correction "Use 'echo test' instead"
Adding correction to learning <ID>: Use 'echo test' instead
(Not yet implemented)
Expected Behavior
The command should add a correction to an existing learning document, enabling:
- Recording the correct command that should have been used
- Querying learnings to show both the failed command and the correction
- Future auto-suggestion of corrections when similar failed commands are detected
Use Case
When a user runs a command that fails and gets captured:
$ bad-cmd --test
bad-cmd: command not found
They can later add a correction:
$ terraphim-agent learn correct <learning-id> --correction "Use 'good-cmd --test' instead"
This enables the learning system to suggest corrections for similar failures.
Related
Acceptance Criteria
Co-Authored-By: Terraphim AI
Description
The
terraphim-agent learn correctsubcommand is documented in the CLI but returns "(Not yet implemented)" when invoked.Current Behavior
Expected Behavior
The command should add a correction to an existing learning document, enabling:
Use Case
When a user runs a command that fails and gets captured:
$ bad-cmd --test bad-cmd: command not foundThey can later add a correction:
This enables the learning system to suggest corrections for similar failures.
Related
terraphim_agent/src/learnings/correct.rs(stub)Acceptance Criteria
terraphim-agent learn correct <ID> --correction "..."adds correction to learning fileterraphim-agent learn querydisplays corrections if presentCo-Authored-By: Terraphim AI