Skip to content

Commit 407a846

Browse files
committed
Add current date to base2 prompt
1 parent ae4138a commit 407a846

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

agents/base2/base2.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ import {
1717
type SecretAgentDefinition,
1818
} from '../types/secret-agent-definition'
1919

20+
function formatCurrentDate(date: Date): string {
21+
return new Intl.DateTimeFormat('en-US', {
22+
year: 'numeric',
23+
month: 'long',
24+
day: 'numeric',
25+
}).format(date)
26+
}
27+
2028
export function createBase2(
2129
mode: 'default' | 'free' | 'lite' | 'max' | 'fast',
2230
options?: {
@@ -129,6 +137,8 @@ export function createBase2(
129137

130138
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.
131139
140+
Current date: ${formatCurrentDate(new Date())}.
141+
132142
# Core Mandates
133143
134144
- **Tone:** Adopt a professional, direct, and concise tone suitable for a CLI environment.

0 commit comments

Comments
 (0)