xonecas.io
64875
Mc

mini-coder / commit 0677d76

feat: include current date/time in system prompt

xonecas2026-02-20 0677d766b7a4d5c5628daef8377d18ada03b91e0 parent a7effd0

1 file changed

src/agent/agent.ts+2−0
@@ -80,11 +80,13 @@ function buildSystemPrompt(cwd: string): string {
8080 const cwdDisplay = cwd.startsWith(homedir())
8181 ? `~${cwd.slice(homedir().length)}`
8282 : cwd;
83+ const now = new Date().toLocaleString(undefined, { hour12: false });
8384
8485 let prompt = `You are mini-coder, a small and fast CLI coding agent.
8586 You have access to tools to read files, search code, make edits, run shell commands, and spawn subagents.
8687
8788 Current working directory: ${cwdDisplay}
89+Current date/time: ${now}
8890
8991 Guidelines:
9092 - Be concise and precise. Avoid unnecessary preamble.