ai-memory vs agent-memory

Persistent memory for coding agents compared

ai-memory and agent-memory help coding agents retain useful project knowledge across sessions. ai-memory centers on a self-hosted, git-backed wiki and cross-agent handoffs, while agent-memory organizes notes into tiers and generates AGENTS.md context using an LLM.

ai-memoryagent-memory
LanguageRustTypeScript
LicenseMIT—
Stars9.1k7
Forks6320
Last analyzedOct 10, 2026Oct 4, 2026

Key differences

  • ai-memory captures agent activity through lifecycle integrations and stores sessions as Markdown pages; agent-memory collects notes in a journal queue for later consolidation.
  • ai-memory provides search and handoffs, with basic operation that does not require LLM calls; agent-memory uses an LLM to consolidate and reorganize notes into hot, warm, and cold tiers.
  • ai-memory is a Rust server and CLI designed to share project knowledge across machines and teammates; agent-memory is a TypeScript tool with a CLI and adapter-based integrations.
  • ai-memory uses a git-backed wiki as its source of truth and offers a self-hosted server; agent-memory stores memory as files and generates an AGENTS.md section for new threads.
  • ai-memory is MIT-licensed and has 8.8k stars and 608 forks; agent-memory has 7 stars and no forks in the supplied project facts.

Choose ai-memory if you…

  • need a searchable, git-backed record of coding-agent activity.
  • want handoffs and shared project knowledge across agents, machines, or teammates.
  • prefer basic capture, search, and handoffs that work without an LLM provider.
Read the ai-memory analysis →

Choose agent-memory if you…

  • want LLM-consolidated notes organized into hot, warm, and cold tiers.
  • need generated AGENTS.md context for new coding-agent threads.
  • prefer a standalone TypeScript CLI with adapter-based integrations.
Read the agent-memory analysis →

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.

OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️