Skip to content

AI MEMORY FOR AGENTS · OPENCODE

Give OpenCode a memory to build on.

We turn the work your agent does into knowledge it can use again. Capture useful activity, bring saved context into later requests, and trace an answer back to the memory behind it.

KNOWLEDGE THAT LASTS

Keep what you learned. Use it in what comes next.

Capture while you work

We turn observed prompts and tool activity into structured memories through your configured worker. Keep the discoveries and decisions that make the next session useful.

Pick up with saved context

Our native plugin brings saved context into later requests. Context follows your checkout and source settings, so your agent has a starting point beyond the current conversation.

Find the reason behind a decision

Search the memory index, inspect the surrounding timeline, then read the selected details. Follow the evidence behind an answer instead of relying on a summary alone.

ILLUSTRATIVE WORKFLOW

The decision survives the session.

You chose a sign-in approach yesterday. Today, ask OpenCode why. We give it a path from a remembered decision to the details behind it.

  1. 01 · Find

    Search the memory index

    claude_mem_search

    Find candidate memories about the sign-in decision.

  2. 02 · Understand

    Inspect the timeline

    claude_mem_timeline

    See the surrounding work before choosing what to read.

  3. 03 · Read

    Retrieve selected details

    claude_mem_get_observations

    Read the relevant records and check their IDs.

A workflow example, not a measured benchmark or a guarantee of a particular answer.

START WITH ONE PROJECT

Install. Verify a memory. Keep building.

Use your project’s terminal and complete the installer’s observation-provider setup. You need the installed worker and its runtime for capture and recall.

npx claude-mem install --ide opencode
  1. Read the installer result. It installs the native plugin and configures the supported connection. A partial-install warning needs attention before you continue.
  2. Check readiness with npx claude-mem doctor. If the worker is stopped, run npx claude-mem start. Restart OpenCode to load the plugin.
  3. Ask OpenCode to make a harmless change in a disposable project using a distinctive fact. Confirm the resulting observation in the work viewer and wait for processing.
  4. Start a new session. Ask for the saved fact using search, timeline and selected details. Compare the returned record with the original work; a loaded plugin alone does not establish successful recall.

AI memory in production

70 days of work. One searchable memory.

Alessandro used our open-source engine across three machines for 70 days. His customized deployment captured the decisions, fixes and discoveries behind the work—and published the data.

Observations captured
22,718
Bug fixes recorded
1,262
Decisions recorded
757

See how he made that knowledge searchable. Then give your own agents a memory to build on.

Claude-Mem’s mascot files a note in a shared card catalogue connected to three computers.
Alessandro’s published field study · March–May 2026

TAKE YOUR KNOWLEDGE FURTHER

Your local memory is the beginning.

Add CMEM Pro when you want Cloud Sync and supported access from other places. Keep the useful knowledge your agents build available for the next conversation.

Before you connect

Do I need Pro for local memory?

The native plugin connects to your local Claude-Mem worker. CMEM Pro is the optional path for Cloud Sync and supported remote access. Your observation provider has its own requirements and may use credits. Installing the plugin does not make paid inference free.

What does the native plugin capture?

It connects supported OpenCode prompt and tool events to the worker, and records summaries around session completion. Capture depends on the events the host supplies and a working observer setup. It is not a promise to record every file or every conversation.

Will every agent’s memory appear automatically?

Injected context follows the checkout and platform-source settings. Including other sources is an explicit setting. Search and selected-record retrieval are separate operations; do not treat the context filter as an access-control boundary.

Which OpenCode version should I use?

Our platform guide documents OpenCode 1.3.4 or later. The published Claude-Mem 16.0.1 plugin loaded and exposed its three recall tools in OpenCode 1.19.6 during our November 19, 2026 check. That check establishes tool discovery, not complete capture-and-recall acceptance for every version.

What if the connection loads but recall fails?

Confirm the worker is ready, a known memory exists, and your observation provider is configured. Then test search, timeline and selected details independently. A timeout is not proof that no memory exists.

Can I connect through remote MCP instead?

OpenCode supports remote MCP and OAuth. That is a separate setup from native capture. Use CMEM Connect for your account’s supported cloud connection and follow OpenCode’s version-specific MCP instructions. Adding a remote server alone does not install the native observer.

Follow the source

Source reviewed November 19, 2026. Package loading and tool discovery were checked separately from worker capture and recall.

Make the next session start with what you learned.

Give your agent lasting knowledge and a way to find the evidence behind it.