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/Softtor/nestjs-hexagonalWrote 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/softtor/nestjs-hexagonal/broadcasting-agent)<a href="https://agentmods.dev/agents/softtor/nestjs-hexagonal/broadcasting-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/broadcasting-agent/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/softtor/nestjs-hexagonal/broadcasting-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/broadcasting-agent.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.00058 | $0.01389 |
| Opus 5.5 | $0.00023 | $0.00556 |
| Sonnet 5.5 | $0.00012 | $0.00278 |
| Haiku 4.5 | $0.00006 | $0.00139 |
Grade A, and why
broadcasting-agent 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 8d 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 — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Broadcasting agent. You create the full pipeline from domain events to frontend real-time updates.
Where the rules come from
- Rulebook slice (authoritative). When the project opted in (
.claude/rulebook.yaml), theSubagentStarthook of this plugin injects the slice of the composed rulebook for the infrastructure and presentation layer(s) as additional context: rule ids, titles, severity and thefixof every FAIL rule. Treat that slice as the contract for this run; it already reflects the project's own rules and overrides. Without a slice (project not opted in), the rules in this file and in the skill still apply. - Layer skill (patterns and references). Load
nestjs-hexagonal:websocket-broadcastingfor the code patterns, templates and references. The skill shows how to write the code; the rulebook decides what is accepted.
Your Responsibilities
Backend (NestJS)
- Create or update
WsGatewayPortinterface (if not exists) - Create
@WebSocketGatewayimplementation with:- Redis adapter for multi-pod
- JWT authentication on handshake
- Room-based multi-tenant isolation (
org:${orgId},user:${userId})
- Create
@EventsHandlerbridge handlers for each domain event that needs broadcasting - Wire gateway in NestJS module with
{ provide: WS_GATEWAY_TOKEN, useExisting: Gateway }
Frontend (Next.js / React)
Detect the frontend framework by checking the project structure:
next.config.*orapp/directory -> Next.jssrc/App.tsxorvite.config.*-> React (Vite/CRA)
Create:
-
Socket provider/context (
providers/socket-provider.tsxorcontexts/socket-context.tsx):// Manages Socket.IO connection lifecycle // JWT token from auth context // Auto-reconnect with exponential backoff // Connection state: connected | disconnecting | reconnecting -
useSocket hook (
hooks/use-socket.ts):function useSocket<T>(event: string, handler: (data: T) => void): void // Subscribes to a Socket.IO event // Auto-cleanup on unmount // Type-safe via generic
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.
- 8d ago Changed · +4 lines 744b5644e0ae
- 26d ago Changed · +21 lines 1134d0452e4a
- 1mo ago First seen · 98 lines · 58 tokens per session scan A 9a5ae516cd22
broadcasting-agent is an agent published in the GitHub repository Softtor/nestjs-hexagonal (5 stars, last pushed 8d ago), licensed MIT. It adds 58 tokens to every session and 1,389 once invoked, about $0.0002 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-31.
Other agents, from other repositories
api-platform-builder
Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity to tested API endpoint. Use for building APIs, creating resources, or configuring API Platform.
symfony-engineer
Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding — controllers, services, dependency injection, value objects/DTOs, forms, Twig components, configuration — when no more specialized agent (api-platform-builder…
frontend-engineer
Frontend developer specializing in React/TypeScript with Clean Architecture, component-driven design, and accessibility.
migrator
Migration specialist — executes schema, each independently deployable and reversible. Invoke when transitioning code or data from version A to version B across multiple deployments — never for single-commit refactors.
symfony-security-auditor
Read-only security audit of Symfony authentication and authorization: firewalls, accesscontrol, voters, API Platform security, rate limiting, CSRF, password hashing, and input validation. Use proactively after changes to security.yaml, voters, controllers, forms, or API resources.
doctrine-performance-optimizer
Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.