Record recall plugin

Indexes past issues, plans and ADRs and surfaces the relevant ones automatically with each request.

#Claude Code#hooks#issues#ADR#full-text search
Recall kit for issues, plans and ADRs

WorkflowRecall kit for issues, plans and ADRs

Records & memory Claude Code plugin

A plugin that indexes GitHub issues, architecture decision records (ADRs) and plan documents locally, and tells Claude about related past records each time you send a request. It reminds, never blocks. You can also search on demand with /recall.

Challenge

  • Issues and plans get written, then forgotten, and the same topic is started from scratch somewhere else
  • Once there are many repositories, no one can remember which record lives where

Approach

  • Issues, ADRs and plans from every repository go into one local full-text index, refreshed in the background at session start when it is stale
  • Just before each request is sent, a hook searches the index and attaches at most three strongly related records: title, status, date and link only

Outcome

  • Claude first says "there is an earlier record of this" and then gets on with the work, so duplicate issues and plans are caught early
  • In tests with real and unrelated prompts, every related record was found with no false reminders, and the delay is too short to notice

The author writes issues, plans and decision records across many repositories, and then forgets them. Again and again, the same problem was investigated afresh in another session.

So the records were gathered into a local index, and every request now tells Claude about related ones. It is not a gate that stops decisions; it is a helper at your side saying "you wrote about this before".

The full workflow

TaskWhoInputsOutputs
1. Draft designMain session—Design draft
2. ReviewReviewerCodexDesign draftReview
3. Test-firstMain sessionReviewPlugin code
4. EvaluateEval scripteval_prompts.pyPlugin codeEval result
5. Set sourcesAuthorauthorEval resultSource config
6. Refresh indexStart hook + Indexerrefresh_bg.py + recall_coreSource configLocal index
7. Find relatedPrompt hookrecall_hook.pyPrompt, Local indexReminder
8. Mention + workRecall MCPrecallReminderWork + reply, Candidates
Recall kit for issues, plans and ADRs

8 steps · 2 roles · 5 tools · 2 loops · built in one day, 2026-10-21 · 13 tests

Have another model review the design, prove it with tests and real prompts, install it, and from then on quietly mention related records before every request.

  • Steps 1–4 build it; steps 5–8 use it. On the use side, the only manual step is setting the sources
  • The use side is three parts inside the plugin: a session-start hook, a prompt hook and a search MCP
  • It reminds, never blocks: similar is not the same as duplicate, and unattended tasks must never get stuck
  • Record bodies are never passed on, only title, status, date and link, so Claude cannot act on instructions hidden in them

Project folders involved (5)

This workflow does not live in one folder: it runs across projects.

recall-kit (plugin repo)
The core: two hooks, the search MCP, the skill, tests and the evaluation
(private) course-library folder
The project folder holding the design drafts and the other model's review
~/.claude/recall
The local index, source config and per-session shown list, kept out of any repository
~/.claude/adr
The decision-record index; recall only reads from it and never creates its own records
GitHub repositories
Issues from each repository, indexed only if the config does not mark it private
Draft design

Step 1 · Main session

Draft designdesign doc

Turn "written and forgotten" into a design draft.

  • It started from the author's complaint: issues get written, then forgotten, or never known about at all
  • The plan: gather issues, plans and decision records (ADRs) into one local index
  • The draft was written together with two other mechanisms being designed that same day
OutputsDesign draft
Review

Step 2 · Reviewer

Reviewdesign review

Have another model review it, and fold the findings into version 2.

  • Codex, at a high reasoning setting, reviewed it and listed 16 must-fix items
  • The big change for this part: never block. The first draft stopped duplicates from being created
  • Keeping bodies out and leaving private repositories unindexed were also settled in review

Claude CodeThe external model is called as a reviewer rather than as an agent; the figure draws it as a role

InputsDesign draft
OutputsReview
Test-first

Step 3 · Main session

Test-firstunittest

Write the tests first and build with the standard library only.

  • 13 tests, using fake issues and a temporary data folder so the real index is never touched
  • The hook is run as a separate process, and the MCP is tested with real round trips
  • A test guarantees that a marker word planted in a private repository never shows up in search
InputsReview
OutputsPlugin code
Evaluate

Step 4 · Eval script

Evaluateeval_prompts

Count hits and false alarms on real and unrelated prompts.

  • 10 real and 8 unrelated prompts: all 18 were judged correctly
  • The added delay before sending is 47 ms at the median and 56 ms at the 95th percentile, too short to notice
  • For each repository, the indexed count was checked against the GitHub issue list
InputsPlugin code
OutputsEval result
Set sources

Step 5 · Author

Set sourcesrepos.json

Write in one config file which repositories and documents to read.

  • Per repository: its folder, where plans live, what to exclude, and whether it is private
  • Adding a repository is one line; there is no hook to copy around
  • Repositories that only hold old history are marked as such and rank lower
InputsEval result
OutputsSource config
Refresh index

Step 6 · Start hook + Indexer

Refresh indexSessionStart

At session start, refresh the index in the background if it is stale.

  • If the index is more than six hours old, a detached process refreshes it, so start-up never waits
  • Only issues changed since last time are fetched, and deleted ones are removed from the index
  • No scheduler is involved; it runs only when Claude Code opens
InputsSource config
OutputsLocal index
Find related

Step 7 · Prompt hook

Find relatedUserPromptSubmit

Just before a prompt is sent, search the index and attach up to three strongly related records.

  • It only reads local SQLite, so it is fast and never touches the network
  • A record is shown at most once per session; closed and old records rank lower
  • If it fails, the prompt goes through untouched and the failure is only counted
InputsPrompt, Local index
OutputsReminder
Mention + work

Step 8 · Recall MCP

Mention + workreply rule

First say in one line that an earlier record exists, then do the requested work.

  • Only a real need to merge, close or change scope is discussed; there is no interruption every turn
  • Before opening an issue or writing a plan, Claude searches itself and lets the author pick from the candidates
  • An on-demand search uses a lower threshold for wider recall, weighted toward the current repository

Claude CodeThe hook raises the reminder, the skill's rules shape how it is said, and on-demand search goes through the MCP

InputsReminder
OutputsWork + reply, Candidates

Loops and rework

  • Must-fix items in review → step 1: Version 1 drew 16 findings; blocking was replaced by reminding in version 2
  • The work created new records → step 6: After opening an issue or writing a plan, the index is refreshed on the spot so the next reminder can include it

Key points

Remind, never block. Similar is not the same as duplicate, so creating a new issue is never prevented. So that unattended tasks are never stuck, a failing hook lets the request through silently and just counts the failure.

Bodies stay out. Only title, status, date and link are injected. Anyone can write an issue body, so this keeps Claude from acting on instructions hidden there. Repositories marked private are never indexed.

Each record once per session. A record is not repeated within the same session, and closed or old records rank lower. When you want to look yourself, /recall runs a wider search with a lower threshold.