task-funnel

Give Claude Code or Antigravity a task. Get back a verified pull request you can trust.
A delivery funnel plugin that turns "fix this" or an issue number into an isolated git worktree branch, runs your real project checks (lint, types, tests), subjects the code to an adversarial review whose findings must survive refutation, and opens a clean draft PR while advancing your project board.
When a change touches critical paths (money, permissions, multi-tenancy, database schemas), task-funnel stops for your explicit approval on the specification before a single line of production code is written.
/task-funnel:task 575
How It Works: Dynamic Risk Lanes
Rather than treating every task with the same heavy ceremony or letting agents run wild on sensitive code, task-funnel classifies work into three lanes based on your repository's configured risk.paths:
┌────────────────────────┐
│ Issue / Task / Prompt │
└───────────┬────────────┘
│
[Risk Evaluator]
│
┌───────────────────────┼───────────────────────┐
▼ ▼ ▼
[Trivial Lane] [Direct Lane] [Risk Lane]
(Copy, typos, docs) (Standard features) (Money, auth, schema)
│ │ │
Direct Edit Short Spec Premise Check
│ │ │
Your Checks Implementation ╔═════════════════════╗
│ │ ║ STOP FOR APPROVAL ║
│ Your Checks ║ (Spec & Plan) ║
│ │ ╚══════════┬══════════╝
│ 1-Round Review │
│ (Refutation gate) Tests First
│ │ │
│ │ Implementation
│ │ │
│ │ Your Checks
│ │ │
│ │ 5-Lens Review
│ │ (2 Refutation rounds)
└───────────────────────┼───────────────────────────┘
▼
┌─────────────────────────────────┐
│ Isolated Git Worktree Branch │
│ Passes All Gates & Tests │
│ Board Updated + Draft PR Opened │
└─────────────────────────────────┘
| Lane | Best For | Verification Pipeline |
|---|
trivial | Typos, copy strings, documentation, config tweaks | Code edit → Runs repo checks → Pushes branch & draft PR. |
direct | Standard features, helpers, routine bugfixes | Short spec → Code edit → Runs repo checks → 1-round refutation review → Draft PR. |
risk | Payments, permissions, tenancy, migrations, shared APIs | Premise verification → Spec written & waits for human approval → Tests written first → Code edit → 5-lens adversarial review (up to 2 refutation rounds) → Draft PR. |
Measured Performance: Why Use It?
Measured per lane across identical models, prompts, and codebases using claude plugin eval --ablation with-without:
| Task Category | Bare Claude Code | With task-funnel |
|---|
| Trivial Task (copy fix) | Skips repo checks in 3 of 8 runs (0.95) | Runs checks every time, 8 of 8 (1.00) (+$0.12, +13s) |
| Simple Task (helper function) | Writes code, passes (1.00) | Writes code, runs checks, adds verified review (1.00) (+$0.12, -1s) |
| Risky Task (payment/rule fix) | Edits code without checks: 0.08 accuracy | Checks premise, stops for human spec approval: 1.00 accuracy (+$0.33, +63s) |
Key Guarantees