Jason Woltje
|
22dc964503
|
feat(#329): Add usage budget management and cost governance
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
Implement BudgetService for tracking and enforcing agent usage limits:
- Daily token limit tracking (default 10M tokens)
- Per-agent token limit enforcement (default 2M tokens)
- Maximum concurrent agent cap (default 10)
- Task duration limits (default 120 minutes)
- Hard/soft limit enforcement modes
- Real-time usage summaries with budget status
(within_budget/approaching_limit/at_limit/exceeded)
- Per-agent usage breakdown with percentage calculations
Includes BudgetModule for NestJS DI and 23 unit tests.
Fixes #329
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-05 13:00:26 -06:00 |
|