Recall
Automated, AI-powered CLI snippet manager. Stop re-googling that one
ffmpegincantation — Recall captures your long shell commands, describes them in plain English, and lets you find them again by meaning, not exact wording.
What it does
- Auto-captures long / complex terminal commands via a shell hook (after you run them — zero manual effort).
- Describes them automatically using a local LLM (Ollama, free & offline) or, optionally, the Claude API.
- Stores everything in a single portable SQLite file you can copy or sync.
- Finds commands semantically — search "clean up docker space" and get
back
docker rm $(docker ps -aq)even if you never used those words.
Everything runs locally and free by default. No account, no cloud, no
telemetry. The single recall.db file is the whole product — copy it to a new
machine and you are done.
Free by default
The AI description step is pluggable:
| Provider | Cost | Needs | Default |
|---|---|---|---|
ollama |
Free, offline | Ollama installed | ✅ yes |
heuristic |
Free, offline | nothing | fallback |
claude |
Paid (API) | ANTHROPIC_API_KEY |
opt-in |
If no provider is reachable, Recall falls back to a heuristic description and keeps working — the tool never breaks because an LLM is unavailable.
Install
Requires Python 3.11+.
From PyPI (simplest — works out of the box, zero config):
pip install recall-snippets # or: uv tool install recall-snippets
recall version
recall install # wire up the shell hook
Zero-config: a fresh install needs no LLM, no API key, and no extra downloads. Capture,
add,list,search(keyword),deleteandredescribeall work immediately. Descriptions use the built-in heuristic until you install Ollama or set an API key; search uses SQLite FTS5 keyword matching until you add thesemanticextra. Both are optional upgrades, not requirements — see Free by default.
One-step install from source (checks Python, installs uv if missing,
installs the recall command globally, and wires the shell hook):
git clone https://github.com/Surge77/recall
cd recall
./scripts/install.sh
Manual / development install:
git clone https://github.com/Surge77/recall
cd recall
uv sync
uv run recall version
Optional extras (installed on demand):
uv sync --extra ai # Ollama / Claude description providers
uv sync --extra semantic # local semantic search (ChromaDB + embeddings)
# from a PyPI install:
pip install "recall-snippets[ai]"
pip install "recall-snippets[semantic]"
Usage
recall install # install the shell hook (zsh / bash)
# ... run a long command normally; it is captured silently ...
recall search "docker cleanup" # semantic search, copies top hit to clipboard
recall list --tag docker # browse saved snippets
recall add "<cmd>" --tags net # manual add (auto-describes if no --desc)
recall delete 12 # remove a snippet
recall redescribe # regenerate AI descriptions (all, or one id)
recall sync --path ~/Dropbox/recall.db # symlink the DB for cross-machine sync
Platform note: the auto-capture hook supports zsh, bash and PowerShell (7+, via PSReadLine). On Windows you can run Recall natively in PowerShell, or use WSL / Git Bash. All other commands work on every platform.
Configuration
A config.toml is created on first run (location is per-OS via platformdirs,
e.g. %LOCALAPPDATA%\recall\config.toml on Windows). Relevant capture knobs:
[capture]
min_command_length = 40 # skip anything shorter
trivial_commands = ["cd", "ls", "pwd", "exit", "clear", "history"] # never captured
A command is auto-captured only if it is ≥ min_command_length characters,
its first word is not in trivial_commands, it is not a comment or a
recall … call, and it is not already stored. Add your own noise commands
(git, npm, clear, …) to trivial_commands to skip them.
Uninstall
uv tool uninstall recall-snippets
Then remove the hook block (marked # recall auto-capture hook) from your
~/.zshrc or ~/.bashrc. Your snippets live in a single data file; delete it
only if you want to discard them:
# Linux: ~/.local/share/recall/recall.db
# macOS: ~/Library/Application Support/recall/recall.db
# Windows: %LOCALAPPDATA%\recall\recall.db
License
Metadata
Release files for recall-snippets 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| recall_snippets-0.2.1.tar.gz | 267.1 kB | With provenance | Details for recall_snippets-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recall_snippets-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for recall_snippets-0.2.1-py3-none-any.whl |
Total release size: 287.4 kB
Release files / recall_snippets-0.2.1.tar.gz
| Download URL | recall_snippets-0.2.1.tar.gz |
|---|---|
| Size | 267.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
960f1164dfb9194ae0950fa966cd2fdab7dad2fd0b8f8393a3e57349ca41a15b
|
|
BLAKE2b-256 checksum How to use checksums |
717ebf4da4f57d79c84e4dee017bc6e70dacb4fe37bec531ed67ca34120a044b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logRelease files / recall_snippets-0.2.1-py3-none-any.whl
| Download URL | recall_snippets-0.2.1-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
283d2ae087025b8ed3476e3675ed61e3d8c97ec1df36ca519af72e04d62ba883
|
|
BLAKE2b-256 checksum How to use checksums |
1a35c96cc6c7af048e7915b41f7e876359e3b6f3f16e7933a4cdf0d8a03a460b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logSecurity for recall-snippets 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for recall_snippets-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.