max-sixty/worktrunk
Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Rust · ★ 12,428 · Fork 491 · 在 GitHub 查看
在手机上浏览源码、订阅每日 AI 趋势日报与项目架构深度解读:获取 CopoHub 客户端(iOS & HarmonyOS)→
GitHub Trending 上榜记录
max-sixty/worktrunk 已在 GitHub Trending 每日榜单上榜 5 天,最高排名第 2,首次上榜 2026-11-02,最近一次上榜 2026-11-06。
| 日期 | 排名 | Star | 当日增长 |
|---|---|---|---|
| 2026-11-06 | #7 | 11,711 | +546 |
| 2026-11-05 | #2 | 11,487 | +546 |
| 2026-11-04 | #2 | 10,994 | +524 |
| 2026-11-03 | #3 | 10,455 | +437 |
| 2026-11-02 | #12 | 10,003 | +136 |
同期上榜的项目
- zed-industries/zed – Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
- NVIDIA/auto-ontology – Auto Ontology is a Python framework for building semantic, graph-based reasoning layers over data. It enables deterministic query generation, better context retrieval, and more explainable AI for LLM and agent workflows.
- rails/rails – Ruby on Rails
- mpv-player/mpv – 🎥 Command line media player
- rust-lang/rust – Empowering everyone to build reliable and efficient software.
- react/react – The library for web and native user interfaces.
Worktrunk 项目深度剖析与商业评估报告
Worktrunk 项目深度剖析与商业评估报告
1. 核心定位与商业落地价值
Worktrunk 精准锚定了一个由 AI 编码代理(Claude Code、Codex 等)普及所催生的新型工程痛点:当单个开发者需要并行管理 5–10 个自主运行的 Agent 时,Git 原生 worktree 的用户体验成为瓶颈。原生流程 git worktree add -b feat ../repo.feat && cd ../repo.feat 存在三处摩擦:分支名重复输入、路径需手工推导、生命周期清理分散在多个命令中。
Worktrunk 的核心价值主张是将 worktree 抽象为"以分支名为寻址键"的一等公民,路径由可配置模板推导,命令同时接受分支名或路径。这把 worktree 操作的认知负荷降到与 git checkout 相当。
商业落地场景: AI 代理编排基础设施:wt switch -x claude -c feature-a -- 'Add user authentication' 一行命令完成"建分支 + 建 worktree + 启动 Agent + 注入任务提示",这是并行 Agent 工作流的事实标准入口。 多租户 CI/沙箱预置:hashport 模板过滤器为每个 worktree 分配唯一端口,天然适配"每 worktree 一个 dev server / 数据库"的隔离模式。 企业 PR 工作流加速:wt switch pr:123 直接跳转 PR 分支,wt list --full 聚合 CI 状态与 LLM 摘要,降低 code review 的上下文切换成本。
竞品差异化与护城河:同类工具(git-worktree 包装脚本、gwq、各类 dotfiles 函数)大多停留在命令封装层。Worktrunk 的护城河在于三点:(1) Rust 单二进制 + Shell 集成(wt config shell install)解决了"CLI 无法改变父 shell 工作目录"这一根本性限制;(2) APFS/btrfs/XFS 上的写时复制(CoW)缓存共享——十个 worktree 共享 target/、nodemodules/ 而无需重复构建或复制,这是纯脚本方案无法企及的系统级优化;(3) Hook 系统 + 别名 + 分支级变量构成的扩展生态,把工具从"命令"升级为"工作流平台"。7433 stars、263 forks 的社区规模,配合"最流行的 git worktree 管理器"的定位,已形成一定的网络效应。
2. 核心架构设计与技术深度
从工程结构推断,Worktrunk 采用分层命令架构:
在 README 中展示上榜徽章
[](https://github.fq6825.top/repo/max-sixty/worktrunk)