# 项目结构 ``` bin/claude-haha # 入口脚本 preload.ts # Bun preload(设置 MACRO 全局变量) .env.example # 环境变量模板 src/ ├── entrypoints/cli.tsx # CLI 主入口 ├── main.tsx # TUI 主逻辑(Commander.js + React/Ink) ├── localRecoveryCli.ts # 降级 Recovery CLI ├── setup.ts # 启动初始化 ├── screens/REPL.tsx # 交互 REPL 界面 ├── ink/ # Ink 终端渲染引擎 ├── components/ # UI 组件 ├── tools/ # Agent 工具(Bash, Edit, Grep 等) ├── commands/ # 斜杠命令(/commit, /review 等) ├── skills/ # Skill 系统 ├── services/ # 服务层(API, MCP, OAuth 等) ├── hooks/ # React hooks └── utils/ # 工具函数 ```