You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d369d64
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/agent/prompts.ts
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -55,8 +55,8 @@ export function buildChatRole(
55
55
// blocks, what loads on demand, and the harness-specific tools. Everything a
56
56
// frontier model already knows about being a coding agent is deliberately omitted.
57
57
// `dynamicTools` controls the tool-loading fact: the main chat agent starts with
58
-
// core tools plus the advertised catalog (including skill_search) and loads MCP
59
-
// and other unadvertised tools via tool_search, whereas a sub-agent is
58
+
// core tools plus the advertised catalog and finds MCP and other unadvertised
59
+
// tools via tool_search, whereas a sub-agent is
60
60
// handed its full toolset upfront and has no tool_search — telling it otherwise
61
61
// wastes turns on a tool that does not exist.
62
62
exportfunctionbuildHarnessFacts(
@@ -95,7 +95,7 @@ export function buildHarnessFacts(
95
95
"- Attached images are native multimodal input; inspect them directly unless file-level forensics are requested.",
96
96
...(dynamicTools
97
97
? [
98
-
"- Core tools plus the advertised catalog (including skill_search) are resident. Use tool_search to load extra capabilities from plugins or integrations when needed.",
98
+
"- Core tools plus the advertised catalog are resident. Use tool_search to find MCP/plugin tools; the top two cards include the input schema. Call a listed name and it joins the tool list — unused matches stay off it.",
99
99
"- Use search_agents before dispatching named specialists or teams (ids and descriptions by default; include_body=true for the loaded system prompt).",
100
100
"- The user may send follow-up messages while workers run; they are queued. Enter delivers at the next parent tool.boundary; Alt+Enter on session-idle. A long parent tool holds that boundary. Update your plan, spawn or adjust workers, and keep the operator informed.",
Copy file name to clipboardExpand all lines: src/agent/tool-search.ts
+50-8Lines changed: 50 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ export function createActivatedToolTracker(): ActivatedToolTracker {
252
252
exportconsttoolSearchDefinition: ToolDefinition={
253
253
name: "tool_search",
254
254
description:
255
-
"Find tools (MCP servers, integrations) and skills by capability. Matched tools load on the next turn; load a skill body with use_skill.",
255
+
"Find tools (MCP servers, integrations) and skills by capability. Top two matches include input schema — call a listed name to use it (it then joins the tool list). Unused matches stay off the list. Load a skill body with use_skill.",
0 commit comments