feat(anthropic): commit the ultracode claude-cli backend to source#77
Merged
Merged
Conversation
…n 2026.6.7)
Reconstructs + preserves the BenchAGI ultracode feature that had only ever existed as an out-of-tree dist patch. The complete Path B was never committed and survived only compiled in the live web-chat gateway dist (a real durability gap).
Path B: registers a second claude-cli backend 'claude-cli-ultracode' (buildAnthropicCliBackendUltracode) with config.ultracode=true + aliases claude-{opus-4-8,4-7,4-6,sonnet-4-6}-ultracode -> real models, at both registration sites. Injection foundation (config.ultracode -> --settings {"ultracode":true}) + config type/zod included. Verified: tsgo:prod clean; dist carries the backend + 4 aliases + injection.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
LightDriverCS
marked this pull request as ready for review
June 18, 2026 06:14
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
Commits the BenchAGI ultracode claude-cli backend to source. Until now this feature existed only as an out-of-tree dist patch — and the complete implementation (Path B) was never committed: it survived only compiled in the live web-chat gateway's
dist. That's a real durability gap (one lost dist = feature gone). This PR makes it source.Built + verified on
v2026.6.7(this branch =main+ this one commit).What ultracode is
A per-request lever for the full Claude Code ultracode effect via the web app:
buildAnthropicCliBackendUltracode()registers a second claude-cli backendclaude-cli-ultracode, identical to the base but withconfig.ultracode = trueand model aliasesclaude-{opus-4-8,opus-4-7,opus-4-6,sonnet-4-6}-ultracode → real models.normalizeClaudeBackendConfiginjects--settings '{"ultracode":true}'only for that backend.x-openclaw-model: anthropic/claude-opus-4-8-ultracode→ only those turns route to the variant → ultracode fires; normal turns stay off.Changes (6 files)
extensions/anthropic/cli-backend.ts— addCLAUDE_CLI_ULTRACODE_BACKEND_ID+buildAnthropicCliBackendUltracode().extensions/anthropic/setup-api.ts+register.runtime.ts— register the variant at both sites.extensions/anthropic/cli-shared.ts— the injection (config.ultracode → --settings).src/config/types.agent-defaults.ts+zod-schema.core.ts— type/schema theultracodebackend field.Verification
pnpm tsgo:prodclean;pnpm buildgreen.claude-cli-ultracode+ all 4-ultracodealiases + the{"ultracode":true}injection (faithful to the live dist).Hammer → Anvil handoff
claude-clibehavior unchanged.scratch/foundation-cycle/ultracode-reapply.patch(222 lines) as a bridge until this lands.🤖 Generated with Claude Code