Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

@Tarquinen Tarquinen commented Jan 20, 2026

improve UI for /dcp context command
improve accuracy and performance of /dcp context session part calculations

Tarquinen and others added 7 commits January 20, 2026 00:35
…ease

Sync master to dev post-release v1.2.4
- Add pruned tools count, tokens, and savings % to Summary section

- Change bar chart to show actual percentage of total context

- Bars now accurately represent each category's share of context
…ents

feat: improve /dcp context UI with pruned count and accurate bars
- Use API-reported values instead of tokenizer estimation where possible
- Remove reasoning category (absorbed into assistant as residual)
- Batch tokenizer calls for efficiency (4 calls instead of N)
- System: derived from first assistant input - first user tokens
- User: tokenized (batched)
- Tools: tokenized (batched, needed for pruning anyway)
- Assistant: calculated as residual (total - system - user - tools)
- Add detailed documentation explaining the calculation strategy
…lation-optimization

refactor: optimize token calculation in context command
Display 'Tools (X)' where X is the number of tools remaining in context
(total tools minus pruned tools)
feat: show tool count in context command UI
@Tarquinen Tarquinen merged commit 889dd70 into master Jan 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants