Add token budget feedback to Coder agent

t-352.5·WorkTask·
·
·
·Omni/Agent/Subagent/Coder.hs
Parent:t-352·Created1 month ago·Updated1 month ago

Description

Edit

The system prompt warns about token limits but the agent doesn't get live feedback about remaining budget. The agent may not realize it's approaching limits until it hits a guardrail.

Options: 1. Add a 'check_budget' tool that returns remaining tokens/cost 2. Inject a system message at 50% and 80% budget thresholds 3. Add budget info to tool result messages

This helps the agent pace itself and wrap up gracefully instead of hitting hard limits.

Timeline (2)

🔄[human]Open → InProgress1 month ago
🔄[human]InProgress → Done1 month ago