SuperAPI AI Directory

suvadu

Suvadu is a local shell history replacement tool written in Rust that stores command history in SQLite and records structured context for each command, including exit code, duration, directory, executor, and session. It supports letting AI agents query history through an MCP server, and tracks sessions of AI agents such as Claude Code, Codex, OpenCode, and Cursor. All data is stored 100% locally, with no cloud, no telemetry, and no account required, under the MIT license.

Open website

About this tool

Suvadu is a local shell history replacement tool built in Rust, with the core goal of providing "total recall" for the terminal and shared memory for AI agents. It stores shell history in a SQLite database, and each command carries structured context, including exit code, execution duration, directory, executor, and session information. AI agents can query this history through an MCP server. All data is stored 100% locally, with no cloud, no telemetry, and no account required; it only checks for a new version once per day (can be disabled), under the MIT license.

Main capabilities include: AI agent tracking, which fully captures sessions of Claude Code, Codex, OpenCode, and Cursor (Cursor excludes token usage), records pi.dev commands and prompts, records Antigravity agent commands, and only marks commands for Windsurf, Aider, Continue, and Copilot; Prompt Explorer can trace each recorded command back to the prompt that triggered it; the MCP server provides 22 read-only tools, 8 resources, and 6 prompts, all read-only by default, with two write tools requiring manual enablement, and supports agent session discovery, project context, learning from failures, risk assessment, a shared skill library, and bookmarked command templates, configurable via suv settings.

Usage: the install script places suv into /usr/local/bin, using sudo only when the directory is not writable; --user or --dir DIR (or SUVADU_INSTALL_DIR) can be used to choose another location. Re-running the script updates an installed suv; if suv came from Homebrew or Cargo, it stops and suggests the corresponding update command. When run in a terminal, it asks whether to add the shell hook to ~/.zshrc (~/.bashrc on Linux), shows the line content, writes only if y is entered, keeps a .suvadu-backup backup, and does not add it repeatedly; --no-modify-rc disables this prompt. Afterward, add the shell hook and run suv status to verify.

Use cases: developers who need structured, queryable terminal history records; teams that want AI agents to access command history and session context; users who need to track AI agent activity and tracethe relationship between prompts and commands; and users who value local privacy and do not want history data in the cloud.

Limitations: Bash does not yet cover up-arrow recall and only binds Ctrl+R; up-arrow recall works in zsh but may be overridden by plugins loaded later, so eval "$(suv init zsh)" must be placed at the end of ~/.zshrc; repository skills are treated as untrusted until trusted; some AI agents support only command marking rather than full session capture; performance data is based on a single test on a single machine, and more unmeasured items are in BENCHMARKS.md.