-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
needs-humanRequires human judgment or design input before implementationRequires human judgment or design input before implementation
Description
Problem
Every run.json has totalTokens: null. Token budget fields exist on cycles but are never populated at runtime. Budget tracking is declared but fictional.
What we need to understand
- What does the claude CLI return when invoked with --print? Does it include token usage in the output or headers?
- Does the Anthropic API return token usage on completion (input_tokens, output_tokens)?
- Can kata intercept/parse this from the subprocess stdout/JSON?
- Where in the run lifecycle should we collect and write tokens — at kiai complete? At each stage boundary?
- Should budget enforcement happen (warn when over) or just tracking?
This is a research-first issue
Do not build until the API surface is confirmed. Research output should answer the questions above and propose an implementation path.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-humanRequires human judgment or design input before implementationRequires human judgment or design input before implementation