GitHub 热榜实测|Worktrunk:一周+2292星
GitHub 热榜实测|Worktrunk:一周+2292星
Git worktree 手动管理太碎了——建、切、删、清,AI agent 每跑一个并行任务就得开一个新工作区。Worktrunk 把这堆操作压成一条 CLI,本周直接冲上热榜:+2292 star,总数 12070。下面我直接 clone 下来真机跑了一遍,没跑通的地方也如实记了。
项目为什么火
一句话定位:Rust 写的 Git worktree 管理 CLI,专为并行 AI agent 工作流设计。
它解决的痛点很具体:现在越来越多人在本地同时跑多个 AI agent(比如一个写、一个审、一个测试),每个 agent 需要一个独立的工作目录,Git worktree 是最轻量的隔离方案。但原生 git worktree add 参数多、清理逻辑要自己记,多开几个就乱。Worktrunk 把"建、列、删、清理"收进一个 CLI,降低心智负担。
几个客观数据点:
- 本周 star 增量 +2292,仓库总数 12070。
- 技术栈 Rust,CI 走 GitHub Actions(
ci.yaml),覆盖率接 Codecov。 - License:MIT OR Apache-2.0,双许可,商用无门槛。
- 官方文档站:worktrunk.dev。
实测过程
环境:macOS,Cargo 1.80.1。按时间线记录,哪步顺利哪步翻车,全部原样呈现。
Step 1:clone 仓库(顺利)
$ git clone --depth 1 https://github.com/max-sixty/worktrunk
Cloning into '/tmp/ght-smoke/max-sixty__worktrunk'...
exit=0,浅克隆成功,秒级完成。
Step 2:cargo build(翻车)
$ cargo build
exit=101
/.bash_profile: line 10: alias: -A: not found
/Users/aresen/.bash_profile: line 11: alias: -CF: not found
error: failed to parse manifest at `/private/tmp/ght-smoke/max-sixty__worktrunk/Cargo.toml`
Caused by:
feature `edition2024` is required
The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.80.1).
Consider trying a newer version of Cargo (this may require the nightly release).
See https://doc.rust-lang.org/night
直接 exit=101。原因清楚:项目 Cargo.toml 声明了 edition2024,而本机 Cargo 1.80.1 尚未稳定该特性。
Step 3:cargo run(同样翻车)
$ cargo run
exit=101
/.bash_profile: line 10: alias: -A: not found
/Users/aresen/.bash_profile: line 11: alias: -CF: not found
error: failed to parse manifest at `/private/tmp/ght-smoke/max-sixty__worktrunk/Cargo.toml`
Caused by:
feature `edition2024` is required
The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.80.1).
Consider trying a newer version of Cargo (this may require the nightly release).
See https://doc.rust-lang.org/night
和 Step 2 完全相同的报错。本次实测到这里为止,未跑通,没有继续升级 Cargo 重试验证。
过程感总结:clone 无压力,但构建这一步对 Rust 工具链版本有硬要求,老版本 Cargo 直接卡死在 manifest 解析阶段,连"编译失败"都算不上——是"连编译都没开始就挂了"。
踩坑记录
以下全部来自本次真机执行记录,无编造:
- Cargo 版本硬门槛:
edition2024要求较新 Cargo(1.80.1 不支持)。报错原文:The package requires the Cargo feature called 'edition2024', but that feature is not stabilized in this version of Cargo (1.80.1).来源:本次cargo build/cargo run输出。 - Shell 环境噪声:执行时
.bash_profile第 10、11 行 alias 定义报错(alias: -A: not found),与项目本身无关,但会干扰终端输出阅读。来源:同上输出。 - 官方 issue 区:本次未获取到 issues 数据,暂无高频已知问题可引用。
使用说明
基于 README 当前可获取内容(不添加未出现的参数):
- 定位:CLI 工具,管理 Git worktree,面向并行 AI agent 工作流。
- 安装/构建:Rust 项目,通过
cargo build编译;需 Cargo 版本支持edition2024。 - 文档:完整用法、参数说明见官方文档站 worktrunk.dev。README 当前摘录中未包含逐条 CLI 参数示例,具体子命令请以文档站为准。
- 许可:MIT OR Apache-2.0,可自由使用与分发。
给练手读者的建议路径:先把 Cargo 升到支持 edition2024 的版本,再
cargo build,然后对照 worktrunk.dev 上的子命令文档跑通"建一个 worktree → 列出来 → 删掉"最小闭环。
总结
该用的人:
- 本地同时跑 ≥2 个 AI agent / 代码生成任务,需要隔离工作目录;
- 想练 Rust CLI 工程(项目用了 edition2024、GitHub Actions + Codecov 完整 CI 链);
- 已经熟悉
git worktree概念,只是嫌手动敲命令烦。
不该用的人:
- 只在一个分支上干活、从不并行;
- 团队统一用容器/远程开发环境隔离,不需要本地 worktree;
- Rust 工具链低于 edition2024 且短期内不会升级——你会卡在构建阶段。
不吹不黑:本周 +2292 星说明需求真实存在,但项目刚把 worktree 操作封装成 CLI 这一层,距离"完整 agent 编排框架"还有距离,定位是工具不是平台。
系列预告: 本周共带来 7 个 GitHub 热榜项目,每天发布一篇,本篇为真机实测(跑不通也照写)。关注我,跟着热榜项目练手。
最后问一句: 你现在管多 agent 并行任务,是"一个仓库多 worktree"还是"直接 clone 好几份"?评论区一句话站个队就行。
做自动化这几年,最耗时间的从来不是写代码,是摸清每个平台的脾气。
这篇里提到的坑,都是真金白银踩出来的。
这篇里的场景你踩过类似的吗?是卡在「需求说不清」还是「改完就崩」?
评论区说说,我按最多人卡的点接着写。

浙公网安备 33010602011771号