Bearpaws

Safety habits for AI assistants that write code.
AI coding assistants, such as Claude Code, can write and change software on their own. Bearpaws is a free add-on that makes them more careful when a mistake would be costly, and keeps them quick when it wouldn't.
A one-line change to how passwords are checked can do more harm than a 500-line change to how a page looks. So Bearpaws judges each change by what could go wrong, not by how big it is. For risky changes, such as logins, payments, or deleting data, the assistant has to show that its work is safe. It runs tests before and after the change, gets a second, independent review, and reports the results. Everyday changes skip that extra work. In Claude Code, Bearpaws doesn't just ask for this: it stops the assistant from calling risky work finished until the review has happened.
The rest of this page is written for developers.
Difficulty is not danger
A one-line change to authentication logic is simple to write but carries high risk. A 500-line UI refactor is complex but carries low risk. Bearpaws treats complexity and risk as separate axes:
| Low risk | High risk |
|---|
| Low complexity | Implement with TDD where it applies, verify with fresh evidence | Pin existing behavior, failing test first, narrow diff, stated assumptions, independent review, verification evidence |
| High complexity | Written plan, a fresh subagent per task, one combined review per task | Written plan, a fresh subagent per task, spec review then quality review, a final review |
The deciding factor is blast radius, not code size:
| Change | Complexity | Risk | Treatment |
|---|
| Rename button text | Low | Low | Routine |
| Rewrite animation system | High | Low | Routine, planned |
| Change password-reset validation | Low | High | Elevated: authentication |
| Modify tenant authorization | Medium | Very high | Elevated: authorization |
| Add a database migration | Medium | High | Elevated: data migration |
| Cap refunds at the order total | Low | High | Elevated: moving money |
Risk has two levels: routine and elevated. Bearpaws does not grade it any finer. When the classification is arguable, the change is elevated.
Show me
Every reply that changed files ends with a risk receipt. Routine work needs only Risk:, Verified:, Not checked:, and Status:. Elevated work adds the rest:
Risk: elevated (authorization)
Pinned: test_owner_allowed, test_admin_same_org passed before edit
Failing first: test_admin_cross_org_denied failed, then passed
Review: bp:code-reviewer — Ready to merge: Yes
Open: none
Assumptions: org_id is never null on users or resources
Verified: pytest — 12 passed before, 14 passed after, 0 failed
Not checked: none
Status: COMPLETE
In Claude Code, a Stop hook enforces the floor:
- A reply that leaves file edits pending without a receipt is blocked. Every reply with edits needs
Risk:, Verified:, Not checked:, and Status: (COMPLETE or INCOMPLETE, with optional trailing note); elevated work adds Pinned:, Failing first:, Review:, Open:, and Assumptions:. Empty fields may continue onto following bullet lines.
- Elevated work cannot end
Status: COMPLETE unless a review completed after the last edit, test-file edits included, Review: is not a placeholder (none, skipped, n/a, -, todo, tbd, pending, self-review (with or without trailing text), bare no/not, or no/not followed by review/done/run/yet/applicable/needed), and Open: says none. A review counts only when dispatched to a reviewer subagent_type (code-reviewer, bp:code-reviewer, reviewer) or a non-Explore/Plan/guide/fork Agent/Task with a matching review description whose PostToolUse tool_response shows a returned non-error result with text (run_in_background: true, async_launched, and SendMessage never count). Status: INCOMPLETE is never blocked for an unfinished review, unrun or failing tests, or open findings, though the required receipt fields themselves must still be present.