Skip to content

fix(memory): Hide memory write tools in child agent runs - #2145

Merged
dcramer merged 1 commit into
mainfrom
fix/memory-child-read-only-tools
Oct 15, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/memory-child-read-only-tools

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Child agent runs (agent_invocation Source) now get only listMemories and searchMemories. They no longer get createMemory or archiveMemory. Only the main agent writes memory. Children read memory and can suggest memories in their result. Recall (userPrompt) still runs for children, and passive extraction already skips them.

Addresses the "Hide createMemory and archiveMemory in child runs" item in #2105.

Note for #1889: that PR moves packages/junior-memory/src/plugin.ts to packages/junior/src/chat/memory/feature.ts and moves packages/junior-memory/tests/storage.test.ts into packages/junior/tests/component/memory/. Whichever PR lands second will need to carry the agent_invocation check in the tools hook and the new test over to the new paths.

via David Cramer.

--

View Junior Session [Sentry]

Child agent runs (agent_invocation Source) now get only listMemories and
searchMemories. Only the main agent writes memory.

Refs #2105

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 15, 2026 5:33am UTC

Request Review

@dcramer
dcramer merged commit b22e1b1 into main Oct 15, 2026
48 checks passed
@dcramer
dcramer deleted the fix/memory-child-read-only-tools branch October 15, 2026 05:38

This branch was successfully deployed

1 active deployment
Preview – junior-docs — fbcdd714 Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant