slicewise
A disciplined, self-verifying feature-dev loop for Claude Code — every commit gets dual-model review, tests are the ground truth, and you decide what lands.

🇰🇷 한국어 README
AI can write a feature in seconds. The bottleneck was never typing — it's trust. Who reads every
commit? Who actually runs the tests? Who catches the concurrency bug that only shows up under load?
slicewise makes that rigor automatic. It builds one slice at a time, and for every commit
unit it runs a full test gate and dispatches two independent reviewers in parallel, then
reconciles their findings — before handing the commit to you to run. The agent writes and
verifies; the human decides what lands.
It's stack-agnostic (auto-detects npm / cargo / go / gradle / pytest / make) and needs zero config to
start.
The loop
flowchart TD
A["📖 Read first<br/>report drift before coding"] --> B["✂️ Plan<br/>small file-disjoint commit units"]
B --> C["⌨️ Implement one unit<br/>+ build/test gate"]
C --> D{"🔍 Dual review<br/>two reviewers, in parallel"}
D -->|"Lens A — correctness & security"| E["⚖️ Reconcile"]
D -->|"Lens B — simplicity & conventions"| E
E -->|"🔴 must-fix → verify, apply,<br/>prove with a new test"| C
E -->|"clean"| F["✅ Re-verify → commit handoff"]
F --> G["🧑 You run the commit<br/>on a fresh branch"]
G --> H["📝 Doc sync + drift sweep"]
H -.->|next slice| A
The four principles (non-negotiable)
- No auto-commit. The agent never runs
git commit. It hands you exact, file-disjoint git
blocks; you run them, on a fresh branch. You stay in control of history.
- Always dual review. Every commit unit (even the "trivial" one) gets two independent reviewers
in parallel, then a reconcile pass. No risk-based skipping; that's where the subtle bugs hide.
- Tests are the ground truth. Build floor per unit, full suite green before anything lands, and
real integration tests, not mocks, for risky changes (concurrency, migrations, money, auth).
- No scope creep. Current issue only. Anything outside the plan gets asked about first.
Install
/plugin marketplace add pjw81226/slicewise
/plugin install slicewise@slicewise
Then just describe a slice: "add a POST /todos/:id/complete endpoint", "fix this bug",
"refactor this module". Or run /slicewise <task> explicitly.
What a run looks like
See the full worked example — a real slice from drift report to
reconciled commit, including the moment where two reviewers disagree about a concurrency bug and a
test settles it. The short version:
- Phase 1 catches that
docs/api.md says done: boolean but the schema uses completed_at — a
stale contract, reported before any code is written.
- Phase 4 runs two reviewers; one flags a TOCTOU race the other called fine. The reconcile
step writes the concurrent-request test, watches it fail, and lands the atomic fix — proof, not
opinion.
- Phase 5 hands you the
git add … && git commit … block. You land it.
Dual review + reconcile — the part that matters
Two reviews aren't twice the value if you just concatenate them. The
reconcile rubric is the decision step: must-fixes are verified then
proven with a test, reviewer conflicts are resolved by evidence, not by vote, and over-engineering
is rejected with a stated reason — because a reconcile that only ever says "good point, fixed" is
rubber-stamping, not judgment.
By default the two reviewers are the bundled Claude reviewer run with two different lenses (zero setup).
For cross-model diversity, point one reviewer at Codex — see configuration.
Configuration
Zero-config by default — the loop auto-detects your toolchain. To override anything (custom
integration-test command, extra docs to read, a Codex reviewer), drop a .slicewise.yml at the
repo root. Full schema and the auto-detect table: docs/configuration.md.
test: "npm test"
integration: "npm run test:it"
reviewers: ["codex", "code-reviewer"] # cross-model dual review
Requirements