keep
Agent memory that pays attention. The foundation of skillful action.
It includes skill instructions for reflective practice, and a powerful semantic memory system with command-line and MCP interfaces. Fully local, or use API keys for model providers, or cloud-hosted for multi-agent use.
uv tool install keep-skill # or: pip install keep-skill
keep # interactive first-run setup (providers + agent hooks)
# Index content
keep put https://inguz.substack.com/p/keep -t topic=practice
keep put "Rate limit is 100 req/min" -t topic=api
# Index a codebase — recursive, with daemon-driven watch for changes
keep put ./my-project/ -r --watch
# Search by meaning
keep find "what's the rate limit?"
# Track what you're working on
keep now "Debugging auth flow"
# Instructions for reflection
keep prompt reflect
What It Does
Store anything — notes, files, URLs — and keep summarizes, embeds, and tags each note. You search by meaning, by keyword, and by graph traversal.
Content goes in as conversation, text, PDF, HTML, Office documents, audio, or images; what comes back is a summary with tags and semantic neighbors. Audio files auto-extract metadata (artist, album, year); image files auto-extract EXIF (camera, date, dimensions). Optional vision/transcription enrichment runs when a media provider is configured, and scanned PDFs and images get background OCR when an OCR provider is available.
Full content is only stored if it's short (~3kB, configurable) - everything else gets summarized. Chunked analysis and summarization produces a focused searchable index that references original files or URLs without filling your disk with duplicated data.
This is more than a vector store: selected tags become edges. A tag becomes an edge when its tagdoc declares an _inverse — for example, .tag/speaker declares _inverse: said, so speaker: Deborah on a note makes keep get Deborah show every note where Deborah spoke. Ordinary tags stay as labels; you opt into navigability per tag key. Bundled edges include speaker, author, references, cites, from/to/cc, and git_commit; you can define your own. When you retrieve any note, keep follows its edges and fires standing queries (.meta/*) — surfacing open commitments, past learnings, related files, commit history. The right things appear at the right time. See docs/EDGE-TAGS.md.
- Summarize, embed, tag — URLs, files, and text are summarized and indexed on ingest
- Contextual feedback — Open commitments and past learnings surface automatically
- Search — Semantic similarity, BM25 full-text, and ranked graph traversal; scope to a folder or project
- Tag organization — Speech acts, status, project, topic, type — structured and queryable
- Deep search — Follow edges and tags from results to discover related notes across the graph
- Edge tags — Turn tags into navigable relationships with automatic inverse links
- Git changelog — Commits indexed as searchable notes with edges to touched files
- Parts —
analyze decomposes documents into searchable sections, each with its own embedding and tags
- Strings — Every note is a string of versions; reorganize history by meaning with
keep move
- Watches — Daemon-driven directory and file monitoring; re-indexes on change
- Works offline — Local models (MLX, Ollama, etc.), or API providers (Voyage, OpenAI, Gemini, Anthropic, Mistral)
keep.generalbusiness.ai — Hosted service. No local setup, no API keys to manage. Same SDK, managed infrastructure.
The Practice
keep is designed as a skill for AI agents — a practice, not just a tool. The skill instructions teach agents to reflect before, during, and after action: check intentions, recognize commitments, capture learnings, notice breakdowns. keep prompt reflect guides a structured reflection (details); keep now tracks current intentions and surfaces what's relevant.
This works because the tool and the skill reinforce each other. The tool stores and retrieves; the skill says when and why. An agent that uses both develops skillful action across sessions — not just recall, but looking before acting, and a deep review of outcomes afterwards.
Why build memory for AI agents? What does "reflective practice" mean here? Read our blog for the back-story →
Integration
Run keep (or keep config --setup) and the interactive wizard offers to install hooks for the coding-tool integrations it detects on your system. The other rows below have their own setup commands.