Skip to main content

CLI-first persistent memory for AI coding sessions with direct Obsidian note writing and local fallback storage.

Project description

easy-agent-mem header

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 watch mode 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: graph command - builds an Obsidian-native knowledge graph from code, chat history, and memory

Badges

PyPI version Python version License GitHub stars


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 EXTRACTED vs INFERRED labeling 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

  1. Open your README.md
  2. Replace the entire content with the text above
  3. 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):

  1. Index.md is still a bit basic
    -> Can be made more dashboard-like with better stats layout and visual separation.

  2. Error handling when Groq key is missing/invalid
    -> Currently it fails silently or shows confusing messages. Should give clear user-friendly message.

  3. Documentation in README
    -> The new graph command section is missing detailed examples and flags explanation.

  4. Performance on very large projects
    -> Scanning thousands of files can be slow. Compact mode helps but can be optimized further.

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

easy_agent_mem-0.5.2.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

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

easy_agent_mem-0.5.2-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

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

Hashes for easy_agent_mem-0.5.2.tar.gz
Algorithm Hash digest
SHA256 bb9bfb9776cdda32bd6f1b9adb326098865ccc7e522580f7d5a413e0b6cd40c2
MD5 e5b202eba5d32ba6bd18ba703aedaf84
BLAKE2b-256 af14ddbdd1dc37e0022266879097e3c2841078a82fdfadcbcd5868230a497e59

See more details on using hashes here.

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

Hashes for easy_agent_mem-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ec0eb42a9f0f10b449be25e084a02baa2f80543dd75361e07e97bfed1ce19d
MD5 90f3ade9a43c226688eb67b9d83139d3
BLAKE2b-256 07ce0f4eea34c599ba97597aaf7b9ec219fb6870661373d67c8c31e8ff668437

See more details on using hashes here.

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