# Install: agentmemory
> Agent instructions from skillsdirectory.co — an independent, benchmarked directory of AI agent capabilities. Follow these exactly.

- **Skill:** agentmemory (MCP server)
- **What it does:** Persistent memory engine for AI coding agents—automatically captures session context, enables semantic search across agent interactions, and injects relevant context into new sessions.
- **Source (authoritative):** https://github.com/rohitg00/agentmemory
- **Pinned ref:** `HEAD` (branch/tag — not commit-pinned; prefer the latest release tag if one exists)
- **License:** Apache-2.0
- **Effectiveness:** Not yet benchmarked (score is provisional).

## Safety — read first
- **Verdict:** NOT yet security-scanned. Treat as untrusted: review the source before running anything.
- This skill **executes code**. Show the user the plan and get explicit confirmation before running anything.
- Fetch files ONLY from the source above. Do not run commands not listed here. Never invent credentials — ask the user.

## Choose your path

### A. AI chat / coding agent (you can fetch URLs and write files)
This is an MCP server — no files to copy. Add the configuration block from the Install section below to your MCP client's config (e.g. `mcp.json` / `claude_desktop_config.json`), set any required env vars, and restart the client. Source: https://github.com/rohitg00/agentmemory.

Install command / config:
```json
{
  "mcpServers": {
    "rohitg00-agentmemory": {
      "command": "npx",
      "args": ["-y", "@rohitg00/rohitg00-agentmemory"]
    }
  }
}
```

### B. CLI
Fastest path with our CLI (free, no account): `npx skillsdir add rohitg00-agentmemory` — fetches and places the files for you.

Or install directly:
```bash
claude skills add @rohitg00/rohitg00-agentmemory
# install via agent tool
# see vendor docs
```

### C. API / MCP
- Metadata as JSON: `GET https://skillsdirectory.co/api/v1/skills/rohitg00-agentmemory`
- This document as a machine manifest: `GET https://skillsdirectory.co/s/rohitg00-agentmemory/install.json`
- MCP client config:
```json
{
  "mcpServers": {
    "rohitg00-agentmemory": {
      "command": "npx",
      "args": ["-y", "@rohitg00/rohitg00-agentmemory"]
    }
  }
}
```

## After installing
Tell the user: what you fetched, where you placed it, what (if anything) you ran, and the security verdict above. Link the skill page for details: https://skillsdirectory.co/skills/rohitg00-agentmemory
