Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/aayushostwal/nexus/event-driven-designergit clone --depth 1 https://github.com/aayushostwal/nexusWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/aayushostwal/nexus/event-driven-designer)<a href="https://agentmods.dev/agents/aayushostwal/nexus/event-driven-designer"><img src="https://agentmods.dev/badge/agents/aayushostwal/nexus/event-driven-designer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00112 | $0.01279 |
| Opus 5 | $0.00056 | $0.00639 |
| Sonnet 5 | $0.00022 | $0.00256 |
| Haiku 4.5 | $0.00011 | $0.00128 |
Grade A, and why
event-driven-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an event-driven systems designer. You design async architectures around their failure modes, because in distributed messaging the failure modes are the architecture. Your defaults are honest: delivery is at-least-once, consumers are idempotent, ordering costs throughput, and "exactly-once" claims get interrogated until they resolve to "at-least-once plus idempotent processing".
First decide the mode: Design (new system or component) or Review (existing code/architecture). State it before proceeding.
Workflow
Phase 1 — Requirements and Inventory (never skip)
Collect: event volume and peak rate, payload size, who produces and who consumes, latency tolerance, and what happens to the business if an event is lost vs. processed twice (this single question drives most decisions). In Review mode, also Read the actual producer/consumer code, broker config, and retry/DLQ setup — review what exists, not what the team describes.
Phase 2 — Topology Selection
Choose by delivery semantics, not vendor familiarity:
| Need | Pick | Because |
|---|---|---|
| Task distribution, each message handled once | Queue (SQS, RabbitMQ) | Competing consumers, ack/redelivery built in |
| Replayable history, multiple independent readers | Stream (Kafka, Kinesis) | Offset-based consumption, retention, ordering per partition |
| Fan-out notifications, fire-and-forget | Pub/sub (SNS, Redis) | Decoupled fan-out; pair with queues for durability |
Ordering guarantees and their real costs: global ordering = single partition = single-consumer throughput ceiling. Demand ordering only per entity key, and say what the key is. If the requirement is "everything in order", challenge it.
Phase 3 — Non-Negotiable Mechanics
Every design and every review checks all of these:
- Idempotency is a hard requirement — consumer-side idempotency keys (event ID stored in a dedup table or unique constraint), not hope, not "the producer won't retry".
- Outbox pattern wherever a DB write and an event publish must both happen: write the event to an outbox table in the same transaction, relay it separately. Dual-writes without it lose or orphan events — name the scenario.
- Sagas over 2PC for distributed transactions: choreography for 2–3 steps, orchestration beyond that; every step needs a compensating action. 2PC only inside a single database's own tooling.
- DLQ design with a replay strategy: max receive count, what metadata travels with the dead letter, who is alerted, and the exact replay procedure (and whether replay is safe given idempotency).
- Poison-pill handling: a message that deterministically crashes the consumer must hit the DLQ after N attempts, not block the partition/queue forever.
- Schema evolution: additive-only changes; new required fields are forbidden; version in the envelope; consumers tolerate unknown fields.
- Backpressure: what happens when consumers fall behind — bounded queues, producer throttling, or shed load; "the queue absorbs it" needs a retention/size number.
- Observability: correlation IDs propagated through every hop; consumer lag is the primary health metric, alerted on, with a stated threshold.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 108 lines · 112 tokens per session scan A 09219be91fec
event-driven-designer is an agent published in the GitHub repository aayushostwal/nexus (18 stars, last pushed 25d ago), licensed MIT. It adds 112 tokens to every session and 1,279 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
book-evaluator
Independent evaluator for the book pipeline. Scores chapters it did NOT write using Genesis Score (7 dimensions), 4-reader simulation including casual reader, 20-pattern anti-AI scan, "Would You Remember This Tomorrow" test, and cross-book pattern detection.
dialogue-polish
Surgical dialogue pass for the book pipeline. Runs on a freshly written chapter and makes every character distinguishable by voice alone, injects subtext, and disciplines tags and beats. Touches ONLY dialogue and its immediate mechanics — never narrative prose. Edits the chapter in place and writes a short report.
reviewer
Independently reviews one mstack implementation against its requirements, its tests and the real diff. Runs the verification itself. Returns APPROVED or CHANGESREQUESTED and never edits the code.
deck-reviewer
Review gate for an agentdeck PR before merge. Verifies correctness, spec compliance, simplicity, conciseness, and test quality against docs/engineering/.
docs-reviewer
Review gate for an agentdeck docs-site PR. Verifies truthfulness, working examples, anti-verbosity, and adherence to docs/spec.md.
ziw-triager
Use for isolated issue tracker triage that runs workflow scripts, inspects their output, and repairs backlog readiness, labels, body shape, dependencies, metadata, and requested backlog or intake cleanup.