Atuin
$ atuin Community Med RiskAtuin replaces plain shell history files with an indexed SQLite database storing timestamps, working directories, exit codes, and durations, plus optional end-to-end encrypted sync. While bare atuin search -i opens a TUI, non-interactive atuin search --format and atuin history list --cmd-only work cleanly in agent scripts.
brew install atuin Local SQLite shell history queries via atuin search --format run in milliseconds without exposing sensitive command logs to an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports non-interactive atuin search --format, --cwd, --exit, --limit, and atuin history list --cmd-only, though no built-in --json flag exists.
- Non-interactive
atuin search(without-i) and--formattemplating - Rich SQLite filters (
--cwd,--exit,--after,--before)
Read-only queries are safe locally and sync uses E2E encryption, but shell history often contains sensitive arguments or secrets.
- Client-side E2E encryption before remote sync
- History entries may contain secrets typed in past shell commands
Fast Rust binary via Homebrew, cargo install atuin --locked, and official binaries across macOS, Linux, and Windows.
- Cross-platform Rust binary
Queryable directory-, host-, and exit-code-indexed command history far outperforms flat .zsh_history grep.
- Indexed SQLite history with duration and exit code metadata
Actively developed MIT-licensed Rust project (atuinsh/atuin) with strong community and commercial backing.
- Frequent releases and well-maintained codebase
Thorough docs at docs.atuin.sh covering CLI search flags, sync, and self-hosting.
- Structured CLI reference at docs.atuin.sh
Security, Auth & Guardrails
Stores local SQLite history, sync session token, and E2E encryption key in ~/.local/share/atuin/ and ~/.config/atuin/config.toml.
CLI and self-hosted sync server are MIT open-source; hosted Atuin Cloud sync is optional.
# Atuin Agent Rules - NEVER pass `-i` (`--interactive`) to `atuin search` inside agent shells; always use `--format` or `atuin history list --cmd-only` with `--limit`. - Treat command history as sensitive—never dump unrestricted `atuin history list` output that may contain inline tokens.
Agent-Ready Command Recipes
Safe Read-Only Queries
atuin search --cwd . --exit 0 --limit 20 --format "{time}\t{command}" Queries successful commands run in . using --format without opening the interactive TUI (-i).
atuin history list --cmd-only --cwd . | tail -n 20
Prints raw command strings from local SQLite history for quick workflow recall.
Controlled Writes & Previews
atuin sync
Performs E2E encrypted history sync with the configured Atuin server when sync is enabled.
Strengths for Agents
- + Non-interactive
atuin searchwith--cwd,--exit,--limit, and custom--formatoutput. - + E2E encrypted sync and fast local SQLite indexing.
Caveats & Pitfalls
- ! No native
--jsonoutput flag (must compose--formatstrings carefully). - ! Shell history can expose sensitive CLI flags or tokens if queried broadly.