agentleFS
ImranDev3ImranDev3/agentmemory-opencode-skill/opencode-skill/SKILL.md

agentmemory

Skill1 starsChanged 8 months agoApache-2.0View on GitHub

Persistent memory for AI coding agents - remembers everything across sessions so you don't have to re-explain

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. webzler/agentMemory★ 32same name
    2. PanPanFR/oh-my-openkilo★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add this to your opencode.json:

    line 24
  2. Very specific:

    Use /recall <query> or memory_smart_search MCP tool to search past observations.

    line 44
  3. Very specific:

    Use /remember <what to remember> or memory_save MCP tool to save insights.

    line 49
  4. Very specific:

    Use /session-history to see recent session summaries.

    line 54
  5. Very specific:

    Use /forget to delete observations or sessions.

    line 57
  6. Distinctive:

    If MCP tools aren't available:

    line 83
  7. Distinctive:

    Check OpenCode config has correct MCP entry

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AgentMemory - Persistent Memory for AI Coding Agents

agentmemory silently captures what your agent does, compresses it into searchable memory, and injects the right context when the next session starts.

Quick Start

# Terminal 1: Start the memory server
npx @agentmemory/agentmemory

# Terminal 2: Add to OpenCode
# Edit opencode.json and add the MCP config

Configuration for OpenCode

Add this to your opencode.json:

{
  "mcp": {
    "agentmemory": {
      "type": "local",
      "command": ["npx", "-y", "@agentmemory/mcp"],
      "enabled": true,
      "env": {
        "AGENTMEMORY_URL": "http://localhost:3111"
      }
    }
  }
}

Commands

Search Memory

Use /recall <query> or memory_smart_search MCP tool to search past observations.

Example: /recall JWT auth middleware

Remember Something

Use /remember <what to remember> or memory_save MCP tool to save insights.

Example: /remember Use jose package instead of jsonwebtoken for Edge compatibility

Session History

Use /session-history to see recent session summaries.

Forget

Use /forget to delete observations or sessions.

What Gets Captured

The system automatically captures:

  • User prompts
  • Tool usage (file edits, tests, commands)
  • Error contexts
  • Session summaries
  • Sub-agent lifecycle

Key MCP Tools

  • memory_smart_search - Hybrid semantic + keyword search
  • memory_save - Save an insight, decision, or pattern
  • memory_recall - Search past observations
  • memory_sessions - List recent sessions
  • memory_profile - Project profile (concepts, files, patterns)
  • memory_file_history - Past observations about specific files

Viewer

Open http://localhost:3113 to watch memory build live with session replay, knowledge graph, and health dashboard.

Troubleshooting

If MCP tools aren't available:

  1. Confirm agentmemory server is running (npx @agentmemory/agentmemory)
  2. Check OpenCode config has correct MCP entry
  3. Restart OpenCode after config changes

For more info: https://github.com/rohitg00/agentmemory

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.