Skip to content

Commit d420d1c

Browse files
committed
Tweak file lister to hopefully not write out any text
1 parent 5cd1448 commit d420d1c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.agents/file-explorer/file-lister.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ const definition: SecretAgentDefinition = {
3333

3434
systemPrompt: `You are an expert at finding relevant files in a codebase and listing them out.`,
3535
instructionsPrompt: `Instructions:
36+
- Do not write any introductory commentary.
37+
- Do not write any analysis or any English text at all.
3638
- Do not use any tools.
37-
- Do not write any analysis.
3839
- List out the full paths of up to 12 files that are relevant to the prompt, separated by newlines. Each file path is relative to the project root.
3940
40-
<example_output>
41+
<example_response>
4142
packages/core/src/index.ts
4243
packages/core/src/api/server.ts
4344
packages/core/src/api/routes/user.ts
@@ -50,10 +51,10 @@ docs/routes/index.md
5051
docs/routes/user.md
5152
package.json
5253
README.md
53-
</example_output>
54+
</example_response>
5455
55-
Do not write an introduction. Do not use any tools. Do not write anything else other than the file paths.
56-
`.trim(),
56+
Again: Do not write anything else other than the file paths on new lines.
57+
`.trim(),
5758

5859
handleSteps: function* ({ params }) {
5960
const directories = params?.directories ?? []

0 commit comments

Comments
 (0)