Repository navigation
feat(config): add context_1m_models for models that default to 1M - #187
Open
kleinmatic wants to merge 1 commit into
Open
kleinmatic wants to merge 1 commit into
kleinmatic wants to merge 1 commit into
Conversation
Claude Fable models are 1M by default, so their names never carry [1m] and abtop shows context % against 200K until usage passes 200K. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #109. Current Claude models (Fable 5, Opus 5, Sonnet 5, Haiku 5.5) have a 1M window by default, so the model name never carries
[1m]and abtop assumes 200K until a session passes 200K tokens. A session at 199K tokens shows 99.7% context used. The real figure is about 20%.This adds a config key listing model-name prefixes that should get a 1M window:
I made it a setting rather than a hardcoded model list so it doesn't need a release every time a new model ships.
Tested with
cargo testand against my own live sessions on macOS. Listed models now show 1M; unlisted models stay at 200K.🤖 Generated with Claude Code