Hindsight Memory

Hindsight Memory is a skill for Claude Code, Codex from vectorize-io/hindsight. It costs 49 tokens per session (568 once invoked), scanned A, original, MIT.

Long-term memory for a coding agent, stored between conversations so it can recall earlier work, decisions, and lasting preferences.

In plain words
What is it for?
Recalling deployment details, design decisions, user preferences, and other durable project facts, then saving new facts for future sessions.
Why use it?
It avoids repeating project context or relying on guesses when a later task depends on past conversations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Recalling deployment details, design decisions, user preferences, and other durable project facts, then saving new facts for future sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vectorize-io/hindsight/hindsight-memory
About the project

vectorize-io/hindsight is an agent memory system that stores experiences and helps AI agents learn over time instead of only recalling conversation history. It is used by developers adding long-term memory to agents, including coding agents. Catalogue add-ons connect agents to Hindsight and its memory workflows.

vectorize-io/hindsight · 64,293 stars · on GitHub · hindsight.vectorize.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vectorize-io/hindsight --skill hindsight-memory
Clone the repo
git clone --depth 1 https://github.com/vectorize-io/hindsight

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Hindsight Memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/vectorize-io/hindsight/hindsight-memory/github.svg)](https://agentmods.dev/skills/vectorize-io/hindsight/hindsight-memory)
Your own site
<a href="https://agentmods.dev/skills/vectorize-io/hindsight/hindsight-memory"><img src="https://agentmods.dev/badge/skills/vectorize-io/hindsight/hindsight-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Hindsight Memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/vectorize-io/hindsight/hindsight-memory"><img src="https://agentmods.dev/badge/skills/vectorize-io/hindsight/hindsight-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00568
Opus 5.5 $0.00020 $0.00227
Sonnet 5.5 $0.00010 $0.00114
Haiku 4.5 $0.00005 $0.00057

Measured 1mo ago against content hash 687acd1a5621, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Hindsight Memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

hindsight-docs/static/skills/openbot/hindsight-memory/SKILL.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hindsight Memory

When the Hindsight app is connected, Hindsight is your one and only long-term memory. It persists across threads, survives context compaction, and is shared with the other agents on the same bank. Do not rely on the thread alone to remember.

Use Hindsight's tools — not the built-in memory

OpenBot also ships built-in memory tools (remember, search_memories, set_memory_inclusion, forget_memory, and a built-in list_memories). Do not use those — they write to a separate, per-agent store that is not shared and is not where the user keeps their memory. For anything memory-related, use the Hindsight MCP tools instead:

To do this Use (Hindsight) Do NOT use (built-in)
Save a fact sync_retain (or retain) remember
Look something up recall search_memories
Reason across memory reflect —

If a tool name is ambiguous (e.g. two list_memories), prefer the Hindsight one that operates on the connected bank. When in doubt, use recall, sync_retain, and reflect — those are Hindsight's.

Workflow

  1. Recall first. Before answering anything about the user, the project, past decisions, or prior work, call recall. Use what it returns; don't guess when memory can tell you.
  2. Save with sync_retain. When the user states a preference, decision, fact, goal, or a result worth keeping, call Hindsight's sync_retain (not remember), so it's stored and immediately recallable. Note the returned memory id to confirm it saved to Hindsight.
  3. Reflect for synthesis questions ("what do you know about X", "how should you approach this").
  4. Don't store secrets, transient chatter, or duplicates — recall first, and correct a wrong memory rather than adding a contradicting one.

Notes

  • Memory lives in the Hindsight bank from the connection's MCP URL; agents on the same bank share it, so give an agent its own bank URL for isolation.
  • Retained facts are re-worded on extraction — recall by meaning, not exact wording.

Read the full file on GitHub · 33 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -32 lines · -25 tokens per session 687acd1a5621
  2. 3mo ago First seen · 65 lines · 74 tokens per session scan A 736dec06d414

Subscribe to this mod's changes

Hindsight Memory is a skill published in the GitHub repository vectorize-io/hindsight (64,293 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 568 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Hindsight Memory compared with skills from other repositories

Hindsight Memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Hindsight Memoryvectorize-io/hindsightSkill64k3d agoMITA49Claude Code, Codex
session-summarieskirodotdev/KiroCrewSkill5.2ktodayApache-2.0A53Claude Code, Codex
semantixGnosil/semantixSkill8154d agoMITA47Claude Code, Codex
search-shared-sessionsAgentWorkforce/relaySkill1.2ktodayApache-2.0A49Codex
memory-audit-belief-duelDataojitori/nocturne_memorySkill1.4k1mo agoMITA38Claude Code
memory-audit-discoverabilityDataojitori/nocturne_memorySkill1.4k1mo agoMITA35Claude Code
memory-audit-node-decompositionDataojitori/nocturne_memorySkill1.4k1mo agoMITA34Claude Code