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.
git 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.1 | $0.00112 | $0.01279 |
| Opus 5.5 | $0.00045 | $0.00512 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (19 stars, last pushed 28d ago), licensed MIT. It adds 112 tokens to every session and 1,279 once invoked, about $0.0004 per session on Opus 5.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.
event-driven-designer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| event-driven-designeraayushostwal/nexus | Agent | 19 | 28d ago | MIT | A | 112 | Claude Code |
| broadcasting-agentSofttor/nestjs-hexagonal | Agent | 5 | 1mo ago | MIT | A | 58 | Claude Code |
| dotnet-architecture-reviewerStefanTheCode/dotnet-ai-toolkit | Agent | 26 | 3mo ago | MIT | A | 102 | Claude Code |
| api-explorerhuangjia2019/claude-code-engineering | Agent | 1.2k | 3mo ago | none | A | 22 | Claude Code |
| openai-api-expert0xfurai/claude-code-subagents | Agent | 1.0k | 1y ago | MIT | A | 23 | Claude Code |
| backend-architectNikiforovAll/claude-code-rules | Agent | 142 | 5d ago | Apache-2.0 | A | 19 | Claude Code |
| PHP MCP Expertarchubbuck/workspace-architect | Agent | 19 | yesterday | ISC | A | 20 | Claude Code |