对上一版生命周期改动做两轮复查,共六处问题——其中三处会让"自愈"反过来伤到 可用性。 一、启动握手超时那条早退分支既不杀进程也不置 stopped(既有 bug),留下一个 常驻孤儿引擎,它的 flusher 永远持有 Arc<Inner>。上一版把这条从"泄漏"升级成 "能踹活引擎":孤儿日后咽气时 reader 照常上报,新逻辑会摘掉当前活引擎的句柄、 发崩溃横幅、再排一次自动重启。所有启动早退现在统一走 abort_startup(置 stopped + 关 stdin + kill/wait);child.stdin/stdout 取不到那条也补了 kill—— 此前同样把刚 spawn 的进程漏在外面。 二、上一条暴露的是更本质的缺口:"引擎退出了"这条通知不带"是哪一个"。除孤儿 场景外,重启期间旧引擎抢在 stop() 置位前自行退出也踩同一条路。每个引擎进程 现在带唯一 instance 号,DriverHost::take_instance 只在**在位的就是它**时才摘 句柄,否则整条处理直接返回。这比"检查句柄在不在"严实——后者挡不住"旧的死了、 新的已就位"。 三、上一版把 running() 改成按生命周期状态判定,于是崩溃态下关主窗口不再走 隐藏,窗口被真正销毁——**但进程并没有退**:ExitRequested 在托盘可用时一律 prevent_exit。而托盘的三个入口(左键、显示窗口、设置)都走 show_any_window, 它只 show 已存在的窗口。结果是托盘里剩一个再也叫不出来的应用,只有"退出" 可用。show_any_window 现在在窗口不存在时重建(回 index.html),这条同时修好 了既有的同形缺陷:启动失败页被关掉后同样叫不回来。 四、adopt_engine 顺带把监督代次 +1。保存设置与手动重启都会 reset 作废在途 退避,但浏览器配对刷新那条路径不会,而它同样拉起新引擎;靠调用点自觉必然漏 掉一条,绑在"就位"这个事实上才天然全覆盖。仍不重置 attempt——那归稳定期判据, 在这里清零等于认定"起来了就算成功",而"起来就崩"恰恰是必须触发熔断的故障。 五、UI 侧:事件路径记了"引擎 down 过"、补拉快照那条没记。于是页面在退避期间 加载时(自动重启途中刷新、或上次刷新正好落在崩溃里),引擎回来不会整页刷新, UI 攥着已失效的会话句柄。两条路改走同一个 apply。 六、stdin_tx 是 unbounded 通道,writer 线程早退后 send 依然"成功",崩溃瞬间 在途的 RPC 因此要挂到 30s 超时才报错。stopped 已置位,rpc/respond_rpc 开头 快速失败。另外 restart_engine_locked 的 Starting 此前盖不住整个重启窗口: take() 把状态落回 Stopped,而紧随的 stop() 最长 grace+3s,这几秒里 running() 为假。改成先外显再停。 验证:cargo test 136 passed(新增 1 例钉住实例守卫)、vitest 236 passed、 tsc --noEmit 无输出、命令契约检查器通过。另用真引擎跑了 e2e: e2e_stop_reconciles_running_session 等 4 例通过;e2e_chat_normalization 与 e2e_readonly_subagent_stays_synchronous 失败,但把代码回退到 dc6cdbda^ 跑同样 失败——是 agent submodule 更新后的既有行为漂移,与本次无关(两者标 #[ignore], CI 不跑,所以一直没被发现)。 注:验证时工作区另有一份并行进行的 session.rs 改动(会话 id 路径穿越加固), 不在本提交内;本提交的 diff 不引用其中任何符号。
MonkeyCode
Try Online · Self-Hosted Deployment · Discord · 中文
What Is MonkeyCode?
MonkeyCode is an open-source enterprise-grade AI development platform with built-in development environment management, AI model management, AI task management, and project requirement management. Unlike typical vibe coding tools, MonkeyCode is designed as an AI assistant for professional engineering teams.
- You can deploy MonkeyCode inside your enterprise network and share it with your R&D team, so developers can start development tasks quickly while engineering leaders manage AI development workflows centrally.
- You can also use our online environment directly. It includes managed development environments, built-in large language models, and native mobile support, so you can use leading AI agents anywhere.
Screenshots
AI Task Workspace |
Cloud Terminal and Task Execution |
Project Collaboration and File Management |
Mobile Task and File Management |
Features
You do not need to assemble tools, set up environments, or jump between workflows. Give MonkeyCode a requirement and it carries the work from development to validation, turning AI coding into a sustainable workflow.
- Free to start: No client download and no local environment setup. Open the browser, create an account, and start your first AI development task in seconds.
- Cloud development environments: No dependency on a local development machine. Every task runs behind a real server-side environment, with build, test, and preview workflows completed in the cloud.
- Broad model support: GLM, Kimi, MiniMax, Qwen, DeepSeek, and other mainstream models are integrated. You can switch by task type or select a model manually.
- Native mobile support: Deep iOS and Android support keeps PC and mobile data in sync, so agents can continue running tasks while you are away from your desk.
- Fully open source: The core code is public on GitHub. Anyone can audit, fork, and extend it while keeping control over technical choices and security policies.
- Private offline deployment: Enterprises and teams with strict data privacy requirements can deploy MonkeyCode inside their own networks and keep data local.
Usage
Online
Open MonkeyCode Online to get started:
Self-Hosted Deployment
Recommended configuration:
- MonkeyCode console: at least
2C / 4 GB / 40 GB - Development environment host: at least
8C / 16 GB / 100 GB
Online installation:
bash -c "$(curl -fsSL 'https://monkeycode-ai.com/online/install')"
For more deployment methods, configuration details, and operations guidance, see the deployment documentation.
Comparison
| Dimension | MonkeyCode | Cursor | Claude Code | Codex |
|---|---|---|---|---|
| Online usage | 🟢 | 🟢 | 🟢 | 🟢 |
| Local IDE | 🔴 | 🟢 | 🟢 | 🟢 |
| Local CLI | 🔴 | 🟢 | 🟢 | 🟢 |
| Requirement and SPEC management | 🟢 | 🔴 | 🔴 | 🔴 |
| Cloud development environment | 🟢 | 🟡 | 🟡 | 🟡 |
| Code completion | 🔴 | 🟢 | 🔴 | 🔴 |
| Automated PR / MR code review | 🟢 | 🟡 | 🟡 | 🟡 |
| Team collaboration | 🟢 | 🔴 | 🔴 | 🔴 |
| China model support | 🟢 | 🔴 | 🔴 | 🔴 |
| Private deployment | 🟢 | 🔴 | 🔴 | 🔴 |
| Open source | 🟢 | 🔴 | 🔴 | 🔴 |
Community and Support
Join the community to discuss MonkeyCode usage, deployment, and development with other developers.
![]() WeChat Group |
![]() Feishu Group |
![]() DingTalk Group |
You can also get support through:
- Documentation: https://monkeycode.docs.baizhi.cloud/
- Online service: https://monkeycode-ai.net/
- Enterprise consultation: https://baizhi.cloud/consult
- Discord: https://discord.gg/8NgHexaaMa
- GitHub Issues: https://github.com/chaitin/MonkeyCode/issues
Star History
License
MonkeyCode is open source under the GNU Affero General Public License v3.0.







