Skip to content

Commit c949d77

Browse files
committed
Use normal tools instead of complex agents
1 parent b88db4e commit c949d77

File tree

3 files changed

+3
-29
lines changed

3 files changed

+3
-29
lines changed

agents/__tests__/context-pruner.test.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,26 +1087,6 @@ describe('context-pruner spawn_agents with prompt and params', () => {
10871087
expect(content).toContain('params: {"command":"npm test"}')
10881088
})
10891089

1090-
test('includes both prompt and params for spawn_agent_inline', () => {
1091-
const messages = [
1092-
createMessage('user', 'Search code'),
1093-
createToolCallMessage('call-1', 'spawn_agent_inline', {
1094-
agent_type: 'code-searcher',
1095-
prompt: 'Find usages of deprecated API',
1096-
params: { searchQueries: [{ pattern: 'oldFunction' }] },
1097-
}),
1098-
createToolResultMessage('call-1', 'spawn_agent_inline', { output: {} }),
1099-
]
1100-
1101-
const results = runHandleSteps(messages)
1102-
const content = results[0].input.messages[0].content[0].text
1103-
1104-
expect(content).toContain('Spawned agent: code-searcher')
1105-
expect(content).toContain('prompt: "Find usages of deprecated API"')
1106-
expect(content).toContain('params:')
1107-
expect(content).toContain('oldFunction')
1108-
})
1109-
11101090
test('truncates very long prompts (over 1000 chars)', () => {
11111091
const longPrompt = 'X'.repeat(1500)
11121092
const messages = [

agents/base2/base2.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,13 @@ export function createBase2(
6868
!noAskUser && 'ask_user',
6969
'skill',
7070
'set_output',
71-
isFree && 'code_search',
72-
isFree && 'list_directory',
73-
isFree && 'glob',
71+
'code_search',
72+
'list_directory',
73+
'glob',
7474
),
7575
spawnableAgents: buildArray(
7676
!isMax && 'file-picker',
7777
isMax && 'file-picker-max',
78-
!isFree && 'code-searcher',
79-
!isFree && 'directory-lister',
80-
!isFree && 'glob-matcher',
8178
'researcher-web',
8279
'researcher-docs',
8380
isFree ? 'commander-lite' : 'commander',

agents/context-pruner.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,6 @@ const definition: AgentDefinition = {
297297
/** Agent IDs whose output should be excluded from spawn_agents results */
298298
const SPAWN_AGENTS_OUTPUT_BLACKLIST = [
299299
'file-picker',
300-
'code-searcher',
301-
'directory-lister',
302-
'glob-matcher',
303300
'researcher-web',
304301
'researcher-docs',
305302
'commander',

0 commit comments

Comments
 (0)