hindsight-coding-agent
できること
このスキルは、Hindsightサーバーを使うコーディングエージェントの長期的なプロジェクトメモリがどう動くかを説明します。メモリに何が保存され、どう設定し、動作がおかしいときにどう直すかを知りたい開発者向けです。
使う場面
- ✓後のコーディングセッションのために、Hindsightのプロジェクトメモリに何かを保存したいとき。
- ✓1つのリポジトリのメモリ設定を変えたいとき。たとえば、オフにしたりバンク名を変えたりします。
- ✓プロジェクトメモリが壊れている、またはセッションに表示されないとき。
スキルのリンク
https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/coding-agents/skill/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“APIのバージョン管理について決めたこの内容を、今後のコーディングセッションが覚えられるようHindsightに保存してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
プラグインは、リポジトリごとにメモリバンクを作り、コミットや会話から自動で更新します。エージェントは、セッション中にそのメモリを検索し、追加できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
メモリを作る専用のコマンドはありますか?
いいえ。スキルによると、バンクは初めて開いたときに自動で作られ、バックグラウンドで更新されるため、実行する取り込みのコマンドはありません。
セッションの記録は保存されますか?
スキルによると、セッションの記録は自動でバンクに保存されます。
1つのリポジトリだけ無効にできますか?
はい。リポジトリごとのメモリを無効にする設定が、変更可能な設定として挙げられています。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 58k
- ランキング
- #3261
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
figure
58kエージェントが、GitHubのREADME、プルリクエスト、ブログ記事に使える、アニメーション付きの図を1つのSVGファイルとして描き、処理の流れを示せるよう支援します。
Hindsight Memory
58kエージェントが、組み込みの記憶ツールの代わりに、Hindsightアプリに長期記憶を保存して検索するよう教えます。
hindsight-memory
58kエージェントが、回答の前に関連する過去の文脈を思い出し、分かったことのうち長く役立つ事実を保存して、メモリを推論に使えるよう支援します。
hindsight-recall
58k過去の決定、プロジェクトの文脈、好みを、以前の作業について尋ねられたときに長期記憶から検索できるよう、エージェントを支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。