feat(loop): propagate context usage from Claude backend#319
Open
williamjameshandley wants to merge 6 commits into
Open
feat(loop): propagate context usage from Claude backend#319williamjameshandley wants to merge 6 commits into
williamjameshandley wants to merge 6 commits into
Conversation
Gemini 3.1 Pro released today with improved reasoning (77.1% ARC-AGI-2) and precise tool usage. Adds both the standard and customtools variants, updates default_model, and adds medium thinking_level support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Extract usage, cost, and turn count from Claude Code's result event and propagate through daemon → protocol → client → MCP tool. The messenger appends a context percentage warning when usage exceeds 80%. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7593415 to
2b9c5f0
Compare
Resolve conflicts: take master's model definitions (shared.py), keep branch's _CONTEXT_WINDOW and _get_context_footer in messenger. Co-Authored-By: Claude Opus 4.6 <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.
Summary
RunOutput(str)subclass provides backward-compatible metadata enrichment onclient.run()Test plan
[context: N%]warning when Claude context exceeds 80%client.run()still works as a plain string in existing consumersRunResultMCP tool output includes usage fields when available🤖 Generated with Claude Code