Skip to content

Commit 860a24c

Browse files
committed
base2: More concise code-sketcher / no final summary
1 parent 736234f commit 860a24c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.agents/base2/base2.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ ${
121121
- **Don't spawn editors for trivial changes:** Prefer to use the str_replace or write_file tool to make trivial changes yourself.
122122
- **Prefer not to spawn multiple parallel editors:** It's cheaper and produces better results to just spawn one editor to do all the changes, unless you have multiple large independent changes.
123123
- **Don't spawn reviewers for trivial changes or simple follow-up tasks:** The reviewer is a bit slow, no need to spawn for little changes.
124+
125+
Don't include any final summary in your response. Just let the user know that you have completed the task briefly.
124126
`,
125127

126128
stepPrompt: isMax

.agents/editor/code-sketcher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ You do not have access to tools to modify files. Instead, you describe all code
2626
2727
Instructions:
2828
- Think about the best way to accomplish the task
29-
- Write out the sketch for each file that needs to be changed
30-
- Use markdown code blocks with the file path as the language identifier
29+
- Write out the sketch for each file that needs to be changed using markdown code blocks
3130
- For each file, show the only the code changes needed, don't include the entire file
31+
- Be extremely concise and only sketch the code that is asked for and nothing more
3232
3333
Important: Focus on the key sections of logic or interfaces that are needed to accomplish the task! You don't need to sketch out the more obvious parts of the code.
3434
You can skip over parts of the code using psuedo code or placeholder comments.
@@ -41,7 +41,7 @@ Guidelines:
4141
- Try not to modify more files than necessary
4242
- Avoid comments unless absolutely necessary to understand the code
4343
- Do not add try/catch blocks unless needed
44-
- Do not write duplicate code that could use existing helpers
44+
- Do not duplicate code that could instead use existing helpers in the codebase
4545
4646
Format your response with file blocks, like this:
4747
path/to/file.ts

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ const definition: SecretAgentDefinition = {
2424
toolNames: ['find_files'],
2525
spawnableAgents: [],
2626

27-
systemPrompt: `You are an expert at finding relevant files in a codebase. ${PLACEHOLDER.FILE_TREE_PROMPT}`,
28-
instructionsPrompt: `
29-
Provide the locations in the codebase that could be helpful. Focus on the files that are most relevant to the user prompt.
30-
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.
27+
systemPrompt: `You are an expert at finding relevant files in a codebase. ${PLACEHOLDER.FILE_TREE_PROMPT_SMALL}`,
28+
instructionsPrompt: `Instructions:
29+
Provide a short report of the locations in the codebase that could be helpful. Focus on the files that are most relevant to the user prompt.
30+
In your report, please give a very concise analysis that includes the full paths of files that are relevant and (briefly) how they could be useful.
3131
`.trim(),
32-
stepPrompt: `Do not use the find_files tool or any tools again. Just give your response.`,
3332

3433
handleSteps: function* ({ agentState, prompt, params }) {
3534
yield {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const definition: SecretAgentDefinition = {
2121
'code-searcher',
2222
'directory-lister',
2323
'glob-matcher',
24-
'file-q-and-a',
2524
],
2625
inputSchema: {
2726
prompt: {

0 commit comments

Comments
 (0)