Skip to content

Commit d990ed5

Browse files
committed
docs(.agents): clarify codebuff-local-cli purpose as e2e visual testing
Makes it clear this agent is specifically for testing the Codebuff CLI visual output, not for code review or analysis tasks.
1 parent 8f084fb commit d990ed5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.agents/codebuff-local-cli.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ const baseDefinition = createCliAgent({
1212
'No permission flags needed for Codebuff local dev server.',
1313
model: 'anthropic/claude-opus-4.5',
1414
skipPrepPhase: true,
15-
spawnerPromptExtras: `**Use this agent after modifying:**
16-
- \`cli/src/components/\` - UI components, layouts, rendering
17-
- \`cli/src/hooks/\` - hooks that affect what users see
18-
- Any CLI visual elements: borders, colors, spacing, text formatting
15+
spawnerPromptExtras: `**Purpose:** E2E visual testing of the Codebuff CLI itself. This agent starts a local dev Codebuff CLI instance and interacts with it to verify UI behavior.
1916
20-
**When to use:** After implementing CLI UI changes, use this to verify the visual output actually renders correctly. Unit tests and typechecks cannot catch layout bugs, rendering issues, or visual regressions. This agent captures real terminal output including colors and layout.`,
17+
**When to use:**
18+
- After modifying \`cli/src/components/\` - UI components, layouts, rendering
19+
- After modifying \`cli/src/hooks/\` - hooks that affect what users see
20+
- To test CLI visual elements: borders, colors, spacing, text formatting
21+
- To verify the CLI responds correctly to user input
22+
23+
**NOT for:**
24+
- Code review or analysis tasks
25+
- Reading files and verifying code logic
26+
- Running unit tests or typechecks
27+
28+
**How it works:** Starts \`bun --cwd=cli run dev\` in tmux, then you send prompts/commands to the CLI and capture the visual output. Unit tests and typechecks cannot catch layout bugs, rendering issues, or visual regressions - this agent captures real terminal output including colors and layout.`,
2129
})
2230

2331
// Constants must be inside handleSteps since it gets serialized via .toString()

0 commit comments

Comments
 (0)