Prompt 01: Install Bun Runtime & Dependencies

Tags

internal-docs rebuild-prompt

Content

Prompt 01: Install Bun Runtime & Dependencies

Context

You are working in /workspaces/claude-code, which contains the leaked source code of Anthropic's Claude Code CLI. It's a TypeScript/TSX project that uses Bun as its runtime (not Node.js). The package.json specifies "engines": { "bun": ">=1.1.0" }.

There is no bun.lockb lockfile — it was not included in the leak.

Task

  1. Install Bun (if not already installed): curl -fsSL https://bun.sh/install | bash Then ensure bun is on the PATH.

  2. Run bun install in the project root (/workspaces/claude-code) to install all dependencies. This will generate a bun.lockb lockfile.

  3. Verify the install — confirm that:

  4. node_modules/ exists and has the major packages: @anthropic-ai/sdk, react, chalk, @commander-js/extra-typings, ink (may not exist separately — check @anthropic-ai/sdk, zod, @modelcontextprotocol/sdk)
  5. bun --version returns 1.1.0+

  6. Run the typecheck to see current state: bun run typecheck Report any errors — don't fix them yet, just capture the output.

  7. Also install deps for the mcp-server sub-project: cd mcp-server && npm install && cd ..

Verification