Set up development environment for Claude Code source#1
Draft
Set up development environment for Claude Code source#1
Conversation
…, 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]>
Co-authored-by: noobyzy <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up the development environment for building and running the decompiled Claude Code v2.1.88 source from scratch.
Changes
package.json— all npm packages required by the bundled CLI (lodash-es, react, commander@12, @anthropic-ai/sdk, etc.)@types/nodeadded as dev dependency for TypeScript checkingstubs/ant-claude-for-chrome-mcp/— Anthropic-internal Chrome MCP integrationstubs/color-diff-napi/— native syntax highlighting modulestubs/modifiers-napi/— native keyboard modifier moduleAGENTS.mdwith Cursor Cloud specific build/run instructions and known gotchasHello 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 --version→2.1.88 (Claude Code)node dist/cli.js --help→ full help text with all optionsnode dist/cli.js agents→ lists 3 built-in agentsnode dist/cli.js auth status→ returns auth JSONnode dist/cli.js mcp list→ shows no MCP servers configurednode dist/cli.js -p "Hello World"→ correctly requests authenticationnpm 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 worksTo show artifacts inline, enable in settings.