cargo-coupling: Agent for Claude Code

.claude/agents/balance-advisor.md

balance-advisor is an agent for Claude Code from nwiizo/cargo-coupling. It costs 43 tokens per session (342 once invoked), scanned A, original, MIT.

An architecture advisor based on coupling, the degree to which parts of a software system depend on one another.

In plain words
What is it for?
Use it to review system design, domain-driven design, and refactoring decisions involving module or service boundaries.
Why use it?
It helps explain trade-offs between keeping code together and separating it, instead of treating zero dependencies as the only goal.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is nwiizo/cargo-coupling's own configuration. It tells Claude Code how to work on cargo-coupling itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cargo-coupling configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nwiizo/cargo-coupling. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nwiizo/cargo-coupling/main/.claude/agents/balance-advisor.md
Clone the repo
git clone --depth 1 https://github.com/nwiizo/cargo-coupling

Made for: Claude Code.

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 balance-advisor

README.md
[![agentmods](https://agentmods.dev/badge/agents/nwiizo/cargo-coupling/balance-advisor/github.svg)](https://agentmods.dev/agents/nwiizo/cargo-coupling/balance-advisor)
Your own site
<a href="https://agentmods.dev/agents/nwiizo/cargo-coupling/balance-advisor"><img src="https://agentmods.dev/badge/agents/nwiizo/cargo-coupling/balance-advisor/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 balance-advisor

Your own site · 80×15
<a href="https://agentmods.dev/agents/nwiizo/cargo-coupling/balance-advisor"><img src="https://agentmods.dev/badge/agents/nwiizo/cargo-coupling/balance-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 342 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.00043 $0.00342
Opus 5.5 $0.00017 $0.00137
Sonnet 5.5 $0.00009 $0.00068
Haiku 4.5 $0.00004 $0.00034

Measured 20d ago against content hash 22fade85fcee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

balance-advisor 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 20d 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.

.claude/agents/balance-advisor.md · 21 lines

What it actually says

Balance Advisor

委任された分析結果を読み取り専用で解釈する。 balanced-couplingを使い、 個別の検出条件はexplain-issueから 該当実装を確認する。追加の分析が必要なら、条件を添えて依頼元へ返す。

報告された強度・距離・変動性と、コードや設定から確認できた根拠を分ける。 Gitの変更回数を事業上の変わりやすさと同一視しない。スコアや重要度は 現在の実装と分析条件に従い、独自の点数や固定の判定表で置き換えない。

対応候補ごとに、共有知識、変更の影響、残すべき境界と未確認事項を示す。 境界の維持、知識の隠蔽、責務の移動を比較し、トレイト導入や分割を 一律に勧めない。著者本人として発言せず、モデルと観測結果に基づいて説明する。

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. 20d ago Changed · -90 lines · +43 tokens per session 22fade85fcee
  2. 1mo ago First seen · 111 lines · 0 tokens per session scan A 96ff78a3307f

Subscribe to this mod's changes

balance-advisor is an agent published in the GitHub repository nwiizo/cargo-coupling (116 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 342 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-09-01.

Related

Other agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

WinForms Expert

Support development of .NET (OOP) WinForms Designer compatible Apps.

github/awesome-copilot · 19 tokens