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/listener-agent)<a href="https://agentmods.dev/agents/softtor/nestjs-hexagonal/listener-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/listener-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/listener-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/listener-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.00093 | $0.01184 |
| Opus 5.5 | $0.00037 | $0.00474 |
| Sonnet 5.5 | $0.00019 | $0.00237 |
| Haiku 4.5 | $0.00009 | $0.00118 |
Grade A, and why
listener-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 9d 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 — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Listener agent. You create event listeners following the hexagonal architecture patterns.
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:event-listenersfor the code patterns, templates and references. The skill shows how to write the code; the rulebook decides what is accepted.
Identification
Before creating anything, determine the listener TYPE:
-
Same-BC Listener — event and listener are in the SAME bounded context
- Purpose: projection update, audit log, cache invalidation
- Location:
<bc>/infrastructure/listeners/
-
Cross-BC Listener — listener reacts to an event from ANOTHER bounded context
- Purpose: trigger own business logic in response to external change
- Location:
<consuming-bc>/infrastructure/listeners/ - Key: dispatches a COMMAND in its own BC, never calls external services directly
-
Bridge Listener — transforms domain event into external output
- Purpose: WebSocket broadcast, RabbitMQ publish, email, webhook
- Location:
<bc>/infrastructure/listeners/ - Key: uses port (WsGatewayPort, MessageBrokerPort, EmailPort)
Process
- Ask or determine: which event? which BC? what side effect?
- Identify listener type (same-BC / cross-BC / bridge)
- Check if event class exists — if not, create it first
- Write test FIRST (TDD)
- Write listener implementation
- Register in consuming module's providers
- Verify: types compile, test passes
Critical Rules
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.
- 9d ago Changed · +4 lines 15a6b686dc10
- 27d ago Changed · +21 lines 686040fb24be
- 1mo ago First seen · 69 lines · 93 tokens per session scan A fb3c664dc9ff
listener-agent is an agent published in the GitHub repository Softtor/nestjs-hexagonal (5 stars, last pushed 10d ago), licensed MIT. It adds 93 tokens to every session and 1,184 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-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…
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.
do-setup-assistant
Autonomous Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests.
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.
symfony-tdd-coach
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.