Skip to content

De-branding roadmap: remove Anthropic/Claude references (layer 1+2, protocol rename only) #419

Description

@dahai80

Context

The SDK-level decoupling is already complete: zero @anthropic-ai/* imports, zero related npm deps, protocol types locally defined in src/types/anthropic-protocol.ts. A repo scan finds ~995 remaining textual references, falling into three layers.

Scope decision

Layer 1 + Layer 2 are in scope. Layer 3 (internal Messages wire protocol) stays — only the file/type naming goes neutral. "Thorough" means: no branding residue, no Anthropic network calls, neutral protocol naming — NOT rewriting the protocol layer.

Layer 1 — naming / branding (mechanical, low risk)

  • Rename src/types/anthropic-protocol.ts to a neutral name (e.g. messages-protocol.ts) + update the ~173 anthropic-protocol references
  • Model-name heuristics in src/services/llm/capability.ts (includes("claude-opus-4") etc.) — replace with semantic capability detection
  • UI strings, comments, docs referencing "Claude Code" / Anthropic
  • src/tools/AgentTool/built-in/claudeCodeGuideAgent.ts — rename or repurpose
  • claudemd-parser export name (package.json) — rename to neutral (project-md-parser?)

Layer 2 — Anthropic network paths (needs product decision embedded in review)

  • src/constants/oauth.ts (api.anthropic.com OAuth) — remove first-party OAuth path
  • Console API key path (direct api.anthropic.com)
  • anthropic-ratelimit-unified-* response-header parsing
  • anthropic-beta / anthropic-version header emission
  • src/upstreamproxy/upstreamproxy.ts:121 hardcoded api.anthropic.com
  • src/tools/WebFetchTool/utils.ts:231 api.anthropic.com/api/web/domain_info hosted-service call — replace with local/neutral implementation or drop the cache optimization
  • @anthropic-ai/sandbox-runtime / @anthropic-ai/mcpb textual references

Layer 3 — out of scope (record only)

  • Internal Anthropic Messages format as the canonical protocol: query loop, streaming, tool-use schemas, prompt caching (cache_control), token counting, ~900 test fixtures. Keeping it; only naming goes neutral (layer 1 item).

Suggested PR split

  1. Protocol file/type rename (layer 1, mechanical)
  2. Branding + capability heuristics sweep (layer 1)
  3. Network paths removal (layer 2)
  4. Leftovers + docs

🤖 Generated with Claude Code

Activity

  1. dahai80 commented on Nov 30, 2026

    @dahai80
    OwnerAuthor

    Implementation complete in PR #420. Key changes: layer 1 — protocol file renamed to messages-protocol.ts (107 imports), capability.ts heuristics replaced with semantic family/generation parsing, claudeCodeGuideAgent → fusionGuideAgent (fusion-guide, Claude docs fetch dropped), claudemd-parser export renamed to project-md-parser, user-visible strings/comments/docs neutralized; layer 2 — first-party OAuth config + claude.ai CIMD doc removed, no default LLM provider (FUSION_BASE_URL required), hosted domain_info preflight dropped, policy-limits/fast-mode/profile/voice-STT/GrowthBook endpoints now env-configurable with fail-open defaults, OAuth beta header emission removed. Layer 3 wire protocol and stored-token subscriber machinery kept per scope decision (documented in PR). Gates: tsc 0 errors, lint no new diagnostics, layer/flag checks green, build green, 1312+529+79 tests pass. Please review.

  2. dahai80 commented on Dec 1, 2026

    @dahai80
    OwnerAuthor

    Status update after #420/#424 and the compat-drop PR #426:

    Done

    Deferred with reasons

    • claude-* model-id strings (~3000 refs): these are external model identifiers and legacy user-config/migration data, not branding. Removing them is a user-data migration project, not a de-brand sweep.
    • fastMode claude_code_penguin_mode endpoint: the whole fastMode feature targets infra that no longer exists — recommend deleting the feature (product call needed).
    • Foundry provider status branch: display-only leftover of an already-removed provider.

    Upstream coordination

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions