Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions plugins/wufufu770/pairing-auto/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"schemaVersion": 1,
"name": "pairing-auto",
"displayName": "搭配自动化",
"version": "2.0.4",
"description": "按任务阶段自动搭配模型与思考程度:自己判断流程走到哪一段,在阶段边界提示或切换主会话模型;不覆盖桌面端内置子 Agent 的 Auto 省额度规则,不替代桌面顾问,只补足桌面没有的阶段判断、交接说明与决策台账;切换前按缓存与上下文闸门提示代价(窗口取两者较小,只管主会话);本插件子 Agent 的模型与思考程度可按需指定,也可按需新建专用子 Agent。",
"author": "wufufu",
"icon": "icon.png",
"darkIcon": "icon-dark.png",
"category": "Productivity",
"exampleQueries": [
"用搭配自动化判断现在该用哪个模型和思考程度",
"这个任务进入实现阶段了,主会话该切到什么模型",
"把目前的结论整理成交接说明,我要开新会话",
"同一个问题修了两轮还没过,该找谁把关"
],
"apps": [],
"mcpServers": [],
"skills": ["skills/model-pairing-router/SKILL.md"],
"agents": [
"agents/flash-scout.md",
"agents/flash-worker.md",
"agents/m4-reviewer.md",
"agents/m4-second-opinion.md"
],
"hooks": ["hooks/hooks.json"]
}
192 changes: 192 additions & 0 deletions plugins/wufufu770/pairing-auto/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

Copyright 2026 MCode Plugins contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
90 changes: 90 additions & 0 deletions plugins/wufufu770/pairing-auto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Pairing Auto

> Route each stage of a task to the right model and thinking effort, and hand work to the right subagent.

## What this Plugin does

The Skill `model-pairing-router` teaches the agent to judge which stage a task is in — plan, survey,
implement, review, wrap-up — and to pick a model plus thinking-effort combination for that stage.
It also covers four things the desktop does not provide on its own:

- a handover note template for stage boundaries, so a long conversation can be continued in a new session;
- a decision ledger, so a settled decision is not asked again in a later review;
- rework triggers, so a task that keeps failing gets escalated instead of retried;
- a failure fallback, so an unavailable pinned model is not retried blindly.

Before any main-session switch of model, thinking effort, or context window, the Skill runs a cache and
context gate. The usable window after the switch is `min(current window, target window)` and must be
stated. The agent cannot read the used context length or the cache state, so it asks the user or uses
the session's `compressed` flag; when a switch would force a compaction it only advises and lets the
user choose. The gate applies to the main session only — delegating to a subagent is not affected. The
switch is stored per session in the plugin's state file as `cacheGuard` (`on` / `off`).

The four bundled subagents carry a default model and thinking effort in their definitions, and a
delegation may override `model` and `effort` per task; the hook then only states the default and does
not rewrite the delegation. When no existing role fits, the agent can add a specialized subagent to the
package (a new `agents/<name>.md`, listed in the manifest) with the model and effort the task needs.
Built-in subagents and other custom agents are never given an explicit model, so the desktop Auto rule
keeps working.

The bundled MiniMax manifest additionally declares four subagents and three hooks; see the
compatibility note below.

## Try it

Copy this prompt into a MiniMax Code conversation:

```text
用搭配自动化判断现在该用哪个模型和思考程度
```

English meaning: "Use pairing-auto to judge which model and thinking effort I should use right now."

More example prompts:

```text
这个任务进入实现阶段了,主会话该切到什么模型
把目前的结论整理成交接说明,我要开新会话
同一个问题修了两轮还没过,该找谁把关
```

## Expected result

The agent answers with one line per field: the stage it judges, the main-session model and thinking
effort for that stage, a one-line manual instruction for anything only the user can change in the model
picker, and which subagent to delegate to when one is useful. It does not switch models silently: the
default switch mode is "advise only".

## Requirements

- MiniMax Code with plugin support.
- No account, no paid service, no API key.
- The three hook scripts need Node.js on PATH. They run only when the package is installed as a local
MiniMax Code plugin; see the compatibility note.

## Supported platforms

Windows, macOS and Linux. The hook scripts are plain Node.js ESM with no native dependencies.

## Data and network

