forked from alvinunreal/oh-my-opencode-slim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexplorer.ts
More file actions
27 lines (24 loc) · 682 Bytes
/
Copy pathexplorer.ts
File metadata and controls
27 lines (24 loc) · 682 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 createExplorerAgent(
model: string,
customPrompt?: string,
customAppendPrompt?: string,
): AgentDefinition {
let prompt = Prompts.explorer;
if (customPrompt) {
prompt = customPrompt;
} else if (customAppendPrompt) {
prompt = `${Prompts.explorer}\n\n${customAppendPrompt}`;
}
return {
name: 'explorer',
description:
"Fast codebase search and pattern matching. Use for finding files, locating code patterns, and answering 'where is X?' questions.",
config: {
model,
temperature: 0.1,
prompt,
},
};
}