forked from cardosofelipe/fast-next-template
feat(context): Phase 2 - Token Budget Management #80
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Implement accurate token counting and budget allocation for context management.
Parent Issue
Implementation Tasks
1. Create
budget/calculator.pyTokenCalculatorclasscount_tokenstool via MCPClientManager2. Create
budget/allocator.pyTokenBudgetdataclassremaining()methodcan_fit()methodallocate()methodto_dict()for reporting3. Create
budget/__init__.pyFiles to Create
Acceptance Criteria
can_fit()andallocate()work correctlyDependencies
Labels
phase-2,context,backend