amom
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
One local brain. Every AI agent. Every project. Local-first persistent memory and code intelligence for AI coding agents, shared over MCP and stored in SQLite.
Amom
One local brain. Every AI agent. Every project.
A local-first memory and code intelligence layer that helps AI coding agents share project context, remember important decisions, and avoid repeatedly rediscovering the same information.
Quick setup
Copy this prompt and send it to your AI coding agent to install and configure Amom for your AI agents:
Set up Amom globally for all AI agents installed on this device by following https://github.com/asimawdah/amom/blob/main/docs/AGENT_SETUP_PROMPT.md
The agent setup guide explains how to configure supported clients at user/global scope while preserving existing settings.
MIT License · Python 3.11+ · SQLite · MCP
Overview
Amom gives connected AI coding agents a shared, local SQLite knowledge base. It combines project indexing, searchable code context, and persistent memories so agents can start work with relevant context and preserve useful findings when a task is complete.
Instead of maintaining separate memory files for each assistant, Amom provides one project-aware memory service that can be used by multiple MCP-compatible agents.
Project status: Early development. The storage, incremental indexing, retrieval, and MCP foundations are available. Language-aware parsing and retrieval quality are still evolving.
How it works
Amom is designed around an agent-managed workflow:
- Start a task — the agent calls
memory_begin_taskto refresh the project index incrementally and retrieve relevant context. - Work with context — the agent searches indexed code and existing memories instead of repeatedly scanning the entire repository.
- Save useful knowledge — the agent calls
memory_finish_taskto preserve durable decisions, discoveries, pitfalls, and unresolved work. - Remember important decisions immediately — the agent can call
memory_rememberwhenever useful knowledge should not wait until the end of a task.
Amom does not make an agent remember automatically by itself. Each client must be connected through MCP and given instructions to use the tools. The setup guide helps configure compatible agents at user/global scope.
Key capabilities
- Shared memory: one local SQLite database for connected agents and projects.
- Project isolation: project memories stay scoped to their project; only explicitly global memories are shared.
- Incremental indexing: SHA-256 content hashes avoid unnecessary re-indexing.
- Code search: SQLite FTS5 search across indexed source chunks, symbols, and saved memories.
- Context retrieval: compact context packs include source paths, line ranges, and approximate token budgets.
- Background refresh: a dependency-free polling watcher keeps the index up to date.
- Project detection: uses MCP workspace roots when available, with explicit project selection as a fallback.
- Safer indexing: respects root and nested
.gitignorerules and excludes common secrets, generated files, binaries, and symlinks. - Local by design: no hosted database, cloud account, or telemetry is required.
Get started
Some clients require a one-time restart or reload after their MCP configuration changes.
Manual MCP setup
Amom runs as an MCP server over stdio. The following commands use uvx to run it directly from GitHub:
| Agent | Command |
|---|---|
| Claude Code | claude mcp add --scope user amom -- uvx --from 'amom[mcp] @ git+https://github.com/asimawdah/amom.git' amom mcp |
| OpenAI Codex CLI | codex mcp add amom -- uvx --from 'amom[mcp] @ git+https://github.com/asimawdah/amom.git' amom mcp |
| Gemini CLI | gemini mcp add --scope user amom uvx --from 'amom[mcp] @ git+https://github.com/asimawdah/amom.git' amom mcp |
For OpenCode, Cursor, and other MCP-compatible clients, use the configuration examples in the agent setup guide.
If uvx is not installed, follow the guide's alternative installation instructions.
Installation
Install from PyPI
When the amom distribution is published to PyPI, install the MCP-enabled package with:
python -m pip install "amom[mcp]"
Install from GitHub
To install the current source directly from GitHub:
python -m pip install "amom[mcp] @ git+https://github.com/asimawdah/amom.git"
Local development installation
For contributors working from a local checkout:
git clone https://github.com/asimawdah/amom.git
cd amom
python -m pip install -e ".[dev,mcp]"
Python library
Amom can also be used as a Python library:
from amom import Database, remember
database = Database()
project = database.register_project("/absolute/path/to/project")
memory = remember(
database,
"Use SQLite WAL mode.",
root=project["root"],
category="decision",
)
Library calls that use the default database honor the AMOM_DB environment variable. The CLI and MCP server can override the database path with --db when needed.
MCP tools
| Tool | Description |
|---|---|
memory_begin_task |
Refresh the project index incrementally and retrieve relevant task context. |
memory_finish_task |
Save a task summary, decisions, discoveries, pitfalls, and unresolved work. |
memory_get_context |
Retrieve a compact context pack for a focused query. |
memory_search_code |
Search indexed code chunks and symbols. |
memory_remember |
Save a durable project-scoped or global memory. |
memory_update |
Correct an existing memory. |
memory_forget |
Delete an incorrect or obsolete memory. |
memory_recall |
Search saved memories. |
memory_index_project |
Manually request an incremental index refresh. |
memory_use_project |
Select an explicit project checkout for the current MCP session. |
memory_projects |
List projects registered in the shared database. |
memory_status |
Inspect the active project, index, and memory counts. |
Project selection
Amom resolves the active project using the following order:
- An explicit
project_rootor amemory_use_projectselection. - Workspace roots reported by the MCP client.
- A project-scoped
--rootargument. - A detectable process working directory.
- The shared workspace as a final fallback.
If a tool response reports shared_workspace: true, or its project_root does not match the checkout being worked on, select the correct project for that MCP session:
memory_use_project(project_root="/absolute/path/to/checkout")
The selection remains active for that MCP session. Use memory_status to verify the active project and memory_projects to inspect the project registry.
Data storage and privacy
Amom stores its database in the operating system's user data directory:
| Platform | Default database location |
|---|---|
| Linux | ~/.local/share/amom/database/amom.sqlite3 |
| macOS | ~/Library/Application Support/amom/database/amom.sqlite3 |
| Windows | %LOCALAPPDATA%/amom/database/amom.sqlite3 |
Set AMOM_DB to use a different database path.
- Your data stays on your machine. Amom does not require a cloud service or hosted database.
- The indexer skips common environment files, credential-like filenames, private-key extensions, symlinks, binary files, and generated directories.
- Never save passwords, access tokens, private keys, or other secrets as memories.
- The database may contain source excerpts and project knowledge. It uses a private directory (
0700) and file permissions (0600), but the SQLite database is not encrypted at rest. Use full-disk encryption if protection against offline disk access is required.
Requirements
- Python 3.11 or newer
- SQLite compiled with FTS5 support
- The MCP extra for agent integration
uvxfor the recommended GitHub-based agent setup
Development
Install development dependencies and run the checks:
python -m pip install -e ".[dev,mcp]"
pytest
ruff check src tests
Roadmap
- Tree-sitter parsing and language-aware symbol/import extraction.
- Call/reference graphs and change-impact analysis.
- Memory provenance, confidence, freshness, deduplication, and superseding facts.
- Retrieval evaluation and optional local semantic search.
- Native setup and integration helpers for more coding agents.
License
Amom is licensed under the MIT License.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found