CLI-first persistent memory for AI coding sessions with direct Obsidian note writing and local fallback storage.
Project description
agent-mem
Automatic context compression and persistent memory for AI coding agents
agent-mem watches your work, detects meaningful progress, and gives you a one-paste handoff prompt that tells your IDE agent to summarize, save memory, and start fresh with minimal context.
Features
- Smart
watchmode with file + git + idle detection - One-paste handoff prompts (Groq powered, optional)
- Rich Obsidian-first storage with wiki-links and frontmatter
- Local fallback mode (
.agent-memory/) - New:
graphcommand - builds an Obsidian-native knowledge graph from code, chat history, and memory
Badges
Quick Start
pip install easy-agent-mem
agent-mem init
agent-mem configure-groq # optional but recommended
agent-mem watch # start automatic handoff mode
New in v0.5+:
agent-mem graph build -> creates a full knowledge graph in agent-mem-output/
New: Knowledge Graph (agent-mem graph)
agent-mem graph build # Basic deterministic graph
agent-mem graph build --enrich # Enrich with Groq (inferred relationships)
agent-mem graph build --compact # Compact mode for large projects
Output: Clean Obsidian-ready Markdown files in agent-mem-output/
Index.md- beautiful dashboard- Code structure, decisions, blockers, concepts, sessions
- Clear
EXTRACTEDvsINFERREDlabeling with confidence scores
Open agent-mem-output/Index.md in Obsidian for full graph navigation and backlinks.
Commands Overview
| Command | Description |
|---|---|
agent-mem init |
Setup Obsidian / fallback + IDE rules |
agent-mem configure-groq |
Set Groq API key |
agent-mem watch |
Automatic one-paste handoff watcher |
agent-mem graph build |
Build knowledge graph (new) |
agent-mem summarize |
Manual summary |
agent-mem recall <query> |
Search memory |
Project Links
Made for developers who want their AI agent to actually remember things.
License: MIT
How to Update README
- Open your
README.md - Replace the entire content with the text above
- Save and commit:
git add README.md
git commit -m "docs: update README with badges and graph feature"
git push
What Part Requires Improvement (Specific Feedback)
Current State (Good):
- Core graph building works
- Compact mode and enrichment are implemented
- Output is Obsidian-friendly
Areas that still need improvement (Priority order):
-
Index.md is still a bit basic
-> Can be made more dashboard-like with better stats layout and visual separation. -
Error handling when Groq key is missing/invalid
-> Currently it fails silently or shows confusing messages. Should give clear user-friendly message. -
Documentation in README
-> The newgraphcommand section is missing detailed examples and flags explanation. -
Performance on very large projects
-> Scanning thousands of files can be slow. Compact mode helps but can be optimized further.
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 easy_agent_mem-0.5.2.tar.gz.
File metadata
- Download URL: easy_agent_mem-0.5.2.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb9bfb9776cdda32bd6f1b9adb326098865ccc7e522580f7d5a413e0b6cd40c2
|
|
| MD5 |
e5b202eba5d32ba6bd18ba703aedaf84
|
|
| BLAKE2b-256 |
af14ddbdd1dc37e0022266879097e3c2841078a82fdfadcbcd5868230a497e59
|
File details
Details for the file easy_agent_mem-0.5.2-py3-none-any.whl.
File metadata
- Download URL: easy_agent_mem-0.5.2-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3ec0eb42a9f0f10b449be25e084a02baa2f80543dd75361e07e97bfed1ce19d
|
|
| MD5 |
90f3ade9a43c226688eb67b9d83139d3
|
|
| BLAKE2b-256 |
07ce0f4eea34c599ba97597aaf7b9ec219fb6870661373d67c8c31e8ff668437
|