Herdr plugin · Owner / Worker / Advisor
One pane.
A whole crew.
Nakama builds an Owner / Worker / Advisor team from the pane you're in, initializes every role with the same protocol, and brings the same team back after a restart.
The crew
OWNER / WORKER / ADVISOROwner · captain
Investigates, freezes the handoff and accepts the result. Writes project code only for trivial changes (a version number, plain doc wording) when nothing else is in flight.
Worker · crew at work
One or more; each changes the rest of the code, only in the files assigned to it. Reports back when done, blocked or out of context.
Advisor · navigatoroptional
Optional. Checks the plan and reviews the diff independently.
Three steps to your first crew
- 1
Install the plugin and create your private config (never committed).
herdr plugin install forsakesoul/herdr-nakama cfg="$(herdr plugin config-dir forsakesoul.nakama)/config.local.json" [ -e "$cfg" ] || [ -e "${cfg%/*}/config.json" ] || (umask 077 && mkdir -p "${cfg%/*}" && \ curl -fsSL https://raw.githubusercontent.com/forsakesoul/herdr-nakama/main/config.example.json -o "$cfg.tmp" && mv "$cfg.tmp" "$cfg") - 2
Bind two keys in
~/.config/herdr/config.toml, thenherdr server reload-config.[[keys.command]] key = "prefix+u" type = "plugin_action" command = "forsakesoul.nakama.pick" [[keys.command]] key = "prefix+i" type = "plugin_action" command = "forsakesoul.nakama.init"
- 3
In a project pane press prefix+u, pick the engines and confirm. When the agents are up, press prefix+i.
After a restart, the same crew
Herdr or the computer restarted and every terminal ID changed? Preflight first — read-only, zero writes — then confirm to bind the team again. Nothing is renamed or resent behind your back.
nakama rebind --team <id> --preflight nakama rebind --team <id> --confirm-anchor <terminal>
Change the crew mid-voyage
Add or drop Workers and Advisors, or replace a stuck one, from the same prefix+u menu. Handoffs and reviews are written as files in a per-task directory, so a newcomer reads the latest handoff instead of asking around — and nothing is deleted until you say so.
nakama add --team <id> --engine <engine> nakama swap --team <id> --role worker nakama clean --team <id> --task <task_id>
Why “Nakama”
Nakama (仲間) is what Luffy calls his crew in One Piece: companions who each own part of the voyage. And like a Vivre Card pointing home, nakama rebind finds every member again after a storm.
Your language
CLI output and agent prompts in English, 中文 and 日本語 — set NAKAMA_LANG.
Herdr 插件 · Owner / Worker / Advisor
一个 pane,
一整船伙伴。
Nakama 以你所在的 pane 为锚点,组建 Owner / Worker / Advisor 编组,用同一套协议初始化每个角色;电脑或 Herdr 重启后,还能把原来那支船团接回来。
船员分工
OWNER / WORKER / ADVISOROwner · 船长
调研、冻结交接包、验收结果。默认不写项目代码,仅在无在途工作时直写版本号、纯文档措辞等琐碎改动。
Worker · 动手的船员
一个或多个;负责其余代码的修改,每人只修改分配给自己的文件。完成、受阻或上下文快用完时主动回报。
Advisor · 航海士可选
可选。独立核验方案、审查 diff。
三步组建你的第一支船团
- 1
安装插件,生成私有配置(不入库)。
herdr plugin install forsakesoul/herdr-nakama cfg="$(herdr plugin config-dir forsakesoul.nakama)/config.local.json" [ -e "$cfg" ] || [ -e "${cfg%/*}/config.json" ] || (umask 077 && mkdir -p "${cfg%/*}" && \ curl -fsSL https://raw.githubusercontent.com/forsakesoul/herdr-nakama/main/config.example.json -o "$cfg.tmp" && mv "$cfg.tmp" "$cfg") - 2
在
~/.config/herdr/config.toml绑定两个快捷键,然后herdr server reload-config。[[keys.command]] key = "prefix+u" type = "plugin_action" command = "forsakesoul.nakama.pick" [[keys.command]] key = "prefix+i" type = "plugin_action" command = "forsakesoul.nakama.init"
- 3
在项目 pane 按 prefix+u,选好引擎并确认;agent 起好后按 prefix+i。
重启之后,还是那支船团
电脑或 Herdr 重启、终端编号全变了?先预检(只读、零写入),确认后重新绑定。不会背着你改名或重发任何消息。
nakama rebind --team <id> --preflight nakama rebind --team <id> --confirm-anchor <terminal>
航行中途,也能换人
在同一个 prefix+u 菜单里加入或移除 Worker 与 Advisor,或替换卡住的成员。交接包和审查结论按任务写成文件,新来的伙伴直接读最新交接,不用别人转述;这些文件在你明确说可以删之前不会被清理。
nakama add --team <id> --engine <engine> nakama swap --team <id> --role worker nakama clean --team <id> --task <task_id>
为什么叫 Nakama
Nakama(仲間)是《海贼王》里路飞对船员的称呼:各自负责一段航程的伙伴。就像指向主人的生命卡,nakama rebind 会在风暴过后把每位伙伴找回来。
你的语言
CLI 输出与 agent 提示词支持 English、中文、日本語,用 NAKAMA_LANG 选择。
Herdr プラグイン · Owner / Worker / Advisor
1つの pane から、
仲間のチームを。
Nakama はいまの pane を起点に Owner / Worker / Advisor のチームを組み、同じプロトコルで各ロールを初期化します。再起動後も、元の一味をそのまま呼び戻せます。
一味の役割
OWNER / WORKER / ADVISOROwner · 船長
調査し、引き継ぎを確定し、結果を受け入れます。進行中の作業がないときに限り、バージョン番号や純粋なドキュメントの文言といった些細な変更だけを直接書きます。
Worker · 手を動かす船員
残りのコードを変更する存在(複数可)。各自、割り当てられたファイルだけを変更します。完了・ブロック・コンテキスト不足のときに報告します。
Advisor · 航海士任意
任意。方針を検証し、diff を独立にレビューします。
3 ステップで最初の一味を
- 1
プラグインをインストールし、非公開の設定を作成します(コミットしません)。
herdr plugin install forsakesoul/herdr-nakama cfg="$(herdr plugin config-dir forsakesoul.nakama)/config.local.json" [ -e "$cfg" ] || [ -e "${cfg%/*}/config.json" ] || (umask 077 && mkdir -p "${cfg%/*}" && \ curl -fsSL https://raw.githubusercontent.com/forsakesoul/herdr-nakama/main/config.example.json -o "$cfg.tmp" && mv "$cfg.tmp" "$cfg") - 2
~/.config/herdr/config.tomlにキーを 2 つ割り当て、herdr server reload-configを実行します。[[keys.command]] key = "prefix+u" type = "plugin_action" command = "forsakesoul.nakama.pick" [[keys.command]] key = "prefix+i" type = "plugin_action" command = "forsakesoul.nakama.init"
- 3
プロジェクトの pane で prefix+u を押してエンジンを選び確定。エージェントが起動したら prefix+i。
再起動しても、同じ一味
Herdr やコンピューターが再起動して terminal ID がすべて変わっても大丈夫。まずプリフライト(読み取り専用・書き込みゼロ)、確認してから再バインドします。勝手に改名や再送はしません。
nakama rebind --team <id> --preflight nakama rebind --team <id> --confirm-anchor <terminal>
航海の途中でも、仲間を入れ替えられる
同じ prefix+u のメニューから Worker や Advisor を追加・削除したり、止まったメンバーを交代させたりできます。引き継ぎやレビューの結論はタスクごとのディレクトリにファイルとして残るので、新しい仲間は最新の引き継ぎを直接読めます。削除してよいと言うまで、これらのファイルは消えません。
nakama add --team <id> --engine <engine> nakama swap --team <id> --role worker nakama clean --team <id> --task <task_id>
なぜ「Nakama」なのか
Nakama(仲間)は『ONE PIECE』でルフィが船員を呼ぶ言葉です。ビブルカードのように、nakama rebind は嵐のあとで仲間を一人ひとり見つけ出します。
あなたの言語で
CLI 出力とエージェントのプロンプトは English・中文・日本語に対応。NAKAMA_LANG で選べます。