Skip to content

Commit d926d75

Browse files
committed
read only commander to use prompt cached sonnet
1 parent ec7caf7 commit d926d75

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

.agents/editor/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const editor: SecretAgentDefinition = {
88
model: 'anthropic/claude-sonnet-4.5',
99
displayName: 'Code Editor',
1010
spawnerPrompt:
11-
'Expert code editor with access to tools to find and edit files, run terminal commands, and search the web. Can handle small to medium sized tasks, or work off of a plan for more complex tasks. For easy tasks, you can spawn this agent directly rather than invoking a scout or planner first.',
11+
'Expert code editor with access to tools to find and edit files, run terminal commands, and search the web. Can handle small to medium sized tasks, or work off of a plan for more complex tasks. For easy tasks, you can spawn this agent directly rather than invoking a researcher or planner first. Spawn mulitple in parallel if needed, but only on totally distinct tasks.',
1212
inputSchema: {
1313
prompt: {
1414
type: 'string',

.agents/orchestrator/orchestrator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Use this workflow to solve a medium or complex coding task:
7878
6. Spawn a reviewer to review the code. If changes are needed, go back to step 5, but no more than once.
7979
7. You must stop before spawning too many sequential agents, because that this takes too much time and the user will get impatient.
8080
81-
Feel free to modify this workflow as needed. It's good to spawn different agents in sequence: spawn a researcher before a planner because then the planner can use the researcher's results to come up with a better plan. You can however spawn mulitple researchers, planners, and editors at the same time if needed.
81+
Feel free to modify this workflow as needed. It's good to spawn different agents in sequence: spawn a researcher before a planner because then the planner can use the researcher's results to come up with a better plan. You can however spawn mulitple researchers, planners, editors, and read-only-commanders, at the same time if needed.
8282
8383
## Guidelines
8484

.agents/read-only-commander.ts

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
import { publisher } from './constants'
2-
import {
3-
PLACEHOLDER,
4-
type SecretAgentDefinition,
5-
} from './types/secret-agent-definition'
2+
import { type SecretAgentDefinition } from './types/secret-agent-definition'
63

74
const readOnlyCommander: SecretAgentDefinition = {
85
id: 'read-only-commander',
96
publisher,
10-
model: 'openai/gpt-5-chat',
11-
reasoningOptions: {
12-
enabled: true,
13-
effort: 'low',
14-
exclude: true,
15-
},
7+
model: 'anthropic/claude-sonnet-4.5',
168
displayName: 'ReadOnly Commander',
179
spawnerPrompt:
18-
'Can run quick read-only terminal commands and report back on the results. Has a decent understanding of the codebase.',
10+
'Can run read-only terminal commands and codebase string search to answer questions with good analysis. Feel free to spawn mulitple in parallel.',
1911
inputSchema: {
2012
prompt: {
2113
type: 'string',
@@ -25,12 +17,11 @@ const readOnlyCommander: SecretAgentDefinition = {
2517
},
2618
outputMode: 'last_message',
2719
includeMessageHistory: true,
20+
inheritParentSystemPrompt: true,
2821
toolNames: ['run_terminal_command', 'code_search', 'read_files'],
29-
systemPrompt: `You are an expert software engineer, however you only execute READ ONLY commands to answer the user's question.
30-
31-
${PLACEHOLDER.FILE_TREE_PROMPT}
32-
${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
33-
instructionsPrompt: `Use the tools to answer the user's question. But do not invoke any terminal commands that could have any permanent effects -- no editing files, no running scripts, no git commits, no installing packages, etc.`,
22+
instructionsPrompt: `You are an expert software engineer, however you only execute READ ONLY commands to answer the user's question.
23+
24+
Use the tools to answer the user's question. But do not invoke any terminal commands that could have any permanent effects -- no editing files, no running scripts, no git commits, no installing packages, etc.`,
3425
}
3526

3627
export default readOnlyCommander

0 commit comments

Comments
 (0)