Skip to content

Fix the Latest Terminal Error

Agent searches sivtr memory to fix the latest terminal failure

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.

Fix the terminal error.

Run this after a command fails:

The agent searches recent workspace memory for failure signals:

Terminal window
sivtr search terminal --match "error|failed|panic|Traceback|Exception|exit code|could not compile|FAILED" --format json --limit 20
sivtr search terminal --status failure --latest 1 --format json

If the search snippet is too short, it expands the latest command output:

Terminal window
sivtr copy out 1 --print

Then it reads the relevant source files, patches the issue, reruns the failing command, and reports the result with verification output.

User: Fix the terminal error.
Agent: I found the latest failure in sivtr memory: `cargo test` failed
with 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.
  1. Run a command that fails.
  2. Tell the agent: “Fix the terminal error.”
  3. Show the agent searching sivtr for the failure.
  4. Show the patch and verification output.