Skip to content

fix(coding-agents): memory injection on long prompts, empty first recalls, dsh repeats and Grok Build - #5514

Merged
nicoloboschi merged 2 commits into
mainfrom
fix/coding-agents-injection
Oct 12, 2026
Merged

nicoloboschi merged 2 commits into
mainfrom
fix/coding-agents-injection

Conversation

@nicoloboschi

Copy link
Copy Markdown
Collaborator

Fixes several ways memory failed to reach the agent in hindsight-integrations/coding-agents.

Not changed:

Each fix has a regression test that fails without the change.

…rst recalls, dsh and Grok Build

- recall: bound the query to fit the server's 500-token cap (#5476)
- auto-inject: an empty pages/recall result retries on a later prompt, up to 5 (#5082)
- dsh: skip re-injecting a block identical to the one already in the session (#5026)
- usage.jsonl is recorded with retainSessions off (#5391)
- grok-build: deliver SessionStart/prompt context through a PostToolUse hook (#5467)
@nicoloboschi
nicoloboschi force-pushed the fix/coding-agents-injection branch from 861e451 to a31f0b3 Compare October 12, 2026 09:17
@nicoloboschi
nicoloboschi merged commit 87a9d03 into main Oct 12, 2026
99 checks passed
@nicoloboschi
nicoloboschi deleted the fix/coding-agents-injection branch October 12, 2026 09:22
chris-yyau added a commit to chris-yyau/busdriver that referenced this pull request Oct 14, 2026
…Claude Mem summary (#963)

* fix(dispatch-cli): fetch grok Hindsight pages from a stashing 0.8.1 hook

Hindsight coding-agents 0.8.1 (vectorize-io/hindsight#5514) no longer prints
grok's prompt context: it stashes it and hands it out on the next PostToolUse.
The prefetch read only the prompt hook's stdout, so every dispatched grok
review silently ran without Hindsight pages.

When the prompt call returns no context, the prefetch now sends a PostToolUse
event with the same session id and takes the context from that reply. TMPDIR
points at the prefetch's own temp dir, so the stash files are removed with it
instead of piling up in /tmp. The 0.8.0 direct-output shape still works.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(dispatch): skip the Claude Mem summary for read-only CLIs too

Claude Mem 13.38 added CLAUDE_MEM_DISABLE_SUMMARY=1 (thedotmack/claude-mem#4736,
for #4734). Read-only dispatches, both review launchers and the litmus Opus
backstop already drop per-tool observations; they now also end without a
session summary, so a review writes nothing to Claude Mem while its
session-start context still loads. --mode auto is untouched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chris-yyau pushed a commit to chris-yyau/busdriver that referenced this pull request Oct 14, 2026
## [2.9.3](v2.9.2...v2.9.3) (2026-10-14)

### Bug Fixes

* **dispatch:** restore grok Hindsight pages after 0.8.1 and skip the Claude Mem summary ([#963](#963)) ([bedbf08](bedbf08)), closes [vectorize-io/hindsight#5514](vectorize-io/hindsight#5514) [thedotmack/claude-mem#4736](thedotmack/claude-mem#4736) [#4734](https://github.com/chris-yyau/busdriver/issues/4734)
@nicoloboschi nicoloboschi mentioned this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment