Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/codeaashu/claude-code
/ createBudgetTracker
Function
createBudgetTracker
src/query/tokenBudget.ts:13–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
}
12
13
export
function
createBudgetTracker(): BudgetTracker {
14
return
{
15
continuationCount: 0,
16
lastDeltaTokens: 0,
17
lastGlobalTurnTokens: 0,
18
startedAt: Date.now(),
19
}
20
}
21
22
type
ContinueDecision = {
23
action:
'continue'
Callers
1
queryLoop
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected