Files
myagents/desktop
Zhengshou Lai 2ac1c9750e refactor(desktop): code review fixes
- Shortcut: Cmd+Shift+C → Cmd+Shift+M (avoid Chrome DevTools conflict)
- Preload: onData/onExit now return cleanup functions (fix memory leak)
- PTY: resolve shell path at construction time, throw on missing claude CLI
- Terminal: remove allowProposedApi, dedupe resize listeners, add cleanup
- Main: debounce window move config writes (500ms), restart PTY on activate
- CSS: remove unused orbGlow keyframes
- Package: fix appId to com.apaam.myclaude, skip code signing, remove unused deps
2026-05-27 11:23:14 +08:00
..
2026-05-27 11:23:14 +08:00

MyClaude Pet

桌面宠物外壳 for Claude CLI。常驻屏幕角落,点击展开终端聊天框。

特性

  • 会话保持 — Claude CLI 进程常驻后台,收起/展开不影响对话
  • 宠物外壳 — 80x80 悬浮 orb,可拖拽,呼吸动画
  • CRT 终端 — 复古终端风格,扫描线 + 文字发光效果
  • 全局快捷键Cmd+Shift+CmacOS/ Ctrl+Shift+CWin/Linux)快速显示/隐藏
  • 位置记忆 — 窗口位置自动保存

开发

npm install
npm run rebuild   # 编译原生模块(node-pty
npm run dev       # 启动开发环境

构建

npm run build

前端输出到 dist/Electron 输出到 dist-electron/

要求

  • macOS / Windows / Linux
  • Node.js 20+
  • 已安装 Claude CLI 并登录