kpeez/agent-toolbox/tree/main/claude-mods/subagents
關於這個 mod
agent-toolbox
agent-toolbox 為 AI 程式代理提供三個可攜式外掛:
- SWE — 用於強化與規劃工作、實作與審查變更,以及交付拉取請求的 skill。
- Lab — 以來源為依據的研究、可重現的實驗迴圈與資料視覺化指引。
- Uni — 透過問題、主動回憶與練習進行互動課程,深化理解。參見 Uni 安裝與使用。
它也在 claude-mods/ 下提供僅限 Claude Code 的 mod:
- activity — 顯示工作階段工具呼叫、耗時與失敗的即時面板。使用
claude plugin install activity@agent-toolbox安裝,再執行/activity開啟。 - subagents — 動畫面板,每個子代理都有一隻 Clawd 精靈,顯示類型、任務、最新工具呼叫與經過時間。第一個子代理啟動且畫面有空間放置側邊面板時,它會開啟。使用
claude plugin install subagents@agent-toolbox安裝;/subagents可顯示或隱藏它。
SWE 將合併的拉取請求與程式碼視為記錄。大型工作可以從簡短的計畫開始並交給新的工作階段;與 Linear 連結的計畫可依設定鏡像。它的實作紀律會質疑不必要的程式碼,並在最終驗證前簡化完成的變更。穩健的工作可以維持不變。發佈遵循使用者授權。
Lab 在擴展研究產物與委派規模時保留來源檢查和實驗界線。兩個外掛都不需要排程器或獨立的工作流程服務。
Uni 將學習者的嘗試、解釋與複習結果放在核心。它會按需結合引導式重建、批評、範例、擷取與遷移。呼叫時才會執行複習。Anki 或其他外部工具可以處理長期排程。
安裝
Claude Code
/plugin marketplace add kpeez/agent-toolbox
/plugin install swe@agent-toolbox
/plugin install lab@agent-toolbox
/plugin install uni@agent-toolbox
Codex CLI
codex plugin marketplace add kpeez/agent-toolbox
codex plugin add swe@agent-toolbox
codex plugin add lab@agent-toolbox
codex plugin add uni@agent-toolbox
可選的 skills.sh 僅 skill 安裝
npx skills@latest add kpeez/agent-toolbox
這只會安裝可編輯的 skill。外掛代理仍需要安裝外掛。
教學工作區
Uni 包含 teach,用於建立包含 HTML 課程、參考資料、任務與學習記錄的持久學習工作區。它保留原始工作流程與四種格式範本,並提供上游歸屬。使用 learn 進行對話式教學;要編寫學習工作區,請明確呼叫 teach:在 Codex 使用 $uni:teach,或在 Claude Code 使用 /uni:teach。
較早的安裝可能有一個符號連結,指向此儲存庫先前的 skills/teach 目錄,路徑為 ~/.codex/skills/teach 或 ~/.agents/skills/teach。更新 Uni 後,請移除該舊符號連結,避免重複探索。保留任何獨立編輯過的 skill 目錄。
委派
實作 skill 會把有獨立部分的大型工作路由到 swe:orchestrate。若要在選取 skill 前做出相同決定,請將以下規則加入使用者層級的 AGENTS.md(Codex)或 CLAUDE.md(Claude):
對包含可獨立執行部分的大型工作,使用
swe:orchestrate進行委派。緊密耦合的工作由一個代理處理。 將一個獨立審查直接交給審查者。
外掛不會編輯使用者指示。現有工作階段可能保留先前指示;更新後請使用新的工作階段。
專案文件
ADR、筆記與研究預設存放於 .agents/docs/。遵循明確的專案設定或使用者覆寫。按需建立子目錄;位置可以是一般目錄或符號連結,可以受版本控制或忽略。不需要設定步驟、保管庫或產生的 AGENTS.md/CLAUDE.md。
計畫
計畫位於 <main checkout>/.agents/plans/,由所有工作樹共享。該目錄透過自己的 .gitignore 保持不進入 git。
名為 ABC-123-short-slug.md 的計畫可以透過已設定的 host Stop hook,單向鏡像到 Linear issue ABC-123 的文件(plan_sync.py)。它從 LINEAR_API_KEY 讀取 Linear personal API key;若沒有,則從 ~/.config/swe/linear-api-key 讀取(模式 0600,遵循 XDG_CONFIG_HOME),因此不需要 shell 設定。沒有 key,或名稱中沒有 issue key 時,計畫會留在本機,不會阻塞。Hook 交付方式因宿主而異;重要時請確認同步狀態。GitHub 連結的計畫仍保留在本機,除非設定了另外的發佈路徑。
新的 autoresearch 執行會將程式、帳本、日誌、設定與產生的圖形放在 artifacts/autoresearch/<tag>/ 下。既有執行保留已記錄的路徑。設定的保管庫會收到收尾筆記,以及那些筆記嵌入的參考圖形。
版面
plugins/swe/— SWE skill、代理與計畫同步 hook。plugins/lab/— Lab skill、執行階段腳本與參考資料。plugins/uni/— 輔導 skill、教學工作區工作流程、範本、概念練習與研究筆記。claude-mods/<mod>/— Claude Code function-hook mod,每個 mod 一個外掛,只列在 Claude 目錄中。.claude-plugin/marketplace.json— Claude marketplace 目錄。.agents/plugins/marketplace.json— Codex marketplace 目錄。
版本管理
在兩份資訊清單中手動更新每個外掛的版本,並保持值一致(claude-mods/ 下的 mod 只有 Claude 清單):
-
plugins/<plugin>/.claude-plugin/plugin.json -
plugins/<plugin>/.codex-plugin/plugin.json -
plugins/<plugin>/.claude-plugin/plugin.json -
plugins/<plugin>/.codex-plugin/plugin.json
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add kpeez/agent-toolbox claude plugin install subagents
原文 / README
agent-toolbox
agent-toolbox provides three portable plugins for AI coding agents:
- SWE — skills for sharpening and planning work, implementing and reviewing changes, and shipping pull requests.
- Lab — source-backed research, reproducible experiment loops, and data-visualization guidance.
- Uni — interactive lessons with questions, active recall, and exercises that deepen understanding. See Uni installation and usage.
It also provides Claude Code-only mods under claude-mods/:
- activity — a live pane of the session's tool calls, with durations and
failures. Install it with
claude plugin install activity@agent-toolbox, then run/activityto open it. - subagents — an animated pane of the session's subagents: a Clawd sprite
per agent with its type, task, latest tool call, and elapsed time. It opens
when the first subagent starts, where the screen has room for a side pane.
Install it with
claude plugin install subagents@agent-toolbox;/subagentsshows or hides it.
SWE treats the merged pull request and the code as the record. Large work can start from a short plan that hands off to a fresh session, with configured mirroring for Linear-linked plans. Its implementation discipline challenges unnecessary code and simplifies the completed change before final verification. Sound work can stay unchanged. Publication follows the user's authorization.
Lab keeps source checks and experiment boundaries while scaling research artifacts and delegation to the question. Neither plugin requires a scheduler or a separate workflow service.
Uni keeps the learner's attempts, explanations, and review outcomes central. It combines guided reconstruction, criticism, examples, retrieval, and transfer as needed. Reviews run when invoked. Anki or another external tool can handle long-term scheduling.
Install
Claude Code
/plugin marketplace add kpeez/agent-toolbox
/plugin install swe@agent-toolbox
/plugin install lab@agent-toolbox
/plugin install uni@agent-toolbox
Codex CLI
codex plugin marketplace add kpeez/agent-toolbox
codex plugin add swe@agent-toolbox
codex plugin add lab@agent-toolbox
codex plugin add uni@agent-toolbox
Optional skills.sh skill-only install
npx skills@latest add kpeez/agent-toolbox
This installs editable skills only. Plugin agents still require a plugin installation.
Teaching workspace
Uni includes teach for a persistent
learning workspace with HTML lessons, references, a mission, and learning
records. It preserves the original workflow and four format templates, with
upstream attribution. Use learn for
conversational tutoring and explicitly invoke teach to author a learning
workspace: $uni:teach in Codex or /uni:teach in Claude Code.
An earlier installation may have a ~/.codex/skills/teach or
~/.agents/skills/teach symlink to this repository's former skills/teach
directory. After updating Uni, remove that legacy symlink to avoid duplicate
discovery. Preserve any independently edited skill directory.
Delegation
The implementation skill routes substantial work with independent parts to
swe:orchestrate. To make the same decision before skill selection, add this
rule to your user-level AGENTS.md (Codex) or CLAUDE.md (Claude):
For substantial work with independently executable parts, use
swe:orchestrateto delegate them. Keep tightly coupled work with one agent. Send a single independent review directly to the reviewer.
The plugin does not edit user instructions. Existing sessions may retain prior instructions; use a fresh session after updating.
Project documents
ADRs, notes, and research default to .agents/docs/. Follow an explicit
project or user override. Create subdirectories as needed; the location may be
a regular directory or symlink, tracked or ignored. No setup step, vault, or
generated AGENTS.md/CLAUDE.md is required.
Plans
Plans live in <main checkout>/.agents/plans/, shared by all worktrees. The
directory keeps itself out of git with its own .gitignore.
A plan named ABC-123-short-slug.md can be mirrored one way to a document on
Linear issue ABC-123 by a configured host Stop hook
(plan_sync.py). It reads a Linear personal
API key from LINEAR_API_KEY, or else from ~/.config/swe/linear-api-key
(mode 0600, honoring XDG_CONFIG_HOME), so no shell configuration is needed.
Without a key, or without an issue key in the name, plans stay local and nothing
is blocked. Hook delivery varies by host; confirm sync state when it matters.
GitHub-linked plans remain local unless a separate publication route is configured.
New autoresearch runs keep their program, ledgers, logs, configuration, and
generated figures under artifacts/autoresearch/<tag>/. Existing runs retain
their recorded paths. A configured vault receives closeout notes and only the
reference figures those notes embed.
Layout
plugins/swe/— SWE skills, agents, and the plan-sync hook.plugins/lab/— Lab skills and their runtime scripts and references.plugins/uni/— tutoring skills, the teaching workspace workflow, templates, concept exercises, and research notes.claude-mods/<mod>/— Claude Code function-hook mods, one plugin per mod, listed in the Claude catalog only..claude-plugin/marketplace.json— Claude marketplace catalog..agents/plugins/marketplace.json— Codex marketplace catalog.
Versioning
Update each plugin's version manually in both manifests, and keep the values
identical (a mod under claude-mods/ has the Claude manifest only):
plugins/<plugin>/.claude-plugin/plugin.jsonplugins/<plugin>/.codex-plugin/plugin.json

