How ycbro/claude-code-haha works
Claude-Code-YCbro is a local Claude Code-style terminal coding assistant, launched with a bundled Anthropic-to-DeepSeek proxy. The documented user flow is to provide an API key, choose a model and working directory, then use the Ink TUI to interact with the assistant; requests pass through the local proxy to DeepSeek, and tool calls let the assistant work in the project. The tree and README establish several feature areas, but source excerpts are limited, so links between unsampled subsystems are omitted unless the README documents them.
Main entry points: QueryEngine.ts Query engine · exe-launcher.ts EXE launcher · App.tsx Ink terminal UI · commands.ts Command registry
Components 15
Launch and proxy
- EXE launcher
exe-launcher.ts - Protocol proxy
exe-launcher.ts
Assistant runtime
- Ink terminal UI
src/ink/components/App.tsx - Command registry
src/commands.ts - Query engine
src/QueryEngine.ts - API query flow
src/query.ts
Project capabilities
- Tool framework
src/Tool.ts - Skills and commands
src/commands.ts - Project workspace
Extensions and state
- Session state
src/bootstrap/state.ts - Transcript storage
src/utils/sessionStorage.ts - MCP services
src/services/mcp/MCPConnectionManager.tsx - Plugin installation
src/services/plugins/PluginInstallationManager.ts
Other components
- User
- DeepSeek API
Connections 15
- User → EXE launcher: configures
README.md - EXE launcher → Protocol proxy: starts
README.md - EXE launcher → Ink terminal UI: opens
README.md - Ink terminal UI → Protocol proxy: sends requests
README.md - Protocol proxy → DeepSeek API: converts and forwards
README.md - Ink terminal UI → Query engine
- Query engine → API query flow: uses query flow
src/QueryEngine.ts - Query engine → Command registry: loads commands
src/QueryEngine.ts - Query engine → Tool framework: uses tools
src/QueryEngine.ts - Query engine → Session state: uses session state
src/QueryEngine.ts - Session state → Transcript storage: tracks sessions
src/utils/sessionStorage.ts - Tool framework → Project workspace: acts on
- User → MCP services: configures
- User → Plugin installation: manages
- Command registry → Skills and commands: includes
src/commands.ts