forked from alvinunreal/oh-my-opencode-slim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfixer.ts
More file actions
27 lines (24 loc) · 649 Bytes
/
Copy pathfixer.ts
File metadata and controls
27 lines (24 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Prompts } from '../prompts/index';
import type { AgentDefinition } from './orchestrator';
export function createFixerAgent(
model: string,
customPrompt?: string,
customAppendPrompt?: string,
): AgentDefinition {
let prompt = Prompts.fixer;
if (customPrompt) {
prompt = customPrompt;
} else if (customAppendPrompt) {
prompt = `${Prompts.fixer}\n\n${customAppendPrompt}`;
}
return {
name: 'fixer',
description:
'Fast implementation specialist. Receives complete context and task spec, executes code changes efficiently.',
config: {
model,
temperature: 0.2,
prompt,
},
};
}