coding-agents: option for hindsight_reflect to return the memories its answer is based on
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Use Case
Our coding agents write their own notes to the bank on purpose (through hindsight_ingest_document) and later ask hindsight_reflect about past decisions. We want any synthesized answer to be traceable, word for word, to the notes it came from.
Problem Statement
The plugin's reflect call sends only { query, budget, ...tagFilter } to POST /v1/default/banks/{bank}/reflect and keeps only text from the response:
The hindsight_reflect MCP tool returns that text as is:
So the agent gets a summary with no way to see which memories it was built from. It either trusts it or runs separate recalls and guesses which facts the answer used.
How This Feature Would Help
The agent could check each claim in the answer against the stored notes verbatim, and quote the note itself when it matters.
Proposed Solution
The API already supports it: include: { facts: {} } makes the reflect response carry based_on with memories (each with id, text, type, context, document_id, ...), mental_models and directives (docs, request model).
In the plugin:
- a config option (for example
reflectIncludeSources; off or on by default, your call) that makeshindsight_reflectsendinclude: { facts: {} } - the cited memories listed under the answer: id and document id, plus the text (trimmed to a cap) or a pointer the agent can fetch
The automatic first-prompt hook can keep the current text-only call.
Alternatives Considered
Running a separate recall after reflect and matching facts by hand. It works, but the agent can't tell which of the recalled facts the answer actually relied on. Patching the plugin locally, which we'd rather not maintain.
Priority
Nice to have
Additional Context
We run plugin 0.9.1 against server 1.3.1. #1586 shows based_on can get large on the server's own MCP reflect tool, so a size cap per memory (or ids only, with the text fetched on demand) would make sense here too.
Checklist
- I would be willing to contribute this feature
- Dominant language
- Python
- Stars
- 45.2k
- Forks
- 5.9k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vectorize-io/hindsight
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vectorize-io/hindsight#7254 ·
-
Control Plane shows different calendar dates for the same occurrence in Constellation and TimelineOpencore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vectorize-io/hindsight#7240 · 1 comment ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vectorize-io/hindsight#7233 ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
vectorize-io/hindsight#7231 ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
vectorize-io/hindsight#7228 · 1 comment ·
All issues in vectorize-io/hindsight
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day