Skip to content

feat(anthropic): commit the ultracode claude-cli backend to source#77

Merged
LightDriverCS merged 1 commit into
mainfrom
feat/ultracode-cli-backend-2026.6.7
Jun 18, 2026
Merged

feat(anthropic): commit the ultracode claude-cli backend to source#77
LightDriverCS merged 1 commit into
mainfrom
feat/ultracode-cli-backend-2026.6.7

Conversation

@LightDriverCS

Copy link
Copy Markdown

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 backend claude-cli-ultracode, identical to the base but with config.ultracode = true and model aliases claude-{opus-4-8,opus-4-7,opus-4-6,sonnet-4-6}-ultracode → real models.
  • normalizeClaudeBackendConfig injects --settings '{"ultracode":true}' only for that backend.
  • The web app sends 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 — add CLAUDE_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 the ultracode backend field.

Verification

  • pnpm tsgo:prod clean; pnpm build green.
  • Built dist carries claude-cli-ultracode + all 4 -ultracode aliases + the {"ultracode":true} injection (faithful to the live dist).

Hammer → Anvil handoff

  • Scope: additive backend registration + config typing. Base claude-cli behavior unchanged.
  • Touched surfaces: Anthropic CLI backend registration. No gateway/HTTP/runtime-routing changes here (the model→backend route is openclaw.json config, already live).
  • Firebase/App Hosting/Functions/Firestore: none.
  • Deploy impact: enables building ultracode natively on the new openclaw base (no post-install dist patch). Gateway cutover stays operator-gated + side-by-side (live dist = rollback anchor).
  • Local gates: tsgo:prod ✓, build ✓, dist markers ✓.
  • Blockers: none for merge. The complete reapply patch is also restored at scratch/foundation-cycle/ultracode-reapply.patch (222 lines) as a bridge until this lands.
  • Follow-ups: deploy the 6.7 ultracode build to the Pro web-chat + mini1 gateways (gated); fold canon/bridge re-needle separately.

🤖 Generated with Claude Code

…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
LightDriverCS marked this pull request as ready for review June 18, 2026 06:14
@LightDriverCS
LightDriverCS merged commit 376308f into main Jun 18, 2026
194 checks 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