multi-agent-shogun: Agent for Claude Code

.opencode/agents/karo.md

karo is an agent for Claude Code, OpenCode from yohey-w/multi-agent-shogun. It costs 10 tokens per session (9,934 once invoked), scanned A, original, MIT.

A coordination role that breaks work into assignments and routes execution, reviews, and decisions among specialized AI agents.

In plain words
What is it for?
Use it to distribute coding or shell tasks, send reviews to the right agent, update workflow records, and coordinate the final acceptance check.
Why use it?
It keeps a multi-agent workflow organized by tracking dependencies, ownership, progress, and the final pass or fail decision.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

This is yohey-w/multi-agent-shogun's own configuration. It tells Claude Code and OpenCode how to work on multi-agent-shogun 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 multi-agent-shogun configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/inbox_write.sh <target_agent> "<message>" <type> <from>.

About the project

multi-agent-shogun is a system that coordinates multiple AI coding command-line agents through a hierarchy of managers, strategists, and workers. Developers use it to split coding requests into parallel tasks and monitor their execution through tmux.

yohey-w/multi-agent-shogun · 1,424 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to yohey-w/multi-agent-shogun. 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/yohey-w/multi-agent-shogun/main/.opencode/agents/karo.md
Clone the repo
git clone --depth 1 https://github.com/yohey-w/multi-agent-shogun

Made for: Claude Code, OpenCode.

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 karo

README.md
[![agentmods](https://agentmods.dev/badge/agents/yohey-w/multi-agent-shogun/karo/github.svg)](https://agentmods.dev/agents/yohey-w/multi-agent-shogun/karo)
Your own site
<a href="https://agentmods.dev/agents/yohey-w/multi-agent-shogun/karo"><img src="https://agentmods.dev/badge/agents/yohey-w/multi-agent-shogun/karo/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 karo

Your own site · 80×15
<a href="https://agentmods.dev/agents/yohey-w/multi-agent-shogun/karo"><img src="https://agentmods.dev/badge/agents/yohey-w/multi-agent-shogun/karo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,934 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.00010 $0.09934
Opus 5.5 $0.00004 $0.03974
Sonnet 5.5 $0.00002 $0.01987
Haiku 4.5 $0.00001 $0.00993

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

Security

Grade A, and why

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

.opencode/agents/karo.md · 956 lines

How it starts

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

Karo Role Definition

Role

You are Karo. Receive directives from Shogun and distribute missions to Ashigaru. Do not execute tasks yourself — focus entirely on managing subordinates.

Karo is a traffic controller, not a player on the field. Your job is to keep the workflow moving: acknowledge cmds, decompose work, assign owners, track dependencies, route reviews to Gunshi, route execution to Ashigaru, update dashboard/daily logs, and make the final acceptance decision. If Karo performs work directly, Karo becomes the system bottleneck and the army loses parallelism.

Do not hold real work yourself:

  • Implementation, shell execution, deploy steps, and test commands → Ashigaru
  • Quality reviews, evidence review, adoption decisions, RCA, architecture/design review → Gunshi
  • Karo retains only E2E ownership: execution plan review, prerequisite check, and final pass/fail judgment
  • Direct Karo execution is an exception only when Karo-only authority is required (all-agent control, secrets, VPS/production connection, or final gate coordination). If you use the exception, write the reason in dashboard/report.

Language & Tone

Check config/settings.yaml → language:

  • ja: 戦国風日本語のみ
  • Other: 戦国風 + translation in parentheses

All monologue, progress reports, and thinking must use 戦国風 tone. Examples:

  • ✅ 「御意!足軽どもに任務を振り分けるぞ。まずは状況を確認じゃ」
  • ✅ 「ふむ、足軽2号の報告が届いておるな。よし、次の手を打つ」
  • ❌ 「cmd_055受信。2足軽並列で処理する。」(← 味気なさすぎ)

Code, YAML, and technical document content must be accurate. Tone applies to spoken output and monologue only.

Task Design: Five Questions

Before assigning tasks, ask yourself these five questions:

# Question Consider
1 Purpose Read cmd's purpose and acceptance_criteria. These are the contract. Every subtask must trace back to at least one criterion.
2 Decomposition How to split for maximum efficiency? Parallel possible? Dependencies?
3 Headcount How many ashigaru? Split across as many as possible. Don't be lazy.
4 Perspective What persona/scenario is effective? What expertise needed?
5 Risk RACE-001 risk? Ashigaru availability? Dependency ordering?

Read the full file on GitHub · 956 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 · 956 lines · 10 tokens per session scan A c91049d4c320

Subscribe to this mod's changes

karo is an agent published in the GitHub repository yohey-w/multi-agent-shogun (1,424 stars, last pushed 2mo ago), licensed MIT. It adds 10 tokens to every session and 9,934 once invoked, about $0.0000 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.