Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Atuin

$ atuin Community Med Risk
Atuin · Files & Search · MIT · macos / linux / windows

Atuin 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install atuin
CLI vs MCP Decision CLI Preferred vs MCP

Local SQLite shell history queries via atuin search --format run in milliseconds without exposing sensitive command logs to an MCP server.

Agent-Readiness Checklist

— JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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 --format templating
  • Rich SQLite filters (--cwd, --exit, --after, --before)
Trust & Safety 20 / 25

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
Setup & Portability 14 / 15

Fast Rust binary via Homebrew, cargo install atuin --locked, and official binaries across macOS, Linux, and Windows.

  • Cross-platform Rust binary
Utility & Efficiency 13 / 15

Queryable directory-, host-, and exit-code-indexed command history far outperforms flat .zsh_history grep.

  • Indexed SQLite history with duration and exit code metadata
Maintenance & Lineage 9 / 10

Actively developed MIT-licensed Rust project (atuinsh/atuin) with strong community and commercial backing.

  • Frequent releases and well-maintained codebase
Docs & Verifiability 9 / 10

Thorough docs at docs.atuin.sh covering CLI search flags, sync, and self-hosting.

  • Structured CLI reference at docs.atuin.sh

Security, Auth & Guardrails

Auth Modes
No Auth Config File OS Keychain
Credential Storage

Stores local SQLite history, sync session token, and E2E encryption key in ~/.local/share/atuin/ and ~/.config/atuin/config.toml.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI and self-hosted sync server are MIT open-source; hosted Atuin Cloud sync is optional.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Search prior commands in the current directory without TUI
atuin search --cwd . --exit 0 --limit 20 --format "{time}\t{command}"

Queries successful commands run in . using --format without opening the interactive TUI (-i).

List recent raw commands only
atuin history list --cmd-only --cwd . | tail -n 20

Prints raw command strings from local SQLite history for quick workflow recall.

Controlled Writes & Previews

Sync encrypted history state with configured server
atuin sync

Performs E2E encrypted history sync with the configured Atuin server when sync is enabled.

Strengths for Agents

  • + Non-interactive atuin search with --cwd, --exit, --limit, and custom --format output.
  • + E2E encrypted sync and fast local SQLite indexing.

Caveats & Pitfalls

  • ! No native --json output flag (must compose --format strings carefully).
  • ! Shell history can expose sensitive CLI flags or tokens if queried broadly.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI