Skip to content

The Jujutsu Guide for Agentic CodingLet your AI agents run wild. Undo anything, rewrite everything.

Why This Book Exists

Two decades with Git. Then AI coding agents led me to Jujutsu.

jj log output showing a change graph with change IDs, authors, timestamps and descriptions

What You’ll Learn

  • Think in changes, not commits: the mental model that makes history editing feel natural
  • Undo anything with the operation log, no reflog archaeology required
  • Turn piles of AI-generated code into clean, reviewable history
  • Run parallel tasks—or parallel agents—with workspaces
  • Stop fearing merge conflicts: in jj, conflicts don’t block you
  • Ship your work to GitHub and collaborate with Git-based teams as usual
About The Style Of This Book

The dialogue isn’t decoration. It’s how the book teaches.

Dialogue between the senpai and the kōhai, as it appears in the book

Chapter Overview

Chapter 1

What Kind of Tool Is Jujutsu?

Chapter 2

Let’s Try Jujutsu

Chapter 3

Jujutsu × AI Workflow in Practice

Chapter 4

Advanced Jujutsu Techniques

Chapter 5

The Jujutsu Problem-Solving Guide

Free config files: make your AI agent use Jujutsu instead of Git

Who This Book Is For (And Who It Isn’t)

You’ll get the most out of Juju-chu! if:

  • Your AI agent writes most of your code, and Git’s three-state workflow keeps creating friction—or has already caused you to lose uncommitted work.
  • You’ve lost AI-generated work—never committed before the next prompt, wiped by a stray git reset --hard, or destroyed by a Git command the agent ran on its own.
  • Splitting massive AI code dumps into clean, reviewable, and logical changes feels like a tedious chore.
  • You still hold your breath during a Git rebase, constantly worried about breaking history or losing context.
  • You’re curious about Jujutsu, but want a practical blueprint for daily agentic development—not just abstract concepts or a list of commands.

This book is probably not for you if:

  • You are completely new to Git and GitHub. This book assumes familiarity with Git; it’s designed to help you move beyond it.
  • You wield reflog and interactive rebase with absolute confidence, and feel your Git workflow has zero friction.
  • You don’t use AI coding agents at all. The book is built around an AI-first development workflow.
Yuka Ooka
About The Author

Written by Yuka Ooka

The full story

Get the Book

  • Recommended

    PDF + EPUB

    From$12USD
    • DRM-free PDF and EPUB, both included
    • Free updates to this edition
    • Copyable, searchable command listings
    • The best way to support the author
    Buy on Leanpub
  • Kindle

    $12USD
    • Read across Kindle devices and apps
    • Reflowable text with syncing and notes
    • Instant delivery to your Kindle library
    Buy on Amazon
  • Paperback

    $18.50USD
    • The only way to get a physical copy
    • 163 pages, 6 × 9 in—easy to keep beside your keyboard
    • Printed and shipped by Amazon in your region
    Buy on Amazon

Frequently Asked Questions

Do I need any prior experience with Jujutsu?
Do I need to know Git?
Do I have to make my whole team switch from Git?
Do I need Claude Code or Codex?
Which version of Jujutsu does the book cover?
Will the book be updated?
Which edition is right for me?