This repository is a reconstructed local snapshot of the Claude Code CLI/TUI.
It is not the original upstream build environment. The project has been adapted so it can be built and used locally from this folder.
- A reconstructed TypeScript/Bun-based Claude Code CLI.
- The current local build produces a working
distfolder. - This snapshot is intended for local experimentation, debugging, and recovery work.
- Node.js 18 or newer
- Bun 1.x
- npm
npm installnpm run buildThis generates the compiled output in dist/.
Interactive mode:
bun dist/entrypoints/cli.jsHelp:
bun dist/entrypoints/cli.js --helpDiagnostics:
bun dist/entrypoints/cli.js doctorVersion:
bun dist/entrypoints/cli.js --versionPrint mode with a prompt argument:
bun dist/entrypoints/cli.js -p "Explain this project"Print mode with stdin:
"Explain this project" | bun dist/entrypoints/cli.js -pbun dist/entrypoints/cli.js --helpbun dist/entrypoints/cli.js doctorbun dist/entrypoints/cli.js authbun dist/entrypoints/cli.js mcpbun dist/entrypoints/cli.js pluginbun dist/entrypoints/cli.js agents
Write debug logs to a file:
bun dist/entrypoints/cli.js --debug-file .\claude-debug.logRead the last lines:
Get-Content .\claude-debug.log -Tail 200- This is a reconstructed build, not the original packaged release.
- The version may appear as
0.0.0+reconstructed. - Auto-update behavior should not be treated as reliable in this snapshot.
npm run buildis the supported local build path.npm run typecheckmay still fail because the snapshot is incomplete compared to the original source tree.
- Um snapshot reconstruido da CLI/TUI do Claude Code em TypeScript/Bun.
- O build local atual gera uma pasta
distutilizavel. - Este snapshot serve para uso local, depuracao e recuperacao do projeto.
- Node.js 18 ou mais recente
- Bun 1.x
- npm
npm installnpm run buildIsso gera a saida compilada em dist/.
Modo interativo:
bun dist/entrypoints/cli.jsAjuda:
bun dist/entrypoints/cli.js --helpDiagnostico:
bun dist/entrypoints/cli.js doctorVersao:
bun dist/entrypoints/cli.js --versionModo print com prompt na linha de comando:
bun dist/entrypoints/cli.js -p "Explique este projeto"Modo print recebendo texto via stdin:
"Explique este projeto" | bun dist/entrypoints/cli.js -pbun dist/entrypoints/cli.js --helpbun dist/entrypoints/cli.js doctorbun dist/entrypoints/cli.js authbun dist/entrypoints/cli.js mcpbun dist/entrypoints/cli.js pluginbun dist/entrypoints/cli.js agents
Gravar logs em arquivo:
bun dist/entrypoints/cli.js --debug-file .\claude-debug.logLer as ultimas linhas:
Get-Content .\claude-debug.log -Tail 200- Este e um build reconstruido, nao o release original empacotado.
- A versao pode aparecer como
0.0.0+reconstructed. - O mecanismo de auto-update nao deve ser considerado confiavel neste snapshot.
npm run builde o caminho de build local suportado.npm run typecheckainda pode falhar porque o snapshot nao esta completo em relacao a arvore original.