Cross-session engineering memory for Claude Code + mattpocock/skills, powered by Memanto. Real lifecycle hooks + LLM distillation = zero repeated instructions.
Project description
Claude Code + Memanto Integration
This package provides native integration of Memanto's persistent, cross-session memory capabilities into Claude Code and the mattpocock/skills ecosystem.
Installation
pip install claudecode-memanto
Component architecture
Features
- Global Lifecycle Hooks: Automatically inject memory context and distill sessions into persistent storage without modifying any skills.
- Prompt Injection: Use the CLI inside
CLAUDE.mdto instruct the agent to retrieve and store memories itself. - Zero Repeated Instructions: Your architectural choices, codebase quirks, and coding preferences persist across terminal sessions.
Usage
Method 1: Lifecycle Hooks (Recommended)
Install the global lifecycle hooks into your Claude Code settings. This automatically injects context (UserPromptExpansion) and extracts durable decisions after execution (Stop) without requiring the agent to run manual CLI commands.
# Register hooks locally (.claude/settings.json)
claudecode-memanto install
# Or globally (~/.claude/settings.json)
claudecode-memanto install --global
Ensure MOORCHEH_API_KEY is set in your environment. Run any skill (e.g., /tdd) and Claude Code will automatically recall relevant engineering memories.
Method 2: Prompt Injection (Explicit)
If you prefer explicit control and want the agent to use tools rather than hidden hooks, you can use prompt injection via your CLAUDE.md file.
Install the prompt injection instructions into your global ~/.claude/CLAUDE.md file (or your project-local .claude/CLAUDE.md). This provides Claude with the explicit instructions to run the CLI:
# Append instructions to your local .claude/CLAUDE.md
claudecode-memanto install --method prompt
# Or append globally to ~/.claude/CLAUDE.md
claudecode-memanto install --method prompt --global
Configuration
You can configure the integration via environment variables:
MOORCHEH_API_KEY: Required. Your API key.MEMANTO_AGENT_ID: Set a custom agent ID namespace.MEMANTO_RECALL_LIMIT: Max memories to inject (default: 15).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claudecode_memanto-0.1.0.tar.gz.
File metadata
- Download URL: claudecode_memanto-0.1.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26bf4765e7c38a98793e1617003deae93832d27092b709599602c441530e65d8
|
|
| MD5 |
c7662ac8473cfd327312b769b0903990
|
|
| BLAKE2b-256 |
ffe0f6fa33b07324ed02f73256ae28887bd86cfad46a6ceeb60253f422b9f0e2
|
File details
Details for the file claudecode_memanto-0.1.0-py3-none-any.whl.
File metadata
- Download URL: claudecode_memanto-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1aeac4eb6e8a58568cf92425546bcb58721df7d6a7202266cec98c0299540d1
|
|
| MD5 |
5493f3c4fb48af8878909bd75a6b11aa
|
|
| BLAKE2b-256 |
1142833946c89625c816d92970daa1e2f91e71f6c04c50346d0403603d2f26a1
|