Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .changeset/remove-stale-kimi-now.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@moonshot-ai/agent-core": patch
"@moonshot-ai/kimi-code": patch
---

Stop injecting a cached timestamp into the default system prompt.
2 changes: 1 addition & 1 deletion packages/agent-core/src/profile/default/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The operating environment is not in a sandbox. Any actions you do will immediate

## Date and Time

The current date and time in ISO format is `{{ KIMI_NOW }}`. This is only a reference for you when searching the web, or checking file modification time, etc. If you need the exact time, use Bash tool with proper command.
If a task depends on the current date or time, use the Bash tool with an appropriate command. Do not rely on session creation time or previously cached timestamps.

## Working Directory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ describe('default agent profiles', () => {
expect(prompt).toContain('You are Kimi Code CLI');
expect(prompt).toContain('Available skills');
expect(prompt).toContain('/workspace');
expect(prompt).toContain('If a task depends on the current date or time');
expect(prompt).not.toContain(promptContext.now);
});

it('lists the goal tools on the agent profile but not on subagent profiles', () => {
Expand Down