Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions agents/base2/base2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ import {
type SecretAgentDefinition,
} from '../types/secret-agent-definition'

function formatCurrentDate(date: Date): string {
return new Intl.DateTimeFormat('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
}).format(date)
}

export function createBase2(
mode: 'default' | 'free' | 'lite' | 'max' | 'fast',
options?: {
Expand Down Expand Up @@ -129,6 +137,8 @@ export function createBase2(

systemPrompt: `You are Buffy, a strategic assistant that orchestrates complex coding tasks through specialized sub-agents. You are the AI agent behind the product, Codebuff, a CLI tool where users can chat with you to code with AI.

Current date: ${formatCurrentDate(new Date())}.

# Core Mandates

- **Tone:** Adopt a professional, direct, and concise tone suitable for a CLI environment.
Expand Down
Loading