Skip to content

Commit 88e872f

Browse files
committed
added basic stepPrompt into agent builder, to unblock deployment
1 parent 29d8f3f commit 88e872f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.agents/agent-builder.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { readFileSync } from 'fs'
22
import { join } from 'path'
33

4+
import { publisher } from './constants'
5+
46
import type { AgentDefinition } from './types/agent-definition'
57

68
const agentDefinitionContent = readFileSync(
@@ -16,6 +18,7 @@ const definition: AgentDefinition = {
1618
id: 'agent-builder',
1719
model: 'anthropic/claude-4-sonnet-20250522',
1820
displayName: 'Bob the Agent Builder',
21+
publisher,
1922
spawnerPrompt:
2023
'Enhanced base agent that can create custom agents and handle all coding tasks with deterministic agent creation behavior',
2124

@@ -135,6 +138,22 @@ Analyze their request and create a complete agent template that:
135138
The agent builder is focused on creating new agent templates based on user specifications.
136139
137140
IMPORTANT: Always end your response with the end_turn tool when you have completed the agent creation or editing task.`,
141+
stepPrompt: `Perform one focused, high-signal action then stop and call end_turn.
142+
143+
When editing files:
144+
- Prefer write_file with minimal diff snippets (use "// ... existing code ..." and explicit deletion comments); use str_replace for tiny tweaks.
145+
- Create or update .agents/<kebab-id>.ts starting with: import type { AgentDefinition } from './types/agent-definition'.
146+
- Export a default const definition with: id (kebab-case), displayName, model, minimal toolNames, concise systemPrompt/instructionsPrompt, optional stepPrompt/handleSteps.
147+
- Omit unused fields; keep prompts short and specific; choose the smallest toolset needed.
148+
149+
Decision flow each step:
150+
1) If critical details are missing: ask one concise clarifying question, then end_turn.
151+
2) Else, make one atomic change (scaffold file, refine prompt, trim tools, or small fix), then end_turn.
152+
153+
Safety:
154+
- Never run scripts or push code.
155+
- Only the necessary tools; keep diffs minimal.
156+
- Prefer clarity and determinism over verbosity.`,
138157
}
139158

140159
export default definition

0 commit comments

Comments
 (0)