From 407a846d226b87838096fdbaf0cbe711f2f1a2f9 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 20 May 2026 20:49:34 -0700 Subject: [PATCH] Add current date to base2 prompt --- agents/base2/base2.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agents/base2/base2.ts b/agents/base2/base2.ts index f9b94b9328..2245a81b48 100644 --- a/agents/base2/base2.ts +++ b/agents/base2/base2.ts @@ -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?: { @@ -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.