npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-plugin-ultrawork-sanguo

v1.1.0

Published

UltraWork 三国军团调度系统 - OpenCode 多智能体协作插件 (三层架构,成本优化56%)

Downloads

260

Readme

opencode-plugin-ultrawork-sanguo

🏰 UltraWork 三国军团调度系统 - OpenCode 多智能体协作插件

一键触发,所有智能体出动。任务完成前绝不罢休。

特性

三国军团智能体架构

  • 🎖️ 10位三国名将智能体(诸葛亮、周瑜、赵云、司马懿等)
  • 📊 三层架构:主帅 → 都督 → 部将
  • 🔄 并行执行提高效率
  • 📺 实时 TUI 状态面板
  • 🎯 成本优化:2.8x(节省56%)

安装

npm install opencode-plugin-ultrawork-sanguo

使用方法

1. 在 opencode.json 中配置

{
  "plugin": ["opencode-plugin-ultrawork-sanguo"]
}

2. 使用命令

/uls 实现用户登录功能
/uls 修复登录页面的样式问题
/ulsanguo 分析代码结构

⚠️ 重要:模型配置Key

OpenCode平台使用内部key而非显示名称:

| 显示名称 | 正确key | 错误写法 | 费用 | |----------|---------|----------|------| | GLM-5 | gmodel | ~~glm-5~~ | 0.5x | | Qwen3.5-Plus | q35model | ~~qwen3.5-plus~~ | 0.2x | | Kimi-K2.5 | kmodel | ~~kimi-k2.5~~ | 0.3x | | MiniMax-M2.5 | mmodel | ~~minimax-m2.5~~ | 0.2x |


三层架构

                    ┌─────────────────┐
                    │   ZhugeLiang    │
                    │   (主帅/调度)    │
                    │    gmodel       │
                    └────────┬────────┘
                             │
        ┌────────────────────┼────────────────────┐
        │                    │                    │
        ▼                    ▼                    ▼
┌───────────────┐    ┌───────────────┐    ┌───────────────┐
│   ZhouYu      │    │   ZhaoYun     │    │   SimaYi      │
│  (大都督)      │    │   (大将)      │    │   (谋士)      │
│  Strategy     │    │   Execute     │    │   Explore     │
│   gmodel      │    │   q35model    │    │   mmodel      │
└───────┬───────┘    └───────┬───────┘    └───────┬───────┘
        │                    │                    │
   ┌────┴────┐          ┌────┴────┐          ┌────┴────┐
   ▼         ▼          ▼         ▼          ▼         ▼
┌─────┐  ┌─────┐    ┌─────┐  ┌─────┐    ┌─────┐  ┌─────┐
│LuSu │  │Huang│    │Gao  │  │Chen │    │Sima │  │Sima │
│     │  │Gai  │    │Shun │  │Dao  │    │Shi  │    │Zhao │
│mmodel│ │q35  │    │q35  │  │q35  │    │mmodel│ │kmodel│
└─────┘  └─────┘    └─────┘  └─────┘    └─────┘  └─────┘

专家军团配置

顶层 - 主帅

| Agent | 职责 | 模型key | 显示名称 | 费用 | |-------|------|---------|----------|------| | zhugeliang | 主帅/调度器 | gmodel | GLM-5 | 0.5x |

中层 - 三大都督

| Agent | 职责 | 模型key | 显示名称 | 费用 | |-------|------|---------|----------|------| | zhouyu | 战略规划 | gmodel | GLM-5 | 0.5x | | zhaoyun | 执行大将 | q35model | Qwen3.5-Plus | 0.2x | | simayi | 探索谋士 | mmodel | MiniMax-M2.5 | 0.2x |

底层 - 部将

| 上级 | Agent | 职责 | 模型key | 显示名称 | 费用 | |------|-------|------|---------|----------|------| | ZhouYu | lusu | 方案分析 | mmodel | MiniMax-M2.5 | 0.2x | | ZhouYu | huanggai | 执行落地 | q35model | Qwen3.5-Plus | 0.2x | | ZhaoYun | gaoshun | 前端开发 | q35model | Qwen3.5-Plus | 0.2x | | ZhaoYun | chendao | 后端开发 | q35model | Qwen3.5-Plus | 0.2x | | SimaYi | simashi | 深度分析 | mmodel | MiniMax-M2.5 | 0.2x | | SimaYi | simazhao | 信息整理 | kmodel | Kimi-K2.5 | 0.3x |


费用优化

之前方案: 4 × ultimate (1.6x) = 6.4x

本方案: 
  - 主帅调度: gmodel (0.5x)
  - 中层3将: 0.5 + 0.2 + 0.2 = 0.9x
  - 底层6将: 0.2×4 + 0.3×2 = 1.4x
  总计: 2.8x (节省56%)

任务类型

| 类型 | 关键词 | 主将 | 副将 | |------|--------|------|------| | 前端开发 | UI, 界面, 样式, Vue | zhaoyun | gaoshun | | 后端开发 | API, 接口, 数据库 | zhaoyun | chendao | | 架构设计 | 设计, 方案, 架构 | zhouyu | lusu | | 代码探索 | 搜索, 查找, 分析 | simayi | simashi | | 文档整理 | 整理, 总结, 文档 | simayi | simazhao | | 快速修复 | bug, 修复, fix | zhaoyun | - |


TUI 状态面板

插件提供实时 TUI 状态面板:

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃  🏰 UltraWork 三国军团                                    [状态]  ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃  📋 军令: [任务描述]                                          ┃
┃  📊 总进度: [████████░░░░░░░░░░░░] 40%                        ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃  🎖️ 将领状态                                                  ┃
┃  ⏸️ 诸葛亮(孔明)    ░░░░░  待命中                              ┃
┃  🔄 赵云(子龙)      ███░░░  攻城拔寨中...                       ┃
┃  ✅ 司马懿(仲达)    █████  完成                                ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃  📜 执行日志                                                  ┃
┃  [14:30:01] 📋 收到军令                                       ┃
┃  [14:30:02] ⚔️  赵云(子龙) 出征: 实现功能                      ┃
┃  [14:30:15] ✅ 赵云(子龙) 凯旋                                ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

目录结构

opencode-plugin-ultrawork-sanguo/
├── agents/           # 10位将领配置
│   ├── zhugeliang.md
│   ├── zhouyu.md
│   ├── zhaoyun.md
│   ├── simayi.md
│   └── ...
├── configs/          # 平台配置
│   ├── opencode/
│   ├── claude-code/
│   └── qoder/
├── docs/             # 文档
├── src/              # TypeScript 源码
│   ├── core/
│   │   ├── agents.ts
│   │   ├── scheduler.ts
│   │   ├── tui.ts
│   │   └── types.ts
│   └── index.ts
└── dist/             # 编译输出

开发

# 安装依赖
npm install

# 构建
npm run build

# 开发模式
npm run dev

发布

# 发布到 npm
npm publish

📦 发布信息

  • npm: https://www.npmjs.com/package/opencode-plugin-ultrawork-sanguo
  • GitHub: https://github.com/paskaa/opencode-plugin-ultrawork-sanguo

许可证

MIT

作者

Health Link


鞠躬尽瘁,死而后已 - 诸葛亮