# Agentmemory

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

- **Type:** Skill
- **Install:** `agentstack add skill-imrandev3-agentmemory-opencode-skill-opencode-skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ImranDev3](https://agentstack.voostack.com/s/imrandev3)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [ImranDev3](https://github.com/ImranDev3)
- **Source:** https://github.com/ImranDev3/agentmemory-opencode-skill/tree/main/opencode-skill

## Install

```sh
agentstack add skill-imrandev3-agentmemory-opencode-skill-opencode-skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

```bash
# 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`:

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

## Commands

### Search Memory
Use `/recall ` or `memory_smart_search` MCP tool to search past observations.

Example: `/recall JWT auth middleware`

### Remember Something
Use `/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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ImranDev3](https://github.com/ImranDev3)
- **Source:** [ImranDev3/agentmemory-opencode-skill](https://github.com/ImranDev3/agentmemory-opencode-skill)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-imrandev3-agentmemory-opencode-skill-opencode-skill
- Seller: https://agentstack.voostack.com/s/imrandev3
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
