Pattern A — Delegator + specialists
A single coordinator agent owns the top of the funnel. It fetches the backlog, decides which specialist each transaction belongs to, and re-tags accordingly (e.g.,needs-review-gmail, needs-review-subscriptions, needs-review-p2p). Each specialist watches its own tag and works through its slice independently.
How it’s wired
- Coordinator: runs first on each cadence. Queries
needs-review, inspects each transaction, and callsupdate_transactionsto:- Remove
needs-reviewwith a note (“routed to gmail specialist”). - Add the specialist tag (
needs-review-gmail, etc.).
- Remove
- Specialists: each runs on its own schedule (or on a webhook trigger), queries its tag, and works the batch like a solo reviewer. It closes items by removing the specialist tag with a note and a final category.
Coordinator system prompt sketch
Pros and cons
Pros- One queue to monitor. Humans look at
needs-reviewand know nothing has fallen through. - Routing logic lives in a single place — easier to evolve as patterns emerge.
- Specialists can stay narrow and cheap; they don’t need to understand every transaction shape.
- Adds an extra hop. A transaction is touched twice before resolution.
- The coordinator is a single point of failure: if it stops running, specialists never see new work.
- Debugging routing mistakes means tracing annotations across two agents.
Pattern B — Specialists with scoped filters, no delegator
Instead of routing via a coordinator, each specialist queries its own tag directly, and rules at sync time pre-populate those tags based on conditions. No agent is responsible for routing — the rules engine does it.How it’s wired
- Rules at sync time tag transactions into the right specialist queues as they arrive. Example rules:
- P2P rule:
name contains "ZELLE" OR name contains "VENMO" OR name contains "CASH APP"→add_tag p2p-review(and optionally still addneeds-review). - Subscription rule: matches known merchant list →
add_tag subscription-review. - Fallback: the seeded
needs-reviewrule still runs for everything the other rules didn’t catch.
- P2P rule:
- Specialists each query
tags=["<their-slug>", "needs-review"](all-of semantics) to work the intersection. - Generalist agent handles anything that’s still
needs-reviewafter the specialists have had their pass.
Example P2P routing rule
Pros and cons
Pros- No routing hop — specialists act directly on what rules produced.
- No single point of failure. A specialist that stops running only affects its own slice.
- Cheaper at steady state: one pass per specialist, no coordinator inference on every transaction.
- Routing is spread across rule definitions. If you want to change how P2P is routed, you edit rules (one more layer than a prompt tweak).
- Rules can’t reason about context the way an LLM can. Edge cases — a Zelle that’s actually a rent payment, for instance — will slip through to the wrong specialist.
- The fallback generalist has to be capable of handling anything that fell out of the rule mesh.
Which to choose
Pattern A is better when your transactions need contextual routing decisions — “this looks like a subscription because the amount is $14.99 and it matches last month’s charge from the same merchant.” Pattern B is better when routing is pattern-based — merchant substring or amount threshold. Most households we’ve watched start with Pattern B for the bulk of traffic and layer a small Pattern A coordinator only for the ambiguous edge cases.
needs-review without any specialist tag. Best of both — cheap in the common case, smart when it matters.
Coordinating the cadence
However you split the work, agree on a schedule. A typical setup:- Sync runs: hourly (cron).
- Rules fire: on every sync (automatic).
- Specialist agents: run 15 minutes after sync, each one narrowly scoped.
- Coordinator (if using Pattern A): runs 5 minutes after sync.
- Generalist fallback: runs nightly, sweeps whatever remains.
Related reading
- Single Routine Reviewer — the baseline loop each specialist reuses.
- Understanding Rules — the DSL you’ll lean on heavily in Pattern B.
- Zelle / Venmo Analysis — what a P2P specialist actually does once it’s handed a batch.
- Tracking Subscriptions — what a subscriptions specialist focuses on.