En

agentmemory

Provides persistent memory for AI coding agents

开发流程 保存编码进度存储长期记忆同步项目上下文管理多个AI编码代理 claudecursor通用 ★ 25.3k Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: agentmemory.
It is used for: Provides persistent memory for AI coding agents
Full Skill content: https://321skill.com/skills/agentmemory/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This skill addresses the issue where AI coding agents need to re-interpret project context in every conversation. In real-world development, developers often have to repeatedly explain background information such as project structure, tech stack, and API design to tools like Claude Code and Cursor, leading to extensive repetitive dialogue and wasted tokens. agentmemory enables AI agents to remember all key information through persistent storage, eliminating the need for repeated explanations.

Usage is straightforward: simply install the npm package and initialize the engine, after which you can store, retrieve, and manage memories using natural language commands. For example, before tackling a complex task, have the AI save the current context; any subsequent conversation can then automatically invoke relevant memories. It supports confidence scoring, automatic lifecycle management, knowledge graph association, and hybrid search to ensure high recall rates.

It is particularly well-suited for teams or individuals who frequently switch between projects or maintain multiple AI coding agents. Developers already using tools like Claude Code, GitHub Copilot CLI, Cursor, or Gemini CLI can significantly reduce context-switching overhead and boost coding efficiency. For agent developers and full-stack engineers, it also helps manage shared memory across multiple AI agents.

It is recommended to use this tool to save project context snapshots when starting a new project or switching tasks. Note that it primarily relies on local files and memory storage, requiring no external database, but for large-scale historical memory, regular export or cleanup is advised. Built on the iii engine, it currently focuses on the JavaScript/TypeScript ecosystem but can integrate with various tools via the MCP protocol.

Key Features

Unlike Karpathy's LLM Wiki pattern, agentmemory not only provides persistent text storage but also features built-in confidence scoring, automatic lifecycle management, knowledge graph association, and hybrid vector search, achieving a 95.2% R@5 retrieval recall rate and reducing token consumption by 92%.

Limitations

Requires Node.js 18+ environment and depends on the iii engine (a Node.js native package). Currently, it primarily supports the JavaScript/TypeScript ecosystem. Local storage performance should be considered for large-scale memory scenarios.

FAQ

How do I install agentmemory?

Run `npm install @agentmemory/agentmemory` to install, then start using it via `import { memory }`.

Which AI coding agents are supported?

Supports Claude Code, GitHub Copilot CLI, Cursor, Gemini CLI, Codex CLI, Hermes, OpenClaw, pi, OpenCode, and any MCP client.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agentmemory/raw/index.md to read the original Skill definition (Markdown format) for agentmemory, and install it according to the instructions.