Teaching material for worktrunk: a couple of book chapters - feedback most welcome
Hi, I basically journaled my learning of Git beyond the porcelain commands by creating an interactive book with an in-browser sandbox (real git repo in a Docker container and wt preinstalled). I ended up dedicating two chapters to worktrunk as the natural ergonomic layer to work alongside AI agents.
Ch 7 Worktrees: https://ctbaum.com/advanced-git/#/worktrees grounds worktrees as the unit of parallelism for agent-era workflows. Every wt verb is paired with the underlying git worktree sequence it wraps so that readers feel grounded and no magic has been introduced.
Ch 14 Worktrunk: https://ctbaum.com/advanced-git/#/worktrunk covers the surface area that earns wt as a daily driver: lifecycle hooks committed in .config/wt.toml, wt step for-each, PR shortcuts, the lifecycle-primitives vs. wt step CLI shape, the commit.generation template-append slot for project commit conventions, and the plugin bridges to Claude Code / Codex / OpenCode etc.
The book's repo is at https://gitlab.com/ctbaum/advanced-git If anything misrepresents wt, or you'd want a section adjusted, I'd happily take a PR or just fix it on a note from you.
Thanks for shipping it.
Thanks for sharing this — pairing each wt verb with the underlying git worktree sequence it wraps is a genuinely nice way to keep readers grounded, and the agent-era framing fits how the tool is meant to be used.
This is more of a heads-up than a bug report, so I'll leave the substance for a maintainer to look over — they're best placed to say whether anything in the worktrunk chapters needs adjusting and to take you up on the offer of a PR or notes.
I like this a lot! thanks @ctbaum
the lifecycle view is v nice!
I'm really glad you like it! @max-sixty
I'm doing some final touches and the Spanish version is pretty much done.
The final recognition would be a hyperlink from your dev pages, maybe? lemme know, thanks!