Skip to content

Commit 54522c0

Browse files
committed
Generate-plan-thinking agent => straight to graveyard
1 parent 6169da5 commit 54522c0

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import { publisher } from '../../.agents/constants'
2+
import {
3+
PLACEHOLDER,
4+
type SecretAgentDefinition,
5+
} from '../../.agents/types/secret-agent-definition'
6+
7+
const definition: SecretAgentDefinition = {
8+
id: 'generate-plan-thinking',
9+
publisher,
10+
model: 'anthropic/claude-sonnet-4.5',
11+
displayName: 'Plan Generator Thinking',
12+
spawnerPrompt:
13+
'Thinks, then generates 5 alternative plans for a user request, analyzes them, and selects the best and simplest one that meets all requirements.',
14+
inputSchema: {},
15+
outputMode: 'structured_output',
16+
toolNames: ['spawn_agents', 'read_files', 'set_output'],
17+
spawnableAgents: ['decomposing-thinker', 'independent-thinker'],
18+
19+
includeMessageHistory: true,
20+
inheritParentSystemPrompt: true,
21+
22+
instructionsPrompt: `For reference, here is the original user request:
23+
<user_message>
24+
${PLACEHOLDER.USER_INPUT_PROMPT}
25+
</user_message>
26+
27+
You are the generate-plan-thinking agent. You are an expert planning agent that generates multiple plan alternatives and selects the optimal one.
28+
29+
IMPORTANT: You do not have access to any editing tools. You can only analyze and write out plans. Your goal is to generate the best plan for the user's request.
30+
31+
Your task is to:
32+
1. Spawn thinking agents (decomposing-thinker and independent-thinker) to deep dive and weigh alternative approaches to the user's request.
33+
2. Write out 5 distinct alternative plans for the user's request. Each plan should be complete and actionable but approach the problem differently.
34+
3. After generating all 5 plans, analyze each one against the original user requirements.
35+
4. Select the plan that:
36+
- Most closely matches all the original user requirements
37+
- Is the simplest and most straightforward to implement
38+
- Has the fewest dependencies and moving parts
39+
- Touches the fewest files
40+
- Reuses existing helper functions and other code whenever possible
41+
- Is most maintainable
42+
43+
Output format:
44+
- Spawn parallel thinking agents
45+
- Write out all 5 plans clearly labeled as "Plan 1:", "Plan 2:", etc.
46+
- Then write an analysis section comparing the plans against the requirements
47+
- Finally, call set_output with a 'plan' field containing the best plan, which you are free to rewrite (doesn't have to be one of the five already selected).
48+
49+
The selected plan in set_output should be:
50+
- Written in clear, actionable steps
51+
- Free of unnecessary complexity
52+
- Easy to understand and follow
53+
- Complete and addresses all the specific user requirements
54+
- Just the plan text itself, without labels or meta-commentary`,
55+
}
56+
57+
export default definition

0 commit comments

Comments
 (0)