Skip to content

feat: add context budget plugin - #56

Merged
frostming merged 1 commit into
mainfrom
codex/add-context-budget-plugin
Aug 14, 2026
Merged

feat: add context budget plugin#56
frostming merged 1 commit into
mainfrom
codex/add-context-budget-plugin

Conversation

@frostming

Copy link
Copy Markdown
Contributor

Summary

  • add a context-budget Bub plugin with a 200k default context limit
  • anchor estimates on provider-reported usage and estimate only trailing messages
  • reserve 16,384 tokens and inject an idempotent tape.handoff instruction near the limit
  • keep the usage baseline in TurnState and fall back to full estimation for fresh state
  • register the package in the workspace and document configuration and behavior

Validation

  • uv run pytest packages/bub-context-budget/tests
  • uv run ruff check packages/bub-context-budget
  • uv run ruff format --check packages/bub-context-budget

@frostming
frostming merged commit b463bda into main Aug 14, 2026
1 check passed
@frostming
frostming deleted the codex/add-context-budget-plugin branch August 14, 2026 11:03
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.

1 participant