MCPcopy Index your code
hub / github.com/AppachiTech/suvadu

github.com/AppachiTech/suvadu @v0.3.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.4 ↗ · + Follow
1,996 symbols 6,605 edges 69 files 297 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Suvadu

Total recall for your terminal. Shared memory for your AI agents.

CI crates.io License: MIT Latest Release

Suvadu — search history, browse AI agent prompts

Suvadu replaces your shell history with a SQLite-backed store. Every command gets structured context — exit code, duration, directory, executor, session. AI agents can query it via MCP. 100% local.

  • <2ms recording overhead, <10ms search across 1M+ entries
  • AI agent tracking — auto-detects Claude Code, Cursor, OpenCode, Antigravity, pi.dev, Codex, Aider
  • Prompt Explorer — trace every command back to the prompt that triggered it
  • MCP Server — 15 tools + 7 resources. Agent session discovery, project context, failure learning, risk assessment. Configurable via suv settings
  • 100% local — no cloud, no telemetry, no account. MIT licensed.

Website & Docs: suvadu.sh · CLI Reference: suvadu.sh/cli · Blog: suvadu.sh/blog


Install

# Homebrew (macOS)
brew tap AppachiTech/suvadu && brew install suvadu

# Install script (macOS & Linux)
curl -fsSL https://downloads.appachi.tech/suvadu/install.sh | sh

# Cargo
cargo install suvadu

Then add shell hooks:

# Zsh
echo 'eval "$(suv init zsh)"' >> ~/.zshrc && source ~/.zshrc

# Bash
echo 'eval "$(suv init bash)"' >> ~/.bashrc && source ~/.bashrc

Verify: suv status


Quick Start

suv search                  # Interactive search TUI (also Ctrl+R)
suv history                 # Print last 25 commands (pipeable)
suv history --json -n 100   # Last 100 commands as JSONL
suv stats                   # Stats dashboard with heatmap
suv replay --after today    # Timeline of today's commands
suv doctor                  # Check installation health
suv agent dashboard         # Monitor AI agent activity
suv agent prompts           # Browse prompts and their commands

AI Agent Setup

suv init claude-code    # Claude Code — hooks + MCP + prompt capture
suv init cursor         # Cursor — hooks + MCP + prompt capture
suv init opencode       # OpenCode — plugin + prompt capture
suv init pi             # pi.dev — extension + prompt capture
suv init antigravity    # Antigravity — auto-detect

Then ask your agent: "What commands failed in this project recently?"

See the full integration guide and MCP server docs.


Key Features

Feature Details
Search Fuzzy search TUI with filters, Smart mode, detail pane, bookmarks
History Non-interactive suv history with filters, --json, pipeable to other tools
Agent Dashboard Timeline, risk assessment, per-agent analytics, exportable reports
MCP Server 15 tools + 7 resources — agent session replay, project context, failure learning, configurable
Prompt Explorer Trace commands back to the prompt that triggered them
Stats Heatmap, hourly distribution, top commands, executor breakdown
Doctor suv doctor checks shell, hooks, config, database, MCP, and agent hooks health
Organization Tags, bookmarks, notes, alias suggestions
Privacy Space-prefix exclusion, regex patterns, secret redaction, local-only
Arrow Keys Frecency-ranked Up/Down that prefers same-directory commands
Vim Bindings Optional vim-style j/k/Ctrl+U/Ctrl+D navigation in search TUI

Full feature documentation at suvadu.sh/cli.


More demos

Suvadu search TUI

Search, stats & settings

Suvadu agent dashboard

Agent dashboard — track what your AI agents execute


Development

git clone https://github.com/AppachiTech/suvadu.git
cd suvadu
make dev      # Run the app
make test     # Run tests
make lint     # Run clippy + format check

See CONTRIBUTING.md for guidelines.

Security

See SECURITY.md for vulnerability reporting, data storage design, and privacy details.

License

MIT

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 1,554
Method 341
Class 65
Enum 35
Interface 1

Languages

Rust100%

Modules by API surface

src/search/tests.rs143 symbols
src/search/render.rs115 symbols
src/stats_ui.rs104 symbols
src/settings_ui.rs91 symbols
src/mcp/tools.rs90 symbols
src/commands/entry.rs86 symbols
src/repository/tests.rs79 symbols
src/redact.rs76 symbols
src/risk.rs66 symbols
src/repository/mod.rs66 symbols
src/agent_ui/prompts.rs58 symbols
src/import_export.rs54 symbols

Datastores touched

(mongodb)Database · 1 repos
dbDatabase · 1 repos
dbDatabase · 1 repos
mydbDatabase · 1 repos

For agents

$ claude mcp add suvadu \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page