ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 kpeez

subagents

此会话子代理的动态面板:每个代理旁有一个行走的 Clawd,显示其类型、任务和最近一次工具调用;使用 /subagents 打开

kpeez@kpeez

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 /activity to 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; /subagents shows 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:orchestrate to 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.json
  • plugins/<plugin>/.codex-plugin/plugin.json

更多类似作品