Skip to content

Commit 25e990c

Browse files
committed
Merge branch 'main' into git-evals2
2 parents 1bd32fd + 9ac87ff commit 25e990c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.agents/file-explorer/file-picker.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { ToolCall } from 'types/agent-definition'
22
import { publisher } from '../constants'
33

4-
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4+
import {
5+
PLACEHOLDER,
6+
type SecretAgentDefinition,
7+
} from '../types/secret-agent-definition'
58

69
const definition: SecretAgentDefinition = {
710
id: 'file-picker',
@@ -21,7 +24,7 @@ const definition: SecretAgentDefinition = {
2124
toolNames: ['find_files'],
2225
spawnableAgents: [],
2326

24-
systemPrompt: `You are an expert at finding relevant files in a codebase.`,
27+
systemPrompt: `You are an expert at finding relevant files in a codebase. ${PLACEHOLDER.FILE_TREE_PROMPT}`,
2528
instructionsPrompt: `
2629
Provide the locations in the codebase that could be helpful. Focus on the files that are most relevant to the user prompt.
2730
In your report, please give an extremely concise analysis that includes the full paths of files that are relevant and (very briefly) how they could be useful.

.agents/file-explorer/find-all-referencer.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { ToolCall } from '../types/agent-definition'
22
import { publisher } from '../constants'
33

4-
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4+
import {
5+
PLACEHOLDER,
6+
type SecretAgentDefinition,
7+
} from '../types/secret-agent-definition'
58

69
const definition: SecretAgentDefinition = {
710
id: 'find-all-referencer',
@@ -33,6 +36,8 @@ Strategy:
3336
1. Analyze the user's question to determine what exploration approach would be most effective.
3437
2. Spawn agents to help you answer the user's question. You should spawn multiple agents in parallel to gather information faster.
3538
3. Synthesize all findings into a concise, but comprehensive answer.
39+
40+
${PLACEHOLDER.FILE_TREE_PROMPT}
3641
`,
3742

3843
instructionsPrompt: `Analyze the user's prompt and spawn appropriate exploration agents.

0 commit comments

Comments
 (0)