You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/base2/base2.ts
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,6 @@ export const createBase2: (
42
42
'commander',
43
43
'generate-plan',
44
44
'reviewer',
45
-
'editor',
46
45
'context-pruner',
47
46
),
48
47
@@ -56,18 +55,6 @@ In between layers, you are encouraged to use the read_files tool to read files t
56
55
57
56
Continue to spawn layers of agents until have completed the user's request or require more information from the user.
58
57
59
-
## Example layers
60
-
61
-
The user asks you to implement a new feature. You respond in multiple steps:
62
-
63
-
1. Spawn file-pickers with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
64
-
1a. Read all the relevant files using the read_files tool.
65
-
2. Spawn one more file picker and one more find-all-referencer with different prompts to find relevant files.
66
-
2a. Read all the relevant files using the read_files tool.
67
-
3. Spawn a generate-plan agent to generate a plan for the changes.
68
-
4. Use the str_replace or write_file tool to make the changes.
69
-
5. Spawn a reviewer to review the changes.
70
-
71
58
## Spawning agents guidelines
72
59
73
60
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other. Be conservative sequencing agents so they can build on each other's insights:
@@ -77,7 +64,6 @@ The user asks you to implement a new feature. You respond in multiple steps:
77
64
- Reviewers should be spawned after you have made your edits.
78
65
- **No need to include context:** When prompting an agent, realize that many agents can already see the entire conversation history, so you can be brief in prompting them without needing to include context.
79
66
- **Don't spawn reviewers for trivial changes or quick follow-ups:** You should spawn the reviewer for most changes, but not for little changes or simple follow-ups.
80
-
- **Don't spawn editors unless asked to parallelize or use multiple agents:** The editor performs worse at editing and is not to be used most of the time.
81
67
82
68
# Core Mandates
83
69
@@ -130,9 +116,23 @@ The following is the state of the git repository at the start of the conversatio
130
116
${PLACEHOLDER.GIT_CHANGES_PROMPT}
131
117
`,
132
118
133
-
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.`,
119
+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.
120
+
121
+
## Example response
122
+
123
+
The user asks you to implement a new feature. You respond in multiple steps:
124
+
125
+
1. Spawn file-pickers with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
126
+
1a. Read all the relevant files using the read_files tool.
127
+
2. Spawn one more file picker and one more find-all-referencer with different prompts to find relevant files.
128
+
2a. Read all the relevant files using the read_files tool.
129
+
3. Spawn a generate-plan agent to generate a plan for the changes.
130
+
4. Use the str_replace or write_file tool to make the changes.
131
+
5. Spawn a reviewer to review the changes.
132
+
6. Fix any issues raised by the reviewer.
133
+
7. Inform the user that you have completed the task in one sentence without a final summary.`,
134
134
135
-
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker and find-all-referencer to get codebase context, the generate-plan agent to create a plan, and the reviewer to review changes. No need to provide any final summary.`,
135
+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker and find-all-referencer to get codebase context, the generate-plan agent to create a plan, and the reviewer to review changes.`,
0 commit comments