Skip to content

Commit 3da1bca

Browse files
committed
Date example in the memory rules uses ISO format
1 parent e1030ad commit 3da1bca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/core/src/runner/prompt.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ ${human} can write to you while you are working. Such a message reaches you betw
462462
const memoryFile = folder ? join(repo, "MEMORY.md") : "MEMORY.md";
463463
const budget = memoryBudget(settings.memory.dreaming.maxMemoryChars);
464464
const profile = ctx.profile ? `\n\n${profileBlock(ctx.profile, human, folder ? join(repo, PROFILE_FILE) : PROFILE_FILE)}` : "";
465-
const today = describeDay(ctx.now).split(" (")[0]!;
465+
const now = ctx.now ?? new Date();
466+
const today = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, "0")}-${String(now.getDate()).padStart(2, "0")}`;
466467
const projectMemory = folder
467468
? ` Facts about the attached folder itself — its code, build and test steps, conventions — belong in Claude Code's project memory for that folder (its auto memory), not in \`${memoryFile}\`, which is about ${human}, your work and your tools across projects.`
468469
: "";

0 commit comments

Comments
 (0)