hindsight-coding-agent
What it does
This skill explains how a coding agent's long-term project memory works, using a Hindsight server. It is for developers who want to know what the memory stores, how it is set up, and how to fix it when it misbehaves.
When to use it
- βWhen you want to save something to project memory in Hindsight for later coding sessions.
- βWhen you want to change the memory settings for one repository, such as turning it off or renaming its bank.
- βWhen project memory seems broken or is not showing up in a session.
Skill link
https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/coding-agents/skill/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to store this decision about our API versioning in Hindsight so future coding sessions remember it.β
5 new skills a week. 1 minute to read.
How it works
The plugin builds a memory bank for each repository and keeps it updated from commits and conversations. The agent can search that memory and add to it during a session.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Hindsight Coding-Agent Memory
This machine runs the hindsight-coding-agents plugin: long-term project memory for coding
sessions, backed by a Hindsight server. You (the agent) are already wired into it β this skill
explains what happens automatically, which tools you have, and how to configure or debug it.
What happens automatically (no action needed)
- Per-repo memory bank: each repository resolves to a bank (shown in the session banner:
β³ memory bank βcoding-agent::<repo>β). Worktrees share the main repo's bank. - Ingestion builds itself: on first open, the bank is seeded from recent commit messages and a read-only codebase survey; every session start, a background engine tops it up (new commits, new conversations) and keeps 5 knowledge pages current. There is NO ingest command to run.
- Session synthesis: by default, the first prompt of a session triggers one deep memory
synthesis (
reflect) injected into context.autoInjectswitches the source:pages(knowledge page search hits),recall(recalled observations), ornone(nothing injected; the agent searches the knowledge pages first and reflects only when they are too shallow). - Write-back: the session transcript is retained into the bank automatically at session end (per-turn on opencode). The user never needs to "save" a conversation.
Storing things deliberately
When the user says "store this in hindsight" / "remember this":
- The current conversation is captured automatically at session end β say so; no tool needed.
- An external document, notes, or durable findings β
hindsight_ingest_document(title, content). - A new feature/initiative being started β
hindsight_capture_initiative(title, summary), right after the plan is agreed and before code is written. - A plan that materially changed (goal, scope, or rationale β including mid-implementation) β
call
hindsight_capture_initiativeagain withrelates_to_page_idset to that initiative's page id, summarising the current intent. Same page, updated plan β never a second page. Trivial course-corrections don't count.
Retrieving
hindsight_search_knowledge_pages(query)β FIRST STOP for project questions (components, conventions, past decisions, initiatives). Server-side hybrid search, fast.hindsight_read_knowledge_page(page_id)/hindsight_list_knowledge_pagesβ read pages fully.hindsight_reflect(query)β deep reasoning over the whole memory for WHY questions and exact decided values; slower (seconds), use deliberately.- Credit visibly whenever memory informs an answer: start that part with
π§ From Hindsight memory (<page>): β¦β and never credit memory that didn't contribute.
Correcting wrong or stale memory
If you verify that something Hindsight served is wrong or outdated (the code, git, or an external
source contradicts it), FIX THE RECORD β don't just ignore it. Call
hindsight_ingest_document with:
- title:
Correction: <topic>(e.g.Correction: retry policy 4xx set) - content: (1) what memory claimed, (2) what is verifiably true now, (3) the evidence you checked (file/commit/output). Quote exact values verbatim.
Newer facts supersede older ones in retrieval, so one clear correction permanently outranks the stale memory. Do this whenever you catch a wrong injected memory, a stale knowledge-page claim, or an outdated decision β silent disregard leaves the trap armed for the next session.
Install / update
npx @vectorize-io/hindsight-coding-agents install all # every detected agent, wired natively
npx @vectorize-io/hindsight-coding-agents install claude-code # or just one
npx @vectorize-io/hindsight-coding-agents uninstall all # removes exactly what install added
npx @vectorize-io/hindsight-coding-agents update # refresh the runtime only, no rewiring
npx @vectorize-io/hindsight-coding-agents stats # how often each agent uses Hindsight
install takes an explicit target β all, or one or more harness names. A bare
npx @vectorize-io/hindsight-coding-agents install changes nothing and prints the choice, so wiring every agent on
the machine is never something that happens by accident. Updating is the same install
command again β it re-copies the runtime in place.
Day to day you
FAQ
Is there a command to build the memory?
No. The skill says the bank builds itself on first open and updates in the background, so there is no ingest command to run.
Are session transcripts saved?
The skill says session transcripts are saved into the bank automatically.
Can I turn it off for one repository?
Yes. The skill lists disabling per-repo memory as a setting you can change.
Details
Original description by the author
How this machine's Hindsight coding-agent memory works β the plugin behind the π§ banner. Use when the user says "store/remember this in hindsight", asks what the memory/knowledge pages are, wants to configure per-repo memory (disable, rename banks, git depth), or something memory-related looks broken.
repo: vectorize-io/hindsight
Popularity
- GitHub stars
- 58k
- Ranking position
- #3261
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
figure
58kHelps your agent draw an animated diagram as one SVG file for a GitHub README, pull request, or blog post, showing how a process flows.
Hindsight Memory
58kTeaches your agent to save and look up long-term memory in the Hindsight app, instead of using its built-in memory tools.
hindsight-memory
58kLets your agent recall relevant past context before answering, save durable facts as it learns them, and reason over its memory.
hindsight-recall
58kHelps your agent search long-term memory for past decisions, project context, and preferences when you ask about earlier work.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.