Skip to content

Commit cb6febe

Browse files
committed
base2-fast as configuration of base2
1 parent a11efa0 commit cb6febe

File tree

6 files changed

+37
-22
lines changed

6 files changed

+37
-22
lines changed

.agents/base2/base2-alloy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createBase2 } from './base2'
22
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
33

4-
const base2 = createBase2('max')
4+
const base2 = createBase2('normal')
55
const definition: SecretAgentDefinition = {
66
...base2,
77
id: 'base2-alloy',

.agents/base2/base2-fast.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { createBase2 } from './base2'
2+
3+
const definition = {
4+
...createBase2('fast'),
5+
id: 'base2-fast',
6+
displayName: 'Buffy the Fast Orchestrator',
7+
}
8+
export default definition

.agents/base2/base2-simple.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const definition = {
66
id: 'base2-simple',
77
displayName: 'Buffy the Simple Orchestrator',
88
spawnableAgents: buildArray(
9-
'file-picker',
9+
'file-picker-max',
1010
'find-all-referencer',
1111
'researcher-web',
1212
'researcher-docs',
1313
'commander',
14-
'reviewer',
14+
'code-reviewer',
1515
'context-pruner',
1616
),
1717
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents.
@@ -30,8 +30,9 @@ The user asks you to implement a new feature. You respond in multiple steps:
3030
1a. Read all the relevant files using the read_files tool.
3131
2. Spawn one more file explorer and one more find-all-referencer with different prompts to find relevant files.
3232
2a. Read all the relevant files using the read_files tool.
33+
3. Write out your implementation plan as a bullet point list.
3334
3. Use the str_replace or write_file tool to make the changes.
34-
4. Spawn a reviewer to review the changes.
35+
4. Spawn a code-reviewer to review the changes.
3536
3637
3738
## Spawning agents guidelines
@@ -42,13 +43,13 @@ The user asks you to implement a new feature. You respond in multiple steps:
4243
- Reviewers should be spawned after you have made the changes.
4344
- **Once you've gathered all the context you need, create a plan:** Write out your plan as a bullet point list. The user wants to see you write out your plan so they know you are on track.
4445
- **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.
45-
- **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.
46+
- **Don't spawn code 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.
4647
4748
## Response guidelines
4849
- **Don't create a summary markdown file:** The user doesn't want markdown files they didn't ask for. Don't create them.
4950
- **Don't include final summary:** Don't include any final summary in your response. Don't describe the changes you made. Just let the user know that you have completed the task briefly.
5051
`,
5152

52-
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, and the reviewer to review changes.`,
53+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, and the code-reviewer to review changes.`,
5354
}
5455
export default definition

.agents/base2/base2.ts

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import {
77
} from '../types/secret-agent-definition'
88

99
export const createBase2: (
10-
mode: 'normal' | 'max',
11-
) => Omit<SecretAgentDefinition, 'id'> = () => {
10+
mode: 'normal' | 'fast',
11+
) => Omit<SecretAgentDefinition, 'id'> = (mode) => {
12+
const isFast = mode === 'fast'
1213
return {
1314
publisher,
1415
model: 'anthropic/claude-sonnet-4.5',
@@ -61,11 +62,12 @@ Continue to spawn layers of agents until have completed the user's request or re
6162
6263
- **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:
6364
- Spawn file pickers, code-searcher, directory-lister, glob-matcher, commanders, and researchers before making edits.
64-
- Spawn generate-plan agent after you have gathered all the context you need (and not before!).
65-
- Only make edits after generating a plan.
66-
- Code reviewers/validators should be spawned after you have made your edits.
65+
${!isFast ? '- Spawn generate-plan agent after you have gathered all the context you need (and not before!).' : ''}
66+
${!isFast ? '- Only make edits after generating a plan.' : ''}
67+
- Code reviewers should be spawned after you have made your edits.
68+
${!isFast ? '- Validators should be spawned after you have done a code review.' : ''}
6769
- **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.
68-
- **Don't spawn code reviewers/validators for trivial changes or quick follow-ups:** You should spawn the code reviewer/validator for most changes, but not for little changes or simple follow-ups.
70+
- **Don't spawn code reviewers${!isFast ? '/validators' : ''} for trivial changes or quick follow-ups:** You should spawn the code reviewer${!isFast ? '/validator' : ''} for most changes, but not for little changes or simple follow-ups.
6971
7072
# Core Mandates
7173
@@ -128,13 +130,21 @@ The user asks you to implement a new feature. You respond in multiple steps:
128130
1a. Read all the relevant files using the read_files tool.
129131
2. Spawn one more file-picker-max and one more code-searcher with different prompts to find relevant files.
130132
2a. Read all the relevant files using the read_files tool.
131-
3. Spawn a generate-plan agent to generate a plan for the changes.
133+
${
134+
isFast
135+
? `3. Write out your implementation plan as a bullet point list.`
136+
: '3. Spawn a generate-plan agent to generate a plan for the changes.'
137+
}
132138
4. Use the str_replace or write_file tool to make the changes.
133139
5. Spawn a code-reviewer to review the changes. Consider making changes suggested by the code-reviewer.
134-
6. Spawn a validator to run validation commands (tests, typechecks, etc.) to ensure the changes are correct.
135-
7. Inform the user that you have completed the task in one sentence without a final summary.`,
136-
137-
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and find-all-referencer to get codebase context, the generate-plan agent to create a plan, code-reviewer to review changes, and the validator to run validation commands.`,
140+
${
141+
isFast
142+
? `6. Inform the user that you have completed the task in one sentence without a final summary.`
143+
: `6. Spawn a validator to run validation commands (tests, typechecks, etc.) to ensure the changes are correct.
144+
7. Inform the user that you have completed the task in one sentence without a final summary. Don't create any markdown summary files either, unless asked by the user.`
145+
}`,
146+
147+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and find-all-referencer to get codebase context,${!isFast ? ' the generate-plan agent to create a plan,' : ''} code-reviewer to review changes${!isFast ? ', and the validator to run validation commands' : ''}.`,
138148

139149
handleSteps: function* ({ prompt, params }) {
140150
let steps = 0

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const definition: SecretAgentDefinition = {
1111
displayName: 'Find All Referencer',
1212
spawnerPrompt:
1313
'Ask this agent to find all references to something in the codebase or where something is defined or answer any other codebase-wide questions.',
14-
model: 'x-ai/grok-code-fast-1',
14+
model: 'x-ai/grok-4-fast',
1515
publisher,
1616
outputMode: 'last_message',
1717
includeMessageHistory: false,

knowledge.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@ This project uses [Infisical](https://infisical.com/) for secret management. All
300300

301301
The release mechanism uses the `CODEBUFF_GITHUB_TOKEN` environment variable directly. The old complex GitHub App token generation system has been removed in favor of using a simple personal access token or the infisical-managed token.
302302

303-
**To run any service locally, use the `exec` runner script from root `package.json`**, which wraps commands with `infisical run --`.
304-
305-
Example: `bun run exec -- bun --cwd backend dev`
306-
307303
Environment variables are defined and validated in `packages/internal/src/env.ts`. This module provides type-safe `env` objects for use throughout the monorepo.
308304

309305
### Bun Wrapper Script

0 commit comments

Comments
 (0)