Chapters

Built by modmyclaude

A diff, told in ordered chapters with risk marks, and a pane that walks you through them.

Review changesv0.2.0
Chapters running in Claude Code
An illustration of Chapters, drawn from the mod's own text.
Tests35 passing
Model callsone per review you ask for (two for a big diff)
Commands1
Settings3

Read a diff in chapters

Chapters turns a diff into ordered review notes with risk marks and matching hunks in Claude Code. It uses model calls; check the changes yourself.

Reported behavior and access

Files Reads local data

Runs read-only Git plumbing and reads untracked files, never a secrets file. Each review you ask for sends the redacted diff and its file paths in one model call, two for a big diff.

Shell commands Subprocesses used

Runs read-only Git plumbing and reads untracked files, never a secrets file. Each review you ask for sends the redacted diff and its file paths in one model call, two for a big diff.

Network Used through Claude Code or subprocesses

Runs read-only Git plumbing and reads untracked files, never a secrets file. Each review you ask for sends the redacted diff and its file paths in one model call, two for a big diff.

Added model calls Uses the session provider

Runs read-only Git plumbing and reads untracked files, never a secrets file. Each review you ask for sends the redacted diff and its file paths in one model call, two for a big diff.

Sound Not reviewed

Behavior has not been source-reviewed for this version. Check the README before relying on its access.

Handled events config.set "chapters.enabled", session.start, tool.call, turn.start, turn.complete, command.run /chapters, ui.render AbovePrompt, ui.render Pane

Event registration does not mean blocking. Read the source for whether an event observes, changes or holds an action.

README-reported behavior, not a sandbox guarantee. Source v0.2.0, 0f5ef73, reviewed 22 Oct 2026

Original Claude Code validator report

reads files

Can read files, but cannot write them.

commands

Can run commands.

network

Does not make network requests.

model

Can call a model.

sound

Does not play sound.

Validator hook registrations

Uses hooks: config.set, tool.call.

Static validator signals can miss indirect effects, optional configuration and engine-managed storage.

How it works

Slash commands

/chapters

A readable review of your changes, in chapters with risk marks

Settings

enabledDefault: true
Switch chapters off without uninstalling it. The modmyclaude hub flips this too.
modelDefault: haiku
The model that writes the review: haiku (the default, about $0.0013 per 500 changed lines) or any alias or id Claude Code takes, such as sonnet, at that model's price.
baseDefault: main
What /chapters branch compares this branch with when you name none.

Hook events

config.set "chapters.enabled"session.starttool.callturn.startturn.completecommand.run /chaptersui.render AbovePromptui.render Pane

The prompt

Details

added 12 Oct 2026updated 23 Oct 2026MITSource on GitHub

Pairs well with