MCPInstall

agent-memory

Persist and retrieve repository-specific knowledge using AGENTS.md files. Use when you want to save important information about a codebase (build commands, code style, workflows) for future sessions.

Installs
112
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/openhands/extensions --skill agent-memory
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads agent-memory automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

  • Repository memory: Use AGENTS.md in each repository root to store and access important information.

    • If this file exists, it will be added to your context automatically.
    • If missing, you should create it unless the user has explicitly asked you to not do so.
  • Store and maintain general knowledge that will be helpful for most future tasks:

    1. Repository structure
    2. Common commands (build, lint, test, pre-commit, etc.)
    3. Code style preferences
    4. Workflows and best practices
    5. Any other repository-specific knowledge you learn
  • IMPORTANT: ONLY LOG the information that would be helpful for different future tasks, for example, how to configure the settings, how to setup the repository. Do NOT add issue-specific information (e.g., what specific error you have ran into and how you fix it).

  • When adding new information:

    • ALWAYS ask for user confirmation first by listing the exact items (numbered 1, 2, 3, etc.) you plan to save to AGENTS.md
    • Only save the items the user approves (they may ask you to save a subset)
    • Ensure it integrates nicely with existing knowledge in AGENTS.md
    • Reorganize the content if needed to maintain clarity and organization
    • Group related information together under appropriate sections or headings
    • If you've only explored a portion of the codebase, clearly note this limitation in the repository structure documentation
    • If you don't know the essential commands for working with the repository, such as lint or typecheck, ask the user and suggest adding them to AGENTS.md for future reference (with permission)

When you receive this message, please review and summarize your recent actions and observations, then present a list of valuable information that should be saved in AGENTS.md to the user.

FAQ

What does the agent-memory skill do?

Persist and retrieve repository-specific knowledge using AGENTS.md files. Use when you want to save important information about a codebase (build commands, code style, workflows) for future sessions.

How do I install agent-memory?

Run npx skills add https://github.com/openhands/extensions --skill agent-memory in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/agent-memory/ (personal) or .claude/skills/agent-memory/ (project).

Which AI agents can use agent-memory?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is agent-memory safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains agent-memory?

It is published by openhands in openhands/extensions. It has 112 recorded installs.

More from openhands/extensions

View all →

ssh

openhands/extensions

Establish and manage SSH connections to remote machines, including key generation, configuration, and file transfers. Use when connecting to remote servers, executing remote commands, or transferring files via SCP.

1.2K installs

code-review

openhands/extensions

Review code changes for material correctness, security, compatibility, and maintainability risks, grounded in the current repository and acceptance criteria.

codereview-roasted

openhands/extensions

Brutally honest code review in the style of Linus Torvalds, focusing on data structures, simplicity, and pragmatism. Use when you want critical, no-nonsense feedback that prioritizes engineering fundamentals over style preferences.

security

openhands/extensions

Security best practices for secure coding, authentication, authorization, and data protection. Use when developing features that handle sensitive data, user authentication, or require security review.

Security124 installs

docker

openhands/extensions

Run Docker commands within a container environment, including starting the Docker daemon and managing containers. Use when building, running, or managing Docker containers and images.

DevOps & Cloud121 installs

jupyter

openhands/extensions

Open the skill to read its SKILL.md instructions.

108 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.