Skip to content

feat: share current time and iteration budget with agent - #2

Merged
eddmann merged 1 commit into
mainfrom
claude/agent-information-sharing-R35kK
Feb 25, 2026
Merged

feat: share current time and iteration budget with agent#2
eddmann merged 1 commit into
mainfrom
claude/agent-information-sharing-R35kK

Conversation

@eddmann

@eddmann eddmann commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Prepend a UTC timestamp to user messages (in message content, not the
system prompt) so the agent knows the current time without busting the
Anthropic prompt cache. Inject an iteration warning as a text block
alongside tool results when the agent is within 3 iterations of the
MAX_ITERATIONS limit, giving it a chance to wrap up gracefully.

https://claude.ai/code/session_0174EJAtE2uyd6hBDWE3SWFJ

Prepend a UTC timestamp to user messages (in message content, not the
system prompt) so the agent knows the current time without busting the
Anthropic prompt cache. Inject an iteration warning as a text block
alongside tool results when the agent is within 3 iterations of the
MAX_ITERATIONS limit, giving it a chance to wrap up gracefully.

https://claude.ai/code/session_0174EJAtE2uyd6hBDWE3SWFJ
@eddmann
eddmann merged commit 243148d into main Feb 25, 2026
2 checks passed
@eddmann
eddmann deleted the claude/agent-information-sharing-R35kK branch March 27, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants