Skip to content

fix: drop claude-code package, save ~80MB in docker image#38

Closed
craigbidenbot[bot] wants to merge 1 commit intomasterfrom
craig/drop-claude-code-package
Closed

fix: drop claude-code package, save ~80MB in docker image#38
craigbidenbot[bot] wants to merge 1 commit intomasterfrom
craig/drop-claude-code-package

Conversation

@craigbidenbot
Copy link
Copy Markdown
Contributor

@craigbidenbot craigbidenbot bot commented Mar 1, 2026

Summary

Removes the separate @anthropic-ai/claude-code package (~80MB) from the Docker image. The agent SDK already bundles cli.js internally — brain mode's query() spawns it as a subprocess, so installing claude-code was pure duplication.

Changes

  • Remove @anthropic-ai/claude-code from npm install -g
  • Add thin shell wrapper at /usr/local/bin/claude → SDK's bundled cli.js (keeps workspace mode functional)
  • Combined with PR fix: slim docker image to fix registry push timeout #37's ripgrep/wasm cleanup: npm layer drops from ~190MB → ~27MB

Test Plan

  • wrangler deploy from claudflare/ — image should push without timeout
  • Brain mode: send DM → verify agent SDK responds
  • Workspace mode: verify claude wrapper works (optional, not current focus)

The agent SDK already bundles cli.js internally. Brain mode uses the SDK's
query() which spawns cli.js as a subprocess. Installing @anthropic-ai/claude-code
separately was redundant (~80MB duplicate).

A thin shell wrapper at /usr/local/bin/claude delegates to the SDK's bundled
cli.js so workspace mode still works if needed.

Combined with the existing ripgrep/wasm cleanup from PR #37, the npm install
layer should drop from ~190MB to ~27MB.
@rsproule rsproule self-requested a review March 1, 2026 15:26
@craigbidenbot
Copy link
Copy Markdown
Contributor Author

craigbidenbot bot commented Apr 11, 2026

Closing — 6 weeks stale, ambient-agent has likely moved on.

@craigbidenbot craigbidenbot bot closed this Apr 11, 2026
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