Skip to content

Commit 4ca5d5b

Browse files
committed
Update some agents to hide tool calls
1 parent 91dbb02 commit 4ca5d5b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.agents/base2/best-of-n/best-of-n-editor.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ function* handleStepsSonnet({
6161
> {
6262
const implementorAgent = 'best-of-n-implementor'
6363
const selectorAgent = 'best-of-n-selector'
64-
const n = Math.min(
65-
10,
66-
Math.max(1, (params?.n as number | undefined) ?? 5),
67-
)
64+
const n = Math.min(10, Math.max(1, (params?.n as number | undefined) ?? 5))
6865

6966
// Remove userInstruction message for this agent.
7067
const messages = agentState.messageHistory.concat()
@@ -158,6 +155,7 @@ function* handleStepsSonnet({
158155
response: chosenImplementation.content,
159156
toolResults: editToolResults,
160157
},
158+
includeToolCall: false,
161159
} satisfies ToolCall<'set_output'>
162160

163161
function extractSpawnResults<T>(
@@ -189,10 +187,7 @@ function* handleStepsGpt5({
189187
> {
190188
const implementorAgent = 'best-of-n-implementor-gpt-5'
191189
const selectorAgent = 'best-of-n-selector-gpt-5'
192-
const n = Math.min(
193-
10,
194-
Math.max(1, (params?.n as number | undefined) ?? 5),
195-
)
190+
const n = Math.min(10, Math.max(1, (params?.n as number | undefined) ?? 5))
196191

197192
// Remove userInstruction message for this agent.
198193
const messages = agentState.messageHistory.concat()

.agents/editor/editor-lite.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ ${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
137137
...agentState.output,
138138
edits: accumulatedEditToolResults,
139139
},
140+
includeToolCall: false,
140141
}
141142

142143
function getLatestEditToolResults(messageHistory: Message[]) {

.agents/editor/editor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Implement the requested changes, using your judgment as needed, but referring to
114114
...agentState.output,
115115
edits: accumulatedEditToolResults,
116116
},
117+
includeToolCall: false,
117118
}
118119

119120
function getLatestEditToolResults(messageHistory: Message[]) {

.agents/file-explorer/code-searcher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const codeSearcher: SecretAgentDefinition = {
8787
input: {
8888
results: toolResults,
8989
},
90+
includeToolCall: false,
9091
}
9192
},
9293
}

.agents/file-explorer/directory-lister.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const directoryLister: SecretAgentDefinition = {
6767
input: {
6868
results: toolResults,
6969
},
70+
includeToolCall: false,
7071
}
7172
},
7273
}

.agents/file-explorer/file-explorer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const fileExplorer: SecretAgentDefinition = {
6060
input: {
6161
results: spawnResult,
6262
},
63+
includeToolCall: false,
6364
}
6465
},
6566
}

0 commit comments

Comments
 (0)