Skip to content

Commit c04ee43

Browse files
committed
fix: disable respawn as it can confuse some LLMs
1 parent 9359f62 commit c04ee43

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/agent/src/tools/getTools.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { fetchTool } from './io/fetch.js';
1010
import { textEditorTool } from './io/textEditor.js';
1111
import { createMcpTool } from './mcp.js';
1212
import { listBackgroundToolsTool } from './system/listBackgroundTools.js';
13-
import { respawnTool } from './system/respawn.js';
1413
import { sequenceCompleteTool } from './system/sequenceComplete.js';
1514
import { shellMessageTool } from './system/shellMessage.js';
1615
import { shellStartTool } from './system/shellStart.js';
@@ -39,7 +38,7 @@ export function getTools(options?: GetToolsOptions): Tool[] {
3938
shellMessageTool as unknown as Tool,
4039
browseStartTool as unknown as Tool,
4140
browseMessageTool as unknown as Tool,
42-
respawnTool as unknown as Tool,
41+
//respawnTool as unknown as Tool, this is a confusing tool for now.
4342
sleepTool as unknown as Tool,
4443
listBackgroundToolsTool as unknown as Tool,
4544
];

packages/agent/src/tools/system/respawn.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ import { respawnTool } from './respawn';
88
const toolContext: ToolContext = getMockToolContext();
99

1010
describe('respawnTool', () => {
11-
it('should have correct name and description', () => {
11+
it('should have correct name', () => {
1212
expect(respawnTool.name).toBe('respawn');
13-
expect(respawnTool.description).toContain('Resets the agent context');
1413
});
1514

1615
it('should execute and return confirmation message', async () => {

packages/agent/src/tools/system/respawn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const returnSchema = z.object({
2020
export const respawnTool: Tool = {
2121
name: 'respawn',
2222
description:
23-
'Resets the agent context to just the system prompt and provided context',
23+
'Resets the current conversation to just the system prompt and provided input context to this tool.',
2424
logPrefix: '🔄',
2525
parameters: parameterSchema,
2626
returns: returnSchema,

0 commit comments

Comments
 (0)