hindsight-self-hosted

hindsight-self-hosted is a skill for Claude Code, Codex from vectorize-io/hindsight. It costs 45 tokens per session (1,508 once invoked), scanned D, a copy of hindsight-cloud, MIT.

A skill that stores and recalls project knowledge, conventions, and lessons through a Hindsight server hosted by the team.

In plain words
What is it for?
Saving team guidance and recalling project context before starting new work.
Why use it?
It reduces repeated explanations and helps the coding agent use knowledge captured during earlier tasks.

Skill for Claude CodeCodex

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 · 22,530 stars · on GitHub

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.

agentmods
npx agentmods add skills/vectorize-io/hindsight/hindsight-self-hosted
Any agent
npx skills add vectorize-io/hindsight --skill hindsight-self-hosted
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-self-hosted

README.md
[![agentmods](https://agentmods.dev/badge/skills/vectorize-io/hindsight/hindsight-self-hosted.svg)](https://agentmods.dev/skills/vectorize-io/hindsight/hindsight-self-hosted)
Your own site
<a href="https://agentmods.dev/skills/vectorize-io/hindsight/hindsight-self-hosted"><img src="https://agentmods.dev/badge/skills/vectorize-io/hindsight/hindsight-self-hosted.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,508 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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 $0.00045 $0.01508
Opus 5 $0.00023 $0.00754
Sonnet 5 $0.00009 $0.00302
Haiku 4.5 $0.00005 $0.00151

Measured 5d ago against content hash 580fc89ca3da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

hindsight-self-hosted scanned grade D with 3 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 5d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 ~/.hindsight/config

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://hindsight.vectorize.io/get-cli | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://hindsight.vectorize.io/get-cli | bash
Origin

This is a copy

94% identical to hindsight-cloud — 17 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/hindsight-self-hosted/SKILL.md · 153 lines

How it starts

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

Hindsight Memory Skill (Self-Hosted)

You have persistent memory via a self-hosted Hindsight server. This memory bank can be shared with the team, so knowledge stored here benefits everyone working on this codebase.

Proactively store team knowledge and recall context to provide better assistance.

Setup Check (First-Time Only)

Before using memory commands, verify the Hindsight CLI is configured:

cat ~/.hindsight/config

If the file doesn't exist or is missing credentials, help the user set it up:

  1. Install the CLI (if hindsight command not found):

    curl -fsSL https://hindsight.vectorize.io/get-cli | bash
    
  2. Create the config file - ask the user for:

    • API URL: Their self-hosted Hindsight server URL (e.g., https://hindsight.mycompany.com)
    • API Key: Their authentication key
    mkdir -p ~/.hindsight
    cat > ~/.hindsight/config << 'EOF'
    api_url = "<user's server URL>"
    api_key = "<user's API key>"
    EOF
    chmod 600 ~/.hindsight/config
    
  3. Get the bank ID - ask the user for their bank ID (e.g., team-myproject)

After setup, use the bank ID in all commands below.

How Hindsight Works

When you call retain, Hindsight does not store the string as-is. The server runs an internal pipeline that:

  1. Extracts structured facts from the content using an LLM
  2. Identifies entities (people, tools, concepts) and links related facts
  3. Builds temporal and causal relationships between facts
  4. Generates embeddings for semantic search

This means you should pass rich, full-context content — the server is better at extracting what matters than a pre-summarized string. Your job is to decide when to store, not what to extract.

Commands

Replace <bank-id> with the user's actual bank ID (e.g., team-frontend).

Store a memory

Use memory retain to store what you learn. Pass full context — raw observations, session notes, or detailed descriptions:

Read the full file on GitHub · 153 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. 5d ago First seen · 153 lines · 45 tokens per session scan D 580fc89ca3da

Subscribe to this mod's changes

hindsight-self-hosted is a skill published in the GitHub repository vectorize-io/hindsight (22,530 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 1,508 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). It is 94% identical to hindsight-cloud, differing in 17 lines, and is treated as a copy.

Related

Other skills, from other repositories

nocturnusai-knowledge

Use when working with NocturnusAI facts and rules — asserting (tell), querying (ask/infer), teaching rules (teach), retracting (forget), bulk operations, aggregation, or discovering predicates. Covers the core knowledge base CRUD operations. Triggers on: tell, ask, teach, forget, assert, query, infer, rule, fact…

Auctalis/nocturnusai · 92 tokens

nocturnusai-memory

Use when working with NocturnusAI agent memory — context windows, salience scoring, temporal queries, recall, consolidation, decay, TTL, expiration, event streaming, or memory lifecycle management. Triggers on: memory, context window, salience, temporal, recall, consolidate, decay, TTL, expire, events, NocturnusAI…

Auctalis/nocturnusai · 81 tokens

persistent-notes

Save notes locally to /mnt/workspace/notes.json file. Use when user wants to "save a note" or "remember something".

awslabs/agentcore-samples · 32 tokens

session-summaries

What the chat right-panel session summary shows, what it costs, and how to make a session summarize well. Load when the user asks about the session summary panel, why a summary looks wrong or empty, or how to turn it on.

kirodotdev/KiroCrew · 53 tokens

memory-audit

记忆审计入口。当我主动决定审视记忆质量时,先读此文件判断应使用哪个子技能。.

Dataojitori/nocturne_memory · 31 tokens

memory-audit-discoverability

可发现性审计。当disclosure写法有问题、parent放错、alias缺失、子节点过多时使用。.

Dataojitori/nocturne_memory · 35 tokens