Jujutsu Primer ethanlowman.com · 51 points · 28 comments · HN thread TL;DR Ethan...
HN Best 200 @best
Jujutsu Primer ethanlowman.com · 51 points · 28 comments · HN thread
TL;DR Ethan Lowman's primer walks through Jujutsu (jj), a Git-compatible version control tool, covering commits and change IDs, automatic snapshotting and rebasing, conflict handling, undo via the op log, squash and split workflows, and bookmarks as Git branches. It argues jj reduces working-memory overhead and makes stacked PRs practical, and it can be used side-by-side with an existing Git repo.
- jj has no staging area: the working copy is snapshotted automatically as a commit whenever a jj command runs, and the change ID stays stable while the commit ID changes on edit.
- Descendant commits are rebased automatically after edits; conflicts are recorded in the commit rather than blocking the workflow, and can be resolved later.
- jj undo and jj op log/restore provide a full history of repository operations, making mistakes easier to reverse than in Git.
- Bookmarks replace Git branches; jj git push can generate branch names from change IDs, and pushes behave like force-with-lease.
- The post recommends one change per PR and suggests stacked PR workflows, with tools such as jj-pancake mentioned as a future post.
- Jujutsu can be used alongside Git in the same repository, so users can try it without fully leaving Git.
Discussion The thread is a mix of practitioner enthusiasm and skepticism. Several long-time jj users describe using it daily on large monorepos or with AI coding agents, and debate whether jj's Git compatibility helps adoption or holds it back, with some arguing for a JJ-native forge. Others question whether it is worth learning versus Git wrappers like lazygit, ask for guidance on what a good commit history looks like, or say the post does not explain why to choose jj. Agent-assisted development is a recurring subtopic. The overall mood is positive but measured, with a few dismissive or joking comments.
- jj is better designed than Git and worth learning (many): Experienced users say jj's simpler fundamentals allow more workflows to work well, reducing the need for wrappers. One user has used it for about two years on a large monorepo.
- Git compatibility is needed for adoption and forge support (some): Commenters argue that Mercurial faded partly because it was not Git-compatible and that GitHub's dominance makes compatibility important. Others counter that Git itself spread despite being incompatible with CVS.
- A JJ-native forge and backend would unlock more benefits (some): Some users think Git backing restricts jj and want forges and storage designed for jj, citing Git scaling problems and GitHub outages as reasons the moment is right.
- jj works well with AI coding agents once configured (some): Several users report that agents such as Claude handle jj well after writing skills or reference files, and one describes a 28-commit stack built by an agent. Others still find agents fall back to git commands.
- Agents struggle with jj and git is still easier for them (a few): One commenter found agents hard to steer toward jj and had to switch back to git for tooling compatibility, though they later returned to jj with a skill.
- Learning a VCS is less useful when AI does the work (a few): A commenter argues mastering jj or git no longer matters because Claude handles the hard parts, which others reply is a reason jj's undo helps.
- Missing guidance on good commit history and the case for jj (some): Commenters want real-world examples of clean history and clearer reasons to switch from git; one says the linked resources do not explain why to choose jj.
- Dislike of automatic bookmark naming (a few): One commenter dislikes the generated branch names, while noting that automatic rebasing and non-blocking conflicts might be useful after more testing.
Links from the comments
- Chris Krycho's jj guide recommended in the thread.
- Google's guidance on writing good change descriptions.
- A jj workflow skill for agents, shared by a user who got Claude working with jj.
#jujutsu #git #versionControl #developerTools #stackedPRs #aiAgents