Skip to content

History

sivtr stores captured terminal output in a local SQLite history database with FTS5 search. History is for longer-lived terminal captures; it is separate from per-shell session logs and agent transcripts.

Terminal window
sivtr history
sivtr history list
sivtr history list --limit 50

Output includes the entry id, timestamp, command, and a preview of the content.

Terminal window
sivtr history search "panic"
sivtr history search "failed assertion" --limit 10

Search uses the history full-text index. Use the resulting id with history show.

This is different from sivtr search, which searches current-workspace agent sessions plus the current terminal session log when shell integration has data.

Terminal window
sivtr history show 42

The detail view prints metadata followed by the stored content:

  • id;
  • timestamp;
  • command;
  • source;
  • host;
  • content.

History retention is controlled by config:

[history]
auto_save = true
max_entries = 0

max_entries = 0 means unlimited.

Disable automatic history saves:

[history]
auto_save = false
NeedUse
Search older captured terminal outputsivtr history search
Copy the latest shell command outputsivtr copy out
Browse the current shell’s structured blockssivtr import
Search current workspace terminal and agent memorysivtr search