跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    gytis-ivaskevicius

    Subagent Completion Hook

    v0.2.0智能体编排
    opencode-subagent-completion-hook

    Subagent completion plugin for OpenCode which allows to execute arbitrary command on completion

    GitHub 星标

    0

    月装机量

    23

    近 7 天 5

    综合评分SCORE

    23.1

    生态多维模型

    最近提交

    3 个月前

    2026-05-08

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-subagent-completion-hook@0.2.0"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    An OpenCode plugin that runs an arbitrary shell command whenever a subagent completes.

    Installation

    Add the plugin to your opencode.jsonc:

    {
      "plugin": [
        "opencode-subagent-completion-hook"
      ]
    }
    

    Usage

    Add an on_complete option to an agent's frontmatter:

    ---
    name: my-agent
    options:
      on_complete: my-post-process-script
    ---
    

    When the agent finishes, the plugin pipes the agent's output to the command via stdin and replaces the output with the command's stdout.

    License

    MIT