bounded-context-modeler

bounded-context-modeler is an agent for Claude Code from testdouble/han. It costs 177 tokens per session (5,684 once invoked), scanned A, original, MIT.

A model builder that combines earlier domain findings into proposed bounded contexts. A bounded context is a part of a system where a particular vocabulary, business rules, and responsibilities have one consistent meaning.

In plain words
What is it for?
Use it to draft a domain model, group related business concerns, and examine whether technical modules reflect the business areas they serve.
Why use it?
It turns separate findings about language, behavior, structure, and ownership into a coherent view of the system. It also records when a proposed boundary is supported by limited evidence.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the han-ddd plugin — 1 skill, 6 agents shipped together

Good fit Use it to draft a domain model, group related business concerns, and examine whether technical modules reflect the business areas they serve.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/testdouble/han/bounded-context-modeler
Install

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.

Clone the repo
git clone --depth 1 https://github.com/testdouble/han

Made for: Claude Code.

Or install han-ddd, the plugin that ships this one along with the rest of its 1 skill, 6 agents.

Wrote 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.

agentmods badge for bounded-context-modeler

README.md
[![agentmods](https://agentmods.dev/badge/agents/testdouble/han/bounded-context-modeler/github.svg)](https://agentmods.dev/agents/testdouble/han/bounded-context-modeler)
Your own site
<a href="https://agentmods.dev/agents/testdouble/han/bounded-context-modeler"><img src="https://agentmods.dev/badge/agents/testdouble/han/bounded-context-modeler/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.

agentmods 80×15 button for bounded-context-modeler

Your own site · 80×15
<a href="https://agentmods.dev/agents/testdouble/han/bounded-context-modeler"><img src="https://agentmods.dev/badge/agents/testdouble/han/bounded-context-modeler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 177 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,684 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00177 $0.05684
Opus 5.5 $0.00071 $0.02274
Sonnet 5.5 $0.00035 $0.01137
Haiku 4.5 $0.00018 $0.00568

Measured 1mo ago against content hash 9c56774d07f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bounded-context-modeler 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 1mo 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.

han-ddd/agents/bounded-context-modeler.md · 364 lines

How it starts

The opening of the file, as written. The whole thing — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a bounded context modeler. Your job is to synthesize DL#, CAP#, OWN#, S#, and B# discovery findings into proposed bounded contexts whose vocabulary, capabilities, and ownership cohere around distinct domain concerns.

You work from convergence. A bounded context candidate is strong when evidence from at least two independent types points to the same domain concern: a language signal cluster, a capability cluster, and an ownership pattern that align. A candidate supported by only one evidence type is at most SPECULATIVE, regardless of how strong that single type is.

You do not read code to gather discovery evidence. You synthesize from what the analysis agents have already surfaced. When a synthesis claim is ambiguous or seems inconsistent with the evidence, use the Read, Glob, Grep, and find tools for a narrow targeted verification before committing to that claim.

A bounded context is a semantic model boundary: the region of the system where a particular domain model, vocabulary, and set of rules is coherent and internally consistent. It is not the same as a service, module, database, directory, or team structure — those are technical signals that may or may not reflect a semantic boundary.

Status Definitions

  • CURRENT: The repository strongly expresses this semantic boundary today, even if the technical implementation is imperfect. The vocabulary is consistent within it, the ownership is clear, and the capabilities cohere around a distinct domain concern. CURRENT requires affirmative evidence that the responsibilities inside the proposed context form a coherent model — not merely that the context is semantically distinct from its neighbors. Semantic distinction from adjacent contexts is necessary but not sufficient. If the evidence clearly differentiates the candidate from neighboring contexts but does not establish that its own responsibilities share a lifecycle, related business rules or invariants, a consistency boundary, or evolve as one domain concern, classify it SPECULATIVE rather than CURRENT.
  • LATENT: The evidence establishes that a distinct semantic model boundary already exists in the domain, but the technical implementation mixes, disperses, or obscures it. The boundary is real — the code just has not expressed it clearly. LATENT does not mean "could become a boundary", "should be extracted", "has one cohesive capability", "would improve structure if separated", or "is hidden inside a large class". If semantic boundary evidence is insufficient but the concern is meaningful, produce a DC# entry instead of LATENT.
  • SPECULATIVE: There is meaningful evidence for the boundary, but domain-expert knowledge is required before treating it as real. The candidate depends on an interpretation the evidence alone cannot confirm.

Read the full file on GitHub · 364 lines

Changes

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.

  1. 1mo ago First seen · 364 lines · 177 tokens per session scan A 9c56774d07f6

Subscribe to this mod's changes

bounded-context-modeler is an agent published in the GitHub repository testdouble/han (304 stars, last pushed today), licensed MIT. It adds 177 tokens to every session and 5,684 once invoked, about $0.0007 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-09-16.

Related

Other agents, from other repositories

parallel-reviewer

Parallel code review using 4 specialist agents (elixir-reviewer, security-analyzer, testing-reviewer, verification-runner). Use for thorough review of significant changes.

oliver-kriska/claude-elixir-phoenix · 38 tokens

requirements-verifier

Cross-check implementation against task requirements (Linear issue, GitHub issue, plan, spec). Use proactively during /phx:review when a task ID or plan file is detected.

oliver-kriska/claude-elixir-phoenix · 40 tokens

codex-reviewer

Run OpenAI Codex CLI code review and normalize findings into review panel format. Use when /phx:review runs with --codex for a cross-model second opinion on Elixir/Phoenix changes. Requires codex CLI; degrades to SKIPPED note.

oliver-kriska/claude-elixir-phoenix · 60 tokens

genshijin-reviewer

A Japanese code-review style that reports only concrete findings, one per line, with severity labels and file locations.

InterfaceX-co-jp/genshijin · 93 tokens

craft-code-reviewer-deep

Deep code review on Opus for high-stakes PRs — release branches, security-sensitive code, large architectural changes, migrations, multi-service flows. Read-only. Use when extra scrutiny is worth the token cost; use craft-code-reviewer for daily review.

michtio/craftcms-claude-skills · 61 tokens

challenger

Use when: before the lead reports a root-cause conclusion, a 'done/verified' claim, an irreversible action about to run (commit/deploy/rm/push), or a 2nd-time fix — in APEX or plain conversation; also every eLicit round and Verify gate. Do NOT use for: code correctness/lint/types/API usage (sniper's job), or as a veto…

fusengine/agents · 92 tokens