neonelemental/claude-code-board-mods/tree/main/fleet
fleet
兩個 Claude Code 外掛(fleet 和 board)在對話旁加入面板,由 GitHub Projects (v2) 看板驅動:fleet 依 epic 和 ticket 分組顯示工作階段代理程式,並把子代理程式折疊在負責人下;board 依 Status 欄位列出一個或多個看板的卡片。
關於這個 mod
fleet 和 board 是由 GitHub Projects (v2) 看板驅動的 Claude Code 面板外掛,透過已登入的 gh CLI(read:project 權限)經 REST 讀取資料。fleet 會依看板上的 epic 和 ticket 分組顯示本次工作階段的代理程式:epic 是帶有子 issue 的 issue,會顯示完成度、有代理程式的 ticket,以及尚未處理的開放 ticket;ticket 會顯示所在看板欄位和代理程式,負責人排在最前,子代理程式折疊在其下;已完成的 ticket 預設折疊,並顯示代理程式數量。代理程式會根據描述中的標題 ID(ABC-12)或 issue 編號(#12)配對 ticket;找不到時,就使用提示前 400 個字元中的第一個標題 ID,或沿用父代理程式的 ticket;手寫標籤檔案(.claude/fleet-tags.json)會覆蓋所有這些規則。board 依 Status 欄位顯示一個或多個看板的卡片 ID、標題、epic 子 issue 數量,以及卡片在 In progress 和 In review 欄位停留的時間;多個看板同時存在時,可用按鈕和 1..9 快速鍵(另有 a 表示 All)選擇顯示內容,選擇會在工作階段之間保留。透過 --plugin-dir 或 CLAUDE_CODE_PLUGIN_DIRS 環境設定安裝;透過 /config 或 pluginConfigs 設定 owner、boards、statusField、ticketPattern、leadPattern、tagsFile、folded 和 doneColumn。需要啟用 function hooks 的 Claude Code(在 2.1.286 上測試)以及 gh auth refresh -s read:project;不會向專案寫入任何內容。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add neonelemental/claude-code-board-mods claude plugin install fleet
原文 / README
Fleet and board panes for Claude Code
Two Claude Code plugins, each a pane beside the conversation, driven by GitHub Projects (v2) boards.
fleet
This session's agents, grouped by the epics and tickets on your boards.
- An epic is an issue with sub-issues. It shows its completion (closed sub-issues of all, not-planned and duplicates left out), its tickets that have agents, and its open tickets no agent has touched yet.
- A ticket shows its board column and its agents: the lead, then its sub-agents folded under it. A finished ticket starts folded, with its agent count.
- Agents that name the epic itself are listed under it side by side, none leading the others.
- An agent the session no longer lists is marked
stopped. - Tickets in no epic are listed under "Not in an epic", agents that name no ticket under "on no ticket".
/fleet opens the pane.
board
One or more boards, by Status column: each card's id and title, epics first with their sub-issue count, and in the In progress and In review columns how long ago the card moved. With two or more boards, a button per board (hotkeys 1..9) and All (hotkey a) pick what is shown; on All, a card on several boards is drawn once. The pick is kept between sessions.
/board opens the pane, /board <number> opens it on one board, /board all on every board.
Requirements
- Claude Code with function-hook plugins. These were built and tested against 2.1.286. If a pane does not show, run
claude --debug, which names a plugin that did not load and why; where function hooks are switched off,CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1in Claude Code's environment turns them on. - The GitHub CLI,
gh, signed in with theread:projectscope:gh auth refresh -s read:project. The panes read GitHub over REST throughghand never use GraphQL. - GitHub Projects (v2) boards owned by one user or organization. For fleet, sub-issues make a ticket an epic.
Install
git clone https://github.com/neonelemental/claude-code-board-mods.git
claude --plugin-dir /path/to/claude-code-board-mods/fleet --plugin-dir /path/to/claude-code-board-mods/board
The desktop app takes no flags; name the folders in the env block of ~/.claude/settings.json instead, separated by the platform's path separator (: on macOS and Linux):
{
"env": {
"CLAUDE_CODE_PLUGIN_DIRS": "/path/to/claude-code-board-mods/fleet:/path/to/claude-code-board-mods/board"
}
}
Settings
Each setting is a row in /config, or goes under pluginConfigs in ~/.claude/settings.json, keyed by the plugin's name:
{
"pluginConfigs": {
"fleet": { "options": { "owner": "acme", "boards": "3,4", "leadPattern": "^run\\b" } },
"board": { "options": { "owner": "acme", "boards": "3,4" } }
}
}
Both plugins:
| Setting | Default | What it is |
| --- | --- | --- |
| owner | none | The GitHub user or organization that owns the boards. Until it and boards are set, the pane says how to set them. |
| boards | none | Project numbers, comma-separated: 3,4. The number is the one in the board's URL. |
| statusField | Status | The single-select field whose options are the columns, in the board's order. |
| ticketPattern | [A-Z][A-Z0-9]*-\d+ | A regular expression for a ticket id at the start of an issue title: ABC-12 Fix login is ABC-12. An issue without one is named #<number>. A pattern that does not compile falls back to the default, and the pane says so. |
fleet only:
| Setting | Default | What it is |
| --- | --- | --- |
| leadPattern | empty | A regular expression matched against agent descriptions, ignoring case: an agent on a ticket that matches it leads the ticket. Empty: the first agent to name the ticket leads it. |
| tagsFile | .claude/fleet-tags.json | The hand-mapping file, relative to the session's directory. |
board only:
| Setting | Default | What it is |
| --- | --- | --- |
| folded | Backlog,Done | Columns that start folded, comma-separated. |
| doneColumn | Done | The column listed newest-closed first, its latest 25 cards. |
Column names are compared ignoring case and spaces. In progress, In review, Ready, Todo, Backlog and Done get their own marks and colours; any other column gets a plain dot.
How agents join tickets
An agent belongs to a ticket when its description names it, by title id (ABC-12) or issue number (#12; the number also finds an issue that has a title id). Failing that, the first title id in the first 400 characters of its prompt counts. An agent started by another agent belongs to its parent's ticket. An id on no board stays a ticket of its own, marked "Not on a board".
The tags file settles an agent by hand and wins over the rest. It is read, never written:
{ "<agent id>": "ABC-12" }
fleet remembers the agents it has seen in the plugin's own store, one record per session directory, so an agent stays under its epic until the epic is closed. Finished work outside an epic stays listed for 12 hours. Nothing is written into your project.
Tests
From the clone:
claude plugin validate fleet
claude plugin validate board
claude plugin test fleet
claude plugin test board
The tests run the plugins against the engine with gh and the session's agents answered from memory; they reach no network.