Aller au contenu
Skillpedia
Agents58k · #3261

hindsight-coding-agent

Ce qu’il fait

Cette compétence explique le fonctionnement de la mémoire de projet à long terme d'un agent de code, grâce à un serveur Hindsight. Elle s'adresse aux développeurs qui veulent savoir ce que la mémoire conserve, comment la configurer et comment la réparer si elle se comporte mal.

Quand l’utiliser

  • ✓Quand vous voulez enregistrer quelque chose dans la mémoire de projet Hindsight pour les sessions de code futures.
  • ✓Quand vous voulez modifier les réglages de mémoire d'un seul dépôt, par exemple la désactiver ou renommer sa banque.
  • ✓Quand la mémoire de projet semble défaillante ou n'apparaît pas dans une session.

Lien du skill

https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/coding-agents/skill/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/vectorize-io/hindsight/blob/main/hindsight-integrations/coding-agents/skill/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je veux enregistrer dans Hindsight cette décision sur le versionnage de notre API, pour que les prochaines sessions de code s'en souviennent.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le plugin construit une banque de mémoire pour chaque dépôt et la met à jour en continu à partir des commits et des conversations. L'agent peut chercher dans cette mémoire et y ajouter des éléments pendant une session.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

<!-- GENERATED from README.md (its skill:begin regions) + skill-src/preamble.md. Edit those, then run: npm run skill:build -->

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. autoInject switches the source: pages (knowledge page search hits), recall (recalled observations), or none (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_initiative again with relates_to_page_id set 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

Questions fréquentes

Existe-t-il une commande pour construire la mémoire ?

Non. La compétence indique que la banque se construit d'elle-même à la première ouverture et se met à jour en arrière-plan, sans commande d'ingestion à lancer.

Les transcriptions de session sont-elles enregistrées ?

La compétence indique que les transcriptions de session sont enregistrées automatiquement dans la banque.

Puis-je la désactiver pour un seul dépôt ?

Oui. La compétence cite la désactivation de la mémoire par dépôt comme un réglage que vous pouvez modifier.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
58k
Position au classement
#3261
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires