Skip to content

Commit e18d886

Browse files
authored
Merge pull request #182 from drivecore/fix-github-mode-prompt-bug
fix github mode prompt bug.
2 parents d0ad6b2 + b24f25e commit e18d886

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

packages/agent/src/core/toolAgent/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,3 @@ export * from './messageUtils.js';
1212
export * from './toolExecutor.js';
1313
export * from './tokenTracking.js';
1414
export * from './types.js';
15-
16-
// Export default system prompt for convenience
17-
export const getDefaultSystemPrompt = (context: Record<string, unknown>) => {
18-
return `You are an AI agent that can use tools to accomplish tasks.
19-
20-
Current Context:
21-
Directory: ${context.workingDirectory}
22-
Files:
23-
${context.directoryListing ?? 'No directory listing available'}
24-
System: ${context.systemInfo ?? 'No system info available'}
25-
DateTime: ${new Date().toString()}`;
26-
};

packages/agent/src/tools/interaction/subAgent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ export const subAgentTool: Tool<Parameters, ReturnType> = {
100100
const result = await toolAgent(prompt, tools, config, {
101101
...context,
102102
workingDirectory: workingDirectory ?? context.workingDirectory,
103-
customPrompt: context.customPrompt,
104103
});
105104
return { response: result.result };
106105
},

0 commit comments

Comments
 (0)