Skip to content

fix(agent): load tool_search hits onto the next infer - #1303

Merged
TheGreatAxios merged 3 commits into
mainfrom
fix/tool-search-load-top-two
Oct 3, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
fix/tool-search-load-top-two

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • tool_search loads the ranked hits (default 5, same as Codex) onto the advertised tools[] tail for the next infer. Those cards include compact input schemas.
  • Hits past that cap stay name + description. Calling one of those still promote-on-execute.
  • The frozen core prefix does not move. Fold still drops the tail.

Verification

  • bun test src/agent/tool-search.test.ts src/agent/mcp-promote-on-execute.test.ts src/exec/runner.test.ts src/prompts.test.ts passes
  • pre-commit typecheck and build pass

Search still ranks five cards; only the top two flush onto the advertised
tail so Grok can call them next turn. Remaining hits stay name+description
until execute. Head of tools[] stays frozen.
@TheGreatAxios TheGreatAxios changed the title fix(agent): load top two tool_search hits onto the next infer fix(agent): load tool_search hits onto the next infer Oct 3, 2026
@TheGreatAxios
TheGreatAxios merged commit 1878388 into main Oct 3, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the fix/tool-search-load-top-two branch October 3, 2026 06:22
@linear-code

linear-code Bot commented Oct 3, 2026

Copy link
Copy Markdown

CL-9790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant