Agent memory

From FrancoStino/opencode-skills-collection · View interactive version

Agent memory is an AI agent skill from the GitHub repository FrancoStino/opencode-skills-collection. A hybrid memory system that provides persistent, searchable knowledge management for AI agents.

How to use this skill

Skill file

agentMemory Skill

When to Use

Use this skill when you need a hybrid memory system that provides persistent, searchable knowledge management for AI agents.

This skill extends your capabilities by providing a persistent, searchable memory bank that automatically syncs with project documentation.

Prerequisites

```bash

ls -la .agentMemory

```

Setup

  1. Install Dependencies:

```bash

npm install

```

  1. Build the Project:

```bash

npm run compile

```

  1. Start the Memory Server:

You need to run the MCP server to interact with the memory bank.

```bash

npm run start-server <project_id> <absolute_path_to_workspace>

```

Note: This skill typically runs as a background process or via an mcp-server configuration. ensuring it is running is key.

Capabilities (MCP Tools)

Once the server is running, you can use these tools:

`memory_search`

Search for memories by query, type, or tags.

`memory_write`

Record new knowledge or decisions.

`memory_read`

Retrieve specific memory content by key.

`memory_stats`

View analytics on memory usage.

Workflow

  1. Initialization: The first time you run this in a project, it may attempt to import existing markdown memory banks from .kilocode/, .clinerules/, or .roo/.
  2. Development Loop:
  1. Sync: Your writes are automatically synced to standard markdown files in the project.

Example

User request:

Use @agent-memory for this task: A hybrid memory system that provides persistent, searchable knowledge management for AI agents.

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.