Stop Re-Teaching Agents

The unified agent memory layer.

Segment agent memory by lifecycle: session context, semantic truths, episodic logs, and procedural workflows. Recall what matters and generate native configs for every tool.

$pnpm add -g @memories.sh/cli
memories.sh - One layer for memories, skills, and rules across any agent | Product Hunt
Live StateLocal
Ask your agent to pick up where you left off...
“Continue the auth refactor with the same error-handling rules.”
Recent Context
Use Tailwind for all UI componentsSemantic
Checkpoint saved before auto compactionEpisodic
Release checklist skill promoted after successful runsProcedural
Segment, recall, and generate in one flow
Works with
Claude Code
Cursor
v0
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
Blackbox CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Claude Code
Cursor
v0
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
Blackbox CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Claude Code
Cursor
v0
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
Blackbox CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Memory Segmentation

One memory system. Four distinct lanes.

This is the core model behind memories.sh. Session, semantic, episodic, and procedural memory are stored separately so agents keep continuity without blending durable truths with transient chat history.

Session

Active working context for the current task.

Stored: Session events, checkpoints, boundary snapshots.

Recall: Used first for continuity in ongoing work.

Semantic

Durable truths and stable project knowledge.

Stored: Rules, facts, decisions, `memory.md` in OpenClaw mode.

Recall: Always-on grounding for consistent behavior.

Episodic

Timeline fidelity for what happened and when.

Stored: Daily logs + raw session snapshots.

Recall: Chronology and context history on demand.

Procedural

Repeatable workflow memory and runbooks.

Stored: Skill-like workflows and promotion signals.

Recall: Prioritized when intent matches a workflow.

Compaction Triggers

Count Trigger

Near token/turn budget boundaries

Time Trigger

Session inactivity compaction windows

Event Trigger

Reset, handoff, or task-complete boundaries

Core Features

Built for segmented memory

Lifecycle-aware memory for real agent work: session continuity, compaction safety, and long-term retrieval that stays coherent.

Segmented Memory Architecture

Separate session working context from long-term semantic, episodic, and procedural memory so agents stop mixing timelines with durable truths.

4 memory lanes
Learn More →

Compaction-Safe Checkpoints

Write checkpoints and snapshots before context boundaries so important state survives reset, inactivity, and token pressure.

Boundary-safe
Learn More →

Session + Long-Term Recall

Recall merges always-on rules with relevant session and long-term memories, so answers stay consistent across long tasks.

Layered context
Learn More →

Tool-Native Output

Generate native configs for Cursor, Claude Code, Copilot, Windsurf, Cline, Roo, Gemini, and more.

One command
Learn More →

Deterministic OpenClaw File Mode

Run bootstrap, flush, and snapshot against memory.md, daily logs, and raw snapshots for git-friendly lifecycle continuity.

bootstrap/flush/snapshot
Learn More →

Portable State

Export everything to JSON or YAML anytime. Switch tools or leave entirely. Your data is yours.

No lock-in
Learn More →
TypeScript SDK

Cloud-native memory for AI apps and dev teams.

The SDK connects your AI apps to memories.sh cloud—giving every prompt the right rules and context. memoriesMiddleware() is all it takes.

Start in Dashboard → AI SDK Projects to create your API key and project isolation (`tenantId`). Then add middleware and ship. The CLI and MCP handle local-first storage and agent access, while the SDK handles your app runtime.

Read the SDK docs
Integrations

Works With Your Tools

One memory store, every coding agent. Generate native config files for each tool so your context follows you—no copy-paste, no manual sync.

Available
Claude Code

Claude Code

Generates CLAUDE.md, path-scoped rules, skills, and settings.

View Docs
Available
Cursor

Cursor

Generates .cursor/rules/ with globs frontmatter and skills.

View Docs
Available
v0

v0

Vercel's AI frontend builder. Connects to memories.sh through MCP for live context.

View Docs
Available
GitHub Copilot

GitHub Copilot

Generates .github/copilot-instructions.md.

View Docs
Available
Windsurf

Windsurf

Generates .windsurf/rules/memories.md.

View Docs
Available
Gemini

Gemini

Generates GEMINI.md for Google's coding agent.

View Docs
Available
Cline

Cline

Generates .clinerules for the Cline VS Code extension.

View Docs
Available
Roo

Roo

Generates .roo/rules/ for the Roo Code agent.

View Docs
Available
OpenCode

OpenCode

Generates AGENTS.md for the OpenCode terminal agent.

View Docs
Available
Blackbox CLI

Blackbox CLI

Connects to memories.sh through MCP for live context and memory writes.

View Docs
Available
Codex

Codex

Generates AGENTS.md for the OpenAI Codex CLI agent.

View Docs
Available
Amp

Amp

Generates .amp/rules/ for the Amp coding agent.

View Docs
Available
Kilo

Kilo

Generates config for the Kilo coding assistant.

View Docs
Available
Trae

Trae

Generates rules for the Trae coding agent.

View Docs
Available
Goose

Goose

Generates .goose/rules/ for the Goose agent by Block.

View Docs
Available
OpenClaw

OpenClaw

Open-source personal AI assistant with persistent memory and skill plugins.

View Docs
Available
Antigravity

Antigravity

Google's agent-first IDE powered by Gemini.

View Docs
Available
Kiro

Kiro

AWS's agentic AI IDE with CLI and autonomous agents.

View Docs
Available
Droid

Droid

Factory AI's terminal coding agent for end-to-end dev workflows.

View Docs
Available
Any MCP Client

Any MCP Client

9 tools at full CLI parity with FTS5 search. For bolt.new, Lovable, and any MCP client.

View Docs