Skip to main content

Your codebase, remembered. AI-powered living memory for git projects.

Project description

memento-ai

Your codebase, remembered.

memento watches your git commits and maintains a living memory of your project — readable by both humans and AI.

How it works

git commit → memento analyzes the diff → updates markdown memory files

Memory files live in .memento/memory/ — plain markdown, diffable, committable to your repo.

Quick start

pip install memento-ai
cd your-project
memento init
memento process --all

That's it. Your project now has memory.

Ask questions

memento ask "what does the auth system do?"
memento ask "what changed in the last few commits?"

Features

  • Incremental — only processes new commits
  • Offline-first — works with Ollama or embedded local models (zero API cost)
  • Multi-provider — OpenAI, Anthropic, Claude CLI, Ollama, local inference
  • Human-readable — memory is plain markdown
  • Git-native — auto-processes via post-commit hook
  • Private — your code never leaves your machine (with local providers)

LLM Providers

Provider Setup Cost
Claude CLI pip install memento-ai + Claude Code installed Free (Max/Pro plan)
Ollama ollama pull qwen2.5-coder:7b Free
Local embedded pip install memento-ai[local] Free
OpenAI Set OPENAI_API_KEY Pay per token
Anthropic Set ANTHROPIC_API_KEY Pay per token

Using Ollama (recommended for privacy)

ollama pull qwen2.5-coder:7b

Edit .memento/config.toml:

[llm]
provider = "openai"
model = "qwen2.5-coder:7b"
base_url = "http://localhost:11434/v1"

Using embedded local model (zero setup)

pip install memento-ai[local]

Edit .memento/config.toml:

[llm]
provider = "local"
# Auto-downloads Qwen2.5-Coder-3B (~2GB) on first run

Using Claude CLI (free with Claude Max/Pro)

[llm]
provider = "claude-cli"

Requires Claude Code installed and logged in.

Commands

Command Description
memento init Initialize .memento/, install post-commit hook
memento process Process new commits since last run
memento process --all Process entire git history
memento ask "question" Ask about your project
memento status Show status: modules, commits processed
memento forget Clear all memory, start fresh

Configuration

.memento/config.toml:

[llm]
provider = "claude-cli"       # openai, anthropic, claude-cli, local
model = "gpt-4o-mini"         # model name (provider-specific)
base_url = "https://..."      # API base URL (openai provider)
temperature = 0.3
max_tokens = 2048

[processing]
chunk_size = 4000             # max diff size before chunking
summary_every = 10            # regenerate summary every N commits
ignore_patterns = ["*.lock", "dist/*"]

[memory]
dir = "memory"                # subdirectory for memory files
max_module_size = 5000        # max lines per module

Memory structure

.memento/
├── config.toml          # your configuration
├── state.json           # processing state (gitignored)
└── memory/
    ├── SUMMARY.md       # auto-generated project overview
    ├── api-endpoints.md # module: API routes and patterns
    ├── auth-system.md   # module: authentication logic
    └── database.md      # module: schema and queries

Modules are created and maintained automatically based on what the LLM finds in your commits.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memento_ai-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memento_ai-0.1.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file memento_ai-0.1.0.tar.gz.

File metadata

  • Download URL: memento_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for memento_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44ce38b5e2092159b9353c9316664a49ef7140595c413cc545aac4c6d0e00909
MD5 97a1b0fdf41bda2bab234915bb1d13ec
BLAKE2b-256 799f41d1eaaee4f9f97f1f9fc9db59969154f030d610b2cdf8fefc77add24d82

See more details on using hashes here.

Provenance

The following attestation bundles were made for memento_ai-0.1.0.tar.gz:

Publisher: publish.yml on hernanqwz/memento

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memento_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: memento_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for memento_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7540063a73e555c4fced4210a38ab3e6b6aa8c31deb6fd333bd2ae38fa4dafac
MD5 08728a14e5419dab9e2c31cfa5e4e42b
BLAKE2b-256 da274c0acabf3d940c4f1d8aa2ad1c9e16fb503a089b9d580a4e00114b53e94d

See more details on using hashes here.

Provenance

The following attestation bundles were made for memento_ai-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hernanqwz/memento

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page