- No network access and no telemetry.
- No credentials are read or stored.
- When the hooks run, they read and write only the plugin's own data directory: a small state file
(switch mode, cache-gate switch and decision ledger) and a per-session prompt counter.

## What this Plugin does NOT do

- It does not set the main session's thinking effort, context window, or thinking toggle. There is no
automation interface for those, so it prints a one-line manual instruction instead.
- It does not claim a cache hit or a quota saving: it cannot read the cache state.
- It does not replace the desktop advisor. Use the advisor when a check needs the full conversation.
- It does not override the desktop Auto rule for built-in subagents; it only advises.

## Compatibility note

Installed directly from this repository, MiniMax Code loads **only the Skill**. The four subagents, the
three hooks, the icons, the category, and the example queries are declared in
`.minimax-plugin/plugin.json` and take effect only when the package is installed as a local MiniMax
Code plugin. The repository documentation also states that hooks and custom agents are not advertised
Agent Plugin capabilities.
28 changes: 28 additions & 0 deletions plugins/wufufu770/pairing-auto/agents/flash-scout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: flash-scout
description: 只读调查员(钉死 M3.1 Flash · low · 512K,不跑命令)。默认优先用内置 explore——主会话为 M4 时桌面端 Auto 已把它降为 Flash;只有需要钉死 low,或要求严格只读(不执行任何命令)时才委派给它。
tools: [read, grep, glob]
model: minimax/MiniMax-M3.1-Flash
effort: low
x-mavis:
displayName: Flash 调查员
contextWindow: 512000
---

你是只读调查员。委派说明会给你一个明确的问题,例如:谁调用了这个接口、这个字段在哪里定义、已有测试在哪些文件、日志里哪一段报错。

和内置 explore 的区别:你没有 bash、没有 web_fetch、不能联网搜索,思考程度固定为 low。适合范围明确、只读、要求结论干净的任务;需要跑命令或抓网页时应该用内置 explore。

工作方式:

1. 用 `grep` 与 `glob` 定位候选位置,再用 `read` 确认。
2. 每条结论都记下 `文件路径:行号`。
3. 你没有写文件或执行命令的工具,也不要提出修改建议。

回报格式(必须按这个结构,简短):

- **结论**:1 到 3 句话,直接回答问题。
- **证据**:每条一行,`path:line — 一句话说明`,最多 10 条。
- **未覆盖**:没查到、查不到或不确定的地方。必须写,没有就写「无」。

禁止:粘贴超过 5 行的原文;臆测没读到的东西;把中间搜索过程写进回报。
28 changes: 28 additions & 0 deletions plugins/wufufu770/pairing-auto/agents/flash-worker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: flash-worker
description: 执行员(钉死 M3.1 Flash · medium · 512K)。默认优先用内置 worker——主会话为 M4 时桌面端 Auto 已把它降为 Flash;只有需要钉死 medium,或要求只改点名文件、必须回报验证命令与结果时才委派给它。
tools: [read, write, edit, bash, grep, glob]
model: minimax/MiniMax-M3.1-Flash
effort: medium
x-mavis:
displayName: Flash 执行员
contextWindow: 512000
---

你是执行员。委派说明会给你已定稿的方案、可以改动的文件范围和要运行的验证命令。你不重新设计方案。

和内置 worker 的区别:你的思考程度固定为 medium,工具更少(没有任务查询、部署、待办、网页抓取),并且要求只改点名的文件、必须回报验证命令与结果。任务需要更多工具时应该用内置 worker。

工作方式:

1. 先读相关文件确认现状,再按方案改。
2. 只改委派说明点名的文件或目录;不要顺手重构,不要扩大范围。
3. 必须实际运行指定的验证命令(测试、构建、脚本),并把命令和结果原样回报。跑不了就说明原因,不要写「应该能过」。
4. 遇到方案没覆盖的情况:停下,把问题写进回报,不要自己改方案。
5. 不要编辑与主会话或其他子 Agent 相同的文件(委派说明会点名)。

回报格式(必须按这个结构,简短):

- **改动文件**:每条一行,`path — 一句话说明改了什么`。
- **运行的命令与结果**:命令原样 + 结果原样(失败就把失败输出贴关键行)。
- **未完成或存疑**:没做的、拿不准的、没有验证的。没有就写「无」。
Loading