OpenCode Skill for agentmemory - Persistent Memory for AI Coding Agents
OpenCode Skill for agentmemory - A persistent memory system that makes your AI coding agent remember everything across sessions. No more re-explaining your code, tech stack, or preferences. Built on the original agentmemory project.
What it does:
- Remembers everything across sessions
- No more re-explaining your code/tech stack
- Automatic capture of tool usage, errors, decisions
- Hybrid search (BM25 + Vector + Knowledge Graph)
- 95.2% retrieval accuracy
Credit: Built on the amazing agentmemory by rohitg00 (4400+ stars!)
/recall- Search past memories/remember- Save important insights/session-history- View past sessions/forget- Delete memories- 51 MCP tools
- 12 auto hooks
- Real-time viewer at http://localhost:3113
# 1. Clone & Install
git clone https://github.com/ImranDev3/agentmemory-opencode-skill.git
cd agentmemory-opencode-skill
npm install
npm run build
# 2. Start MCP Server
node dist/standalone.mjs
# 3. Configure OpenCode
# Add to opencode.json:
{
"mcp": {
"agentmemory": {
"type": "local",
"command": ["node", "dist/standalone.mjs"],
"enabled": true
}
}
}| Command | Description |
|---|---|
/recall <query> |
Search memory |
/remember <insight> |
Save to memory |
/session-history |
View past sessions |
/forget <query> |
Delete memory |
- Original Project: rohitg00/agentmemory
- Author: rohitg00
- License: Apache 2.0
Hi! I'm Imran - a passionate developer who loves building tools for AI coding agents.
This skill is my contribution to the OpenCode community, bringing the power of agentmemory to OpenCode users.
Connect with me:
- GitHub: @ImranDev3
Feel free to reach out if you have any questions or suggestions!
If you find this useful, please star the original agentmemory repo!
Made with ❤️ for the OpenCode community