bassemustafa/watchducks
我打造了 WatchDucks —— 一個用於 Claude Code 子代理和委派代理的即時儀表板
WatchDucks 是一個開源的 Claude Code 外掛,加入了一個互動式 /flock 側邊欄,用於追蹤子代理、委派代理和背景 CLI 執行,顯示即時狀態、模型、工作量、權杖、快取使用和成本,以及每次執行的檔案和審查結果。它基於 Claude Code 鉤子構建,不儲存提示或工具輸出,並透過 claude plugin install watchducks --marketplace bassemustafa/watchducks 安裝。
關於這個 mod
作者描述了打造 WatchDucks 的過程,這是一個 MIT 授權的 Claude Code 外掛,用於多代理工作流程。它使用函式鉤子在委派工作開始時自動開啟一個 /flock 側邊欄,追蹤子代理、中繼指令碼、代理 CLI 執行(包括 Codex 和 Gemini CLI 的狀態和經過時間)以及背景 shell 指令。儀表板顯示即時狀態、模型、工作量層級、權杖和快取使用及成本(如果可用)、單次執行檔案、按實作者和模型分組的當前工作階段或過去 30 天的使用情況,以及審查結果,如發現的錯誤和編輯呼叫。當側邊欄隱藏時,提示上方會出現一個精簡的狀態列,桌面應用程式和終端機都支援。安裝:claude plugin install watchducks --marketplace bassemustafa/watchducks。GitHub:https://github.com/bassemustafa/watchducks
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add bassemustafa/watchducks claude plugin install watchducks@watchducks
原文 / README
I've been using Claude Code with multiple agents and delegating tasks to other coding agents, including OpenCode and Codex. The problem I kept running into was visibility. Once several agents were working in parallel, it became difficult to answer some basic questions: Which agents are still running? Which model and effort level is each one using? How many tokens are they consuming? How much is the whole workflow costing? Which runs finished, failed, or were reviewed? I was using multiple plugins to piece together this information, but I wanted one place to see everything without leaving Claude Code. So I built WatchDucks 🦆 — an open-source Claude Code mod using function hooks. Planned and implemented with Opus and my agent fleet. It adds an interactive /flock sidebar directly inside Claude Code. What it does: Automatically opens the sidebar when delegated work starts Tracks subagents, relay scripts, agent CLI runs, and background shell commands Displays live status, model, effort, tokens, cache usage, and cost where available Provides an individual dossier for each run Shows usage grouped by implementer and model, for the current session or last 30 days Records review outcomes, including bugs found and edit calls Supports Claude Code's desktop app as well as the terminal There's also a small status band above the prompt when the sidebar isn't visible. I went with a spy-duck theme: running agents are "IN FIELD", completed ones are "DEBRIEFED", and failed ones "WENT DARK". Under the hood: WatchDucks uses Claude Code hooks and structured metadata from supported delegation workflows. It doesn't store prompts, responses, or tool output, and it doesn't send telemetry. Some agents expose more usage information than others. For example, Codex and Gemini CLI runs can be tracked for status and elapsed time, but token and cost data aren't always available. It's free, open-source, and MIT licensed. Install: claude plugin install watchducks --marketplace bassemustafa/watchducks GitHub: https://github.com/bassemustafa/watchducks I'd love feedback from people running multi-agent workflows. How are you currently tracking delegated agents and their usage? And what would you want to see in a tool like this? submitted by /u/Bassemustafa to r/ClaudeCode [link] [comments]