Fix the Latest Terminal Error
The scenario
Section titled “The scenario”You run a command, it fails, and you want the agent to fix it. With sivtr, the agent can search the latest terminal output, inspect the relevant files, patch the issue, and verify the result.
What you say
Section titled “What you say”Fix the terminal error.Run this after a command fails:
How it works
Section titled “How it works”The agent searches recent workspace memory for failure signals:
sivtr search terminal --match "error|failed|panic|Traceback|Exception|exit code|could not compile|FAILED" --format json --limit 20sivtr search terminal --status failure --latest 1 --format jsonIf the search snippet is too short, it expands the latest command output:
sivtr copy out 1 --printThen it reads the relevant source files, patches the issue, reruns the failing command, and reports the result with verification output.
Example interaction
Section titled “Example interaction”User: Fix the terminal error.
Agent: I found the latest failure in sivtr memory: `cargo test` failedwith error[E0432] — unresolved import `crate::config::legacy`.I removed the stale import in src/commands/show.rs, reran `cargo test`,and all 42 tests now pass.Demo video outline
Section titled “Demo video outline”- Run a command that fails.
- Tell the agent: “Fix the terminal error.”
- Show the agent searching
sivtrfor the failure. - Show the patch and verification output.