Skip to content

Set up development environment for Claude Code source#1

Draft
noobyzy wants to merge 2 commits intomainfrom
cursor/development-environment-setup-d548
Draft

Set up development environment for Claude Code source#1
noobyzy wants to merge 2 commits intomainfrom
cursor/development-environment-setup-d548

Conversation

@noobyzy
Copy link
Copy Markdown
Owner

@noobyzy noobyzy commented Apr 1, 2026

Summary

Sets up the development environment for building and running the decompiled Claude Code v2.1.88 source from scratch.

Changes

  • Runtime dependencies added to package.json — all npm packages required by the bundled CLI (lodash-es, react, commander@12, @anthropic-ai/sdk, etc.)
  • @types/node added as dev dependency for TypeScript checking
  • Stubs for internal/native packages that aren't publicly available:
    • stubs/ant-claude-for-chrome-mcp/ — Anthropic-internal Chrome MCP integration
    • stubs/color-diff-napi/ — native syntax highlighting module
    • stubs/modifiers-napi/ — native keyboard modifier module
  • AGENTS.md with Cursor Cloud specific build/run instructions and known gotchas

Hello World Demo

cli_hello_world_demo.mp4

CLI subcommands exercised without API key: version, agents, auth status, mcp list, and prompt (auth required).

Terminal showing all CLI commands

Testing

  • node dist/cli.js --version2.1.88 (Claude Code)
  • node dist/cli.js --help → full help text with all options
  • node dist/cli.js agents → lists 3 built-in agents
  • node dist/cli.js auth status → returns auth JSON
  • node dist/cli.js mcp list → shows no MCP servers configured
  • node dist/cli.js -p "Hello World" → correctly requests authentication
  • ⚠️ npm run check → pre-existing tsconfig issues only (stubs outside rootDir, baseUrl deprecation)
  • ⚠️ npm run build → known issues documented in QUICKSTART.md; manual build procedure in AGENTS.md works

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 2 commits April 1, 2026 03:22
…, and AGENTS.md

- Add runtime dependencies to package.json (lodash-es, react, commander@12, etc.)
- Add @types/node for TypeScript checking
- Create stubs for internal/native packages (@ant/claude-for-chrome-mcp,
  color-diff-napi, modifiers-napi) that are not publicly available
- Create AGENTS.md with Cursor Cloud specific build and run instructions
- Update stubs/global.d.ts (generated by prepare-src)

Co-authored-by: noobyzy <[email protected]>
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