Bumper Lanes
Bumper lanes is a circuit breaker for Claude Code: it tracks how much code Claude has written since the last review and blocks Claude from continuing until the accumulated changes are reviewed — by you (the default), or by a code review the agent must run on itself before it may proceed.

What It Does
Bumper-Lanes tracks how much code Claude has written or edited, blocking further edits when a threshold is exceeded. 600 points corresponds roughly to that many lines of code added, depending on the mix of new files vs edits.
When the threshold is exceeded:
- Fuel gauge warnings show escalating alerts after each Write/Edit (70% NOTICE → 90% WARNING) to you and to Claude
- Stop hook blocks Claude from continuing when threshold exceeded
- Reset command (
/bumper-reset) restores the budget after you review
Beyond the size budget, opt-in tripwires flag high-risk change classes (CI config, dependency manifests, disabled tests) immediately, at any score.
Installation
claude plugin marketplace add kylesnowschwartz/claude-bumper-lanes
claude plugin install claude-bumper-lanes
Requirements: Go 1.21+ (binaries are built automatically on first session start)
Usage
Work normally with Claude. If the configurable threshold is exceeded:
- Claude will be blocked from continuing
- Review your changes (
/bumper-diff shows what changed since the baseline)
- Optionally commit:
git add -u && git commit -m "message" (resets the baseline automatically)
- Or Manually reset the baseline:
/bumper-reset
- Continue working with restored budget
With on_trip: review, step 1 changes: instead of waiting for you, the trip instructs the agent to run a code review of the increment (your review_command), clear the breaker itself (bumper-lanes review-clear), and implement the findings against the fresh budget. Every self-clear is recorded in the event log, and max_auto_reviews caps how many happen before a trip comes back to you.
Pulling or rebasing mid-session is free: the baseline follows commits that land (under the default reset_on: commit), so upstream changes are never charged against the budget.
Commands
| Command | Description |
|---|
/bumper-diff | Show the diff visualization (working tree vs review baseline) |
/bumper-reset | Reset baseline after reviewing changes |
/bumper-pause | Pause threshold enforcement (session only) |
/bumper-resume | Resume threshold enforcement |
/bumper-config | Show current configuration |
/bumper-config <n> | Set repo threshold (0=disabled, 50-2000) |
Two CLI verbs run from the agent's shell (no slash command, no statusline JSON needed):
| Command | Description |
|---|
bumper-lanes budget | Print the remaining review budget in plain text (the agent uses this to size increments) |
bumper-lanes review-clear | Clear a tripped breaker after a self-review (only valid with on_trip: review) |
Status Line
The status line shows a one-line gauge: a traffic-light bar with the percentage of budget spent, a red ⚠ when a tripwire fired, and a green line count when the increment is net-negative (the tree shrank).
Status line setup is opt-in and only applies when you have no status line configured: answer yes to the "Add budget gauge to status line" prompt when enabling the plugin (or set "statusline_auto_setup": true in a repo .bumper-lanes.json) and the plugin points ~/.claude/settings.json at the bumper-lanes binary on session start. An existing status line command is never touched — compose the gauge into it yourself with bumper-lanes status --widget=indicator. Or configure manually:
{
"statusLine": {
"type": "command",
"command": "/path/to/.claude/plugins/cache/.../bumper-lanes status",
"padding": 0
}
}
For custom status lines, bumper-lanes status --widget=indicator prints just the bumper gauge.
Want rich diff visualizations? Use /bumper-diff in a session, or install diff-viz globally for standalone use:
go install github.com/kylesnowschwartz/diff-viz/v2/cmd/git-diff-tree@latest
Configuration
Set your defaults when enabling the plugin: /plugin > claude-bumper-lanes prompts for the threshold, reset policy, trip behavior, and status line setup, and stores them in your user settings. Change them any time through the same menu.
Precedence order:
.bumper-lanes.json at repo root (highest priority - per-repo overrides)
- Plugin settings (set via
/plugin, prompted at enable)
- Built-in defaults
The pre-v5 global file (~/.config/bumper-lanes/config.json) is not read; if it exists, /bumper-config warns until you move its values and delete it.
{
"threshold": 400,
"reset_on": "commit",
"statusline_auto_setup": false
}