agent-memory: A Standalone Memory System for AI Coding Agents
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
agent-memory is a standalone memory system designed for AI coding agents, addressing the common problem of agents "forgetting" context between sessions. It provides a structured, four-layer pipeline for capturing, consolidating, and disclosing knowledge. This system ensures agents always start with relevant context, eliminating the need for manual keyword-dependent retrieval.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
agent-memory is a standalone memory system specifically designed for AI coding agents. It tackles a fundamental challenge: agents often "forget" crucial context between different threads or sessions. Traditional methods, like grepping through notes, are inefficient because they rely on knowing the exact keywords and lack an always-in-context mechanism or navigational signals.
This innovative system resolves these issues with a robust four-layer pipeline: signal ? journal queue ? consolidation ? tiered memory filesystem. The ultimate goal is to ensure that your AI agent begins each new task or thread with highly relevant context already available in an AGENTS.md file, eliminating the need for manual searching.
Installation
You can integrate agent-memory into your projects using several methods:
As a Nix Flake
Add it to your flake.nix:
# flake.nix
{
inputs.agent-memory.url = "github:axiomhq/agent-memory";
outputs = { self, agent-memory, ... }: {
# your config
};
}
As a Git Submodule
Include it directly in your repository:
git submodule add https://github.com/axiomhq/agent-memory
Standalone
Clone the repository and install dependencies:
git clone https://github.com/axiomhq/agent-memory
cd agent-memory
bun install
Examples
The agent-memory CLI provides a set of commands to manage your agent's memory:
Capture a Journal Entry
Record new information from a session:
bun run src/cli/index.ts capture --title "learned xstate guards" --body "guards return boolean, not truthy" --tags "topic__xstate"
List Memory Entries
View existing memory entries:
bun run src/cli/index.ts list
Read an Entry
Access specific memory content (this also increments its usage counter):
bun run src/cli/index.ts read id__abc123
Run Consolidation
Process journal entries into structured knowledge:
bun run src/cli/index.ts consolidate
Run Defrag
Periodically reorganize and optimize memory:
bun run src/cli/index.ts defrag
Generate output-agents.md
Create a consolidated memory file for an organization:
bun run src/cli/index.ts generate-agents-md --org default
Health Check
Verify the system's status:
bun run src/cli/index.ts doctor
Why use agent-memory?
agent-memory was developed to overcome critical limitations found in simpler memory systems, such as flat folders of markdown files. These limitations include:
- Keyword-dependent retrieval: Memories are only accessible if you guess the exact keyword, making retrieval unreliable.
- No hot memory: There's no mechanism for always-in-context information, requiring explicit searching for everything.
- No progressive disclosure: Lack of navigational signals or tiered memory means all information is presented equally, without highlighting what's most relevant.
By implementing structured consolidation and tiered disclosure, agent-memory ensures your agent starts with immediate, relevant context, rather than relying on a search command. This significantly enhances the efficiency and effectiveness of AI coding agents.
Links
- Official GitHub Repository: axiomhq/agent-memory
Related repositories
Similar repositories that may be relevant next.

Codex MCP Server: Bridge Claude Code with OpenAI Codex CLI
August 23, 2026
Codex MCP Server is an essential tool that acts as a bridge between Claude Code and OpenAI's Codex CLI. It allows developers to integrate powerful AI-driven code analysis, generation, and review capabilities directly into their editor. This server wrapper enables Claude Code to fully leverage Codex's advanced AI functionalities.

AgentBridge: Local Bridge for Claude Code and Codex Collaboration
August 22, 2026
AgentBridge is an innovative local tool designed to facilitate real-time, bidirectional collaboration between Claude Code and Codex AI agents. It enables seamless cross-review, task splitting, and quota relay, allowing these powerful models to work together efficiently within a single session without manual intervention. Notably, the tool itself was largely built by Claude Code and Codex collaborating through AgentBridge.

MetaMCP: Unifying Model Context Protocol Servers with an All-in-One Gateway
August 19, 2026
MetaMCP is a powerful, self-hosted solution that acts as an aggregator, orchestrator, middleware, and gateway for Model Context Protocol (MCP) servers. It allows developers to dynamically combine multiple MCP servers into a single, unified endpoint, enhancing tool management and agent development. This TypeScript-based project simplifies the deployment and management of AI tools within a Dockerized environment.

microsoft/skills: Empowering AI Coding Agents with Domain-Specific Knowledge
August 19, 2026
The microsoft/skills repository provides a comprehensive collection of skills, custom agents, and configurations designed to enhance AI coding agents. It offers domain-specific knowledge for working with Azure SDKs and Microsoft AI Foundry, enabling more effective and context-driven development. Developers can leverage these resources to ground agents like GitHub Copilot with specialized expertise.
Source repository
Open the original repository on GitHub.