Index of every page on this site: llms.txt
All skills
Run it yourself

Persistent memory for cluster agents. Use when the user wants the agent to remember something across sessions (watchlists, positions, research findings, preferences), recall what was stored before, or set up a dedicated memory backend (Hindsight for learning-over-time memory with observations and mental models). Covers the built-in cluster memory API (retain/recall, deduped, recency-scored, per-wallet banks) and the Hindsight integration for production-grade memory.

  • 1 file
  • 4.6 KB
  • MIT
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/clusteragent/cluster/memory

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈120 tokens for metadata: the name and description. ≈1k when used: this file.

Description uses 6.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈479 characters, or 6.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Cluster Memory

Two tiers:

  1. Built-in memory — zero-setup, part of every cluster deployment. Notes are deduped (identical content skipped), scored by recency decay, and stored per wallet/bank. Backs the memory_retain / memory_recall MCP tools.
  2. Hindsight backend — production memory that learns: observations, mental models, knowledge pages. Self-hosted via Docker, or Hindsight Cloud.

Built-in Memory (default)

Retain

curl -X POST "https://clusteragent.dev/api/memory/retain" \
  -H "Content-Type: application/json" \
  -d '{
    "bank_id": "0xUSER_WALLET",
    "content": "User watches semiconductors; largest position NVDA, entry ~$210",
    "title": "Portfolio focus",
    "tags": ["portfolio", "semis"],
    "session_token": "…"
  }'
  • content max 4000 chars — a memory is a fact, not a document
  • Duplicate content (normalized) is skipped unless force: true
  • bank_id is the wallet address by default — memories are per-wallet private (wallet-scoped auth required)

Recall

curl -X POST "https://clusteragent.dev/api/memory/recall" \
  -H "Content-Type: application/json" \
  -d '{"bank_id":"0xUSER_WALLET","query":"what does the user hold?","limit":10}'

Results are scored by recency decay — newest relevant facts win. Use recall before acting on portfolio or preference questions; never ask the user for something they already told the agent.

What to store (and what not)

Store: watchlists, position notes, risk preferences, research conclusions, key decisions ("user prefers limit orders"), recurring instructions.

Do not store: raw market snapshots (re-fetch — they rot), secrets (keys never belong in memory), anything the user asked to forget — delete the bank instead.

Hindsight Backend (learning memory)

Cluster's memory layer is pluggable — set MEMORY_BACKEND=hindsight on the server and point it at a Hindsight instance. Hindsight does not just recall conversation; it extracts observations and compiles them into mental models so agents get smarter over time. LongMemEval SOTA benchmark holder.

Start a server

docker run -it --pull always --name hindsight --restart unless-stopped \
  -p 8888:8888 -p 9999:9999 \
  -e HINDSIGHT_API_LLM_PROVIDER=openai \
  -e HINDSIGHT_API_LLM_API_KEY=$OPENAI_API_KEY \
  -v hindsight-data:/home/hindsight/.pg0 \
  ghcr.io/vectorize-io/hindsight:latest

API on :8888, UI on :9999. Works with 25+ LLM providers (OpenAI, Anthropic, Gemini, DeepSeek, Ollama/local, [OI]-compatible endpoints, and subscription-backed providers like openai-codex / claude-code / github-copilot — no API key needed for those).

Bare metal: pip install hindsight-api. Managed: Hindsight Cloud (https://api.hindsight.vectorize.io).

Wire cluster to it

# in the cluster backend .env
MEMORY_BACKEND=hindsight
HINDSIGHT_URL=http://localhost:8888
HINDSIGHT_TENANT=cluster

With this set, /api/memory/retain and /api/memory/recall transparently route through Hindsight — same tools, smarter memory. Without it, the SQLite fallback runs (zero external services, fine for a single-process self-host).

Direct Hindsight usage (agents)

pip install hindsight-client
from hindsight_client import Hindsight

memory = Hindsight(base_url="http://localhost:8888")

memory.retain(bank_id="0xUSER", items=[
    {"content": "User sold half the PONS position after the +20% run"},
])

results = memory.recall(bank_id="0xUSER", query="PONS position history")

MCP

Hindsight ships its own MCP server — run it alongside cluster's for native memory tools in any MCP runtime:

{ "mcpServers": { "hindsight": {
    "command": "npx", "args": ["-y", "@vectorize-io/hindsight-mcp"],
    "env": { "HINDSIGHT_BASE_URL": "http://localhost:8888" }
}}}

Choosing

Need Use
Quick facts, single-process self-host, zero deps Built-in (SQLite)
Agent should learn (observations, mental models), production, multi-agent Hindsight

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at be307d1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago
What it can do
Reads files Edits files Runs commands
metadata
{
  "author": "clusteragent",
  "version": "1.0.0"
}
All 6 allowed tools
ReadWriteEditBash(curl:*)Bash(docker:*)Bash(pip:*)

README badge

README badge for clusteragent/cluster/memory