Skip to content

Commit 0f6f4b8

Browse files
committed
feat(codeact): keep the whole search family resident
search_nodes, run_search, google_news, google_images, asset_search, grep, and glob join web_search in CODEACT_RESIDENT_TOOL_NAMES — every discovery entry point stays fully documented in the prompt instead of sitting behind searchTools(). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UqHbMFp8Kc3xmzuw9XhcX
1 parent 4d87674 commit 0f6f4b8

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

docs/codeact-design.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ provider transcript only carries `execute_code`.
123123
2. The tool catalog as **typed signatures**, generated from each tool's JSON
124124
schema (`await tools.browse({url: string, timeout?: number})` + first
125125
sentence of the description) — and only for the **resident** set. The
126-
high-traffic tools nearly every step reaches for (web search, browser,
127-
HTTP, workspace files, memory, `run_subtask`
128-
`CODEACT_RESIDENT_TOOL_NAMES`, overridable per executor) stay fully
129-
documented; once the belt exceeds `CODEACT_DEFER_THRESHOLD` (16),
126+
high-traffic tools nearly every step reaches for (the whole search family
127+
`web_search`, `search_nodes`, `run_search`, `google_news`,
128+
`google_images`, `asset_search`, `grep`, `glob` — plus browser, HTTP,
129+
workspace files, memory, `run_subtask``CODEACT_RESIDENT_TOOL_NAMES`,
130+
overridable per executor) stay fully documented; once the belt exceeds `CODEACT_DEFER_THRESHOLD` (16),
130131
everything else is listed by name only and discovered in-sandbox via
131132
`await searchTools("query")`, which reuses the ToolSearch query grammar
132133
(`select:`, keywords, `+substr`) and returns each match's signature and

packages/agents/CLAUDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ Design and the research it follows (CodeAct, ICML 2024): docs/codeact-design.md.
473473
and failure semantics — consumers work unchanged. Bridged tool calls surface
474474
as `tool_call_update` events (ids `codeact_<n>`).
475475
- Progressive disclosure: resident tools (`CODEACT_RESIDENT_TOOL_NAMES`
476-
web search, browser, HTTP, files, memory, `run_subtask`) are documented in
477-
full; past `CODEACT_DEFER_THRESHOLD` tools, the rest is name-only in the
476+
the search family incl. `web_search`/`search_nodes`/`run_search`/
477+
`asset_search`/`grep`/`glob`, plus browser, HTTP, files, memory,
478+
`run_subtask`) are documented in full; past `CODEACT_DEFER_THRESHOLD` tools, the rest is name-only in the
478479
prompt and discovered in-sandbox with `await searchTools("query")`
479480
(ToolSearch grammar). All tools stay callable either way.
480481
- The mode threads through `TaskExecutor`, `ParallelTaskExecutor`, and

packages/agents/src/codeact/codeact-executor.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,16 @@ export const EXECUTE_CODE_TOOL_NAME = "execute_code";
7575
* does not cost 70 signatures of prompt.
7676
*/
7777
export const CODEACT_RESIDENT_TOOL_NAMES: ReadonlySet<string> = new Set([
78-
// Web + retrieval.
78+
// Search family — every discovery entry point stays top level.
7979
"web_search",
80+
"search_nodes",
81+
"run_search",
82+
"google_news",
83+
"google_images",
84+
"asset_search",
85+
"grep",
86+
"glob",
87+
// Web + retrieval.
8088
"browser",
8189
"http_request",
8290
"download_file",

0 commit comments

Comments
 (0)