@mstar-harness/opencode 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/harness-skills/mstar-harness-core/SKILL.md +2 -1
- package/harness-skills/mstar-host/SKILL.md +3 -2
- package/harness-skills/mstar-host/references/kimi-plan-mode-bridge.md +55 -0
- package/harness-skills/mstar-host/references/kimi.md +163 -0
- package/harness-skills/mstar-host/references/parallel-dispatch.md +2 -2
- package/harness-skills/pm/SKILL.md +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to the `@mstar-harness/opencode` package are documented in t
|
|
|
4
4
|
|
|
5
5
|
The monorepo root [CHANGELOG.md](../../CHANGELOG.md) summarizes cross-surface releases.
|
|
6
6
|
|
|
7
|
+
## 1.4.0
|
|
8
|
+
|
|
9
|
+
- Version alignment with harness **1.4.0** (Kimi Code host support lives in shared skills / `.kimi-plugin`; OpenCode package unchanged beyond version bump).
|
|
10
|
+
|
|
11
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **1.4.0**.
|
|
12
|
+
|
|
7
13
|
## 1.3.2
|
|
8
14
|
|
|
9
15
|
- Bundled commands: `/iteration-start` Cursor Plan path — feedback-driven plan updates; deferred grill after feedback-close; single CreatePlan URI (in-place edits only).
|
|
@@ -101,7 +101,7 @@ PM 在 Assignment 写 **`Task category`**(主类 + 可选 `secondary`):
|
|
|
101
101
|
| `mstar-strategy` | `STRATEGY.md` 全局战略方向 —— 产品愿景、技术方向、决策原则 |
|
|
102
102
|
| `mstar-skill-authoring` | mstar-native skill authoring: trigger contracts, progressive disclosure, pressure scenarios, behavior-change evidence |
|
|
103
103
|
| `mstar-roles` | 角色正文 hub |
|
|
104
|
-
| `mstar-host` | 宿主适配(自动识别;`references/opencode.md` / `cursor.md` / `codex.md` / `parallel-dispatch.md`) |
|
|
104
|
+
| `mstar-host` | 宿主适配(自动识别;`references/opencode.md` / `cursor.md` / `codex.md` / `kimi.md` / `parallel-dispatch.md`) |
|
|
105
105
|
|
|
106
106
|
## 宿主 `mstar-host`
|
|
107
107
|
|
|
@@ -112,6 +112,7 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
112
112
|
| OpenCode | `question`、**task tool**(**subagent** 参数)→ `references/opencode.md` |
|
|
113
113
|
| Cursor | Task 并行 QC;Plan 双写 → `references/cursor.md` · `cursor-plan-mode-bridge.md` |
|
|
114
114
|
| Codex | plugin skills、sandbox/apply_patch/tool discovery;无 invoke 工具时不声称 subagent dispatch → `references/codex.md` |
|
|
115
|
+
| Kimi | `Agent`/`AgentSwarm`(仅 `coder`/`explore`/`plan`);角色绑定在 prompt(C5b);Plan 双写 → `references/kimi.md` · `kimi-plan-mode-bridge.md` |
|
|
115
116
|
| 其它 | 同 `mstar-host` skill;按工具信号选 reference |
|
|
116
117
|
|
|
117
118
|
## 护栏(不变量)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-host
|
|
3
|
-
description: Morning Star host adapter (OpenCode, Cursor, Codex). Use after mstar-harness-core whenever host entry, clarify, dispatch, or plan UX differs by platform - OpenCode question/task-tool subagent invoke, Cursor /pm and CreatePlan/SwitchMode dual-write and Task parallel QC, Codex plugin skills plus Plan/Goal Mode, sandboxed tools, and tool discovery. Auto-detect host from session tools; then Read references/<host>.md. Always load after mstar-harness-core.
|
|
3
|
+
description: Morning Star host adapter (OpenCode, Cursor, Codex, Kimi). Use after mstar-harness-core whenever host entry, clarify, dispatch, or plan UX differs by platform - OpenCode question/task-tool subagent invoke, Cursor /pm and CreatePlan/SwitchMode dual-write and Task parallel QC, Codex plugin skills plus Plan/Goal Mode, Kimi Agent/AgentSwarm with built-in subagent types only (coder/explore/plan) and role-in-prompt binding, sandboxed tools, and tool discovery. Auto-detect host from session tools; then Read references/<host>.md. Always load after mstar-harness-core.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Morning Star Host Adapter
|
|
@@ -31,7 +31,8 @@ Use **capability signals** (not filesystem paths):
|
|
|
31
31
|
| **`question`** tool or **`task`** tool (**subagent** invoke) | `opencode` | `references/opencode.md` |
|
|
32
32
|
| **Task** + `subagent_type`, no CreatePlan | `cursor` | `references/cursor.md` |
|
|
33
33
|
| **Codex app/CLI/plugin context**, `/plan`, `/goal`, Goal tools, `functions.*`, `codex_app.*`, `tool_search`, Browser plugin tools | `codex` | `references/codex.md`; Plan/Goal mode also `references/codex-plan-goal-mode-bridge.md` |
|
|
34
|
-
|
|
|
34
|
+
| **`Agent`** / **`AgentSwarm`** / **`AskUserQuestion`** / **`EnterPlanMode`**, Kimi plugin (`.kimi-plugin/plugin.json`), `/morning-star-harness:*` commands | `kimi` | `references/kimi.md`; Plan mode also `references/kimi-plan-mode-bridge.md` |
|
|
35
|
+
| Still ambiguous | - | Read sections in **`cursor.md`**, **`opencode.md`**, **`codex.md`**, and **`kimi.md`** that match tools you have; **`mstar-harness-core` wins** on conflict |
|
|
35
36
|
|
|
36
37
|
## Parallel dispatch (invoke-capable hosts)
|
|
37
38
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Kimi Plan Mode × Harness Dual-Write Bridge
|
|
2
|
+
|
|
3
|
+
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-plan-conventions`** and **`mstar-plan-artifacts`** when Plan mode is active. Path symbols `{HARNESS_DIR}`, `{PLAN_DIR}`, `{SPECS_DIR}` are defined in `mstar-plan-conventions`. On conflict, **`mstar-harness-core`** wins.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Kimi **Plan mode** (`EnterPlanMode` / `ExitPlanMode`, `/plan`, or `Shift-Tab`) uses a session plan file and read-only exploration for design. Morning Star **SSOT** lives on disk under **`{HARNESS_DIR}`** (default `.mstar/`, legacy `.agents/`). This reference defines **dual-write**: mirror durable plan artifacts to the repo; never treat the Kimi session plan file alone as the handoff surface.
|
|
8
|
+
|
|
9
|
+
## Priority (hard)
|
|
10
|
+
|
|
11
|
+
1. User explicit instructions (this turn)
|
|
12
|
+
2. Project `AGENTS.md` / `CLAUDE.md`
|
|
13
|
+
3. **`{HARNESS_DIR}` / `{PLAN_DIR}` / `status.json`** (harness SSOT)
|
|
14
|
+
4. Kimi plan file and `TodoList` UI (session UX mirror)
|
|
15
|
+
|
|
16
|
+
**NEVER** cite only a Kimi plan file path in Assignment **Plan Path**, **Context Loaded**, or Completion Report when `{PLAN_DIR}/<plan-id>-<name>.md` should exist.
|
|
17
|
+
|
|
18
|
+
## When this applies
|
|
19
|
+
|
|
20
|
+
- Kimi **Plan mode** is active (`EnterPlanMode` succeeded, `/plan on`, or `kimi --plan`).
|
|
21
|
+
- Morning Star plugin is installed (`.kimi-plugin/plugin.json` skills loaded) or **`/skill:pm`** / **`pm` skill** is in use.
|
|
22
|
+
|
|
23
|
+
## Before entering Plan mode
|
|
24
|
+
|
|
25
|
+
1. **Read** (minimum): `mstar-plan-conventions`, `mstar-plan-artifacts` (SKILL.md); Prepare gates from `mstar-phase-gates` if not hotfix.
|
|
26
|
+
2. **Discover** `{HARNESS_DIR}` / `{PLAN_DIR}` per `mstar-plan-conventions`.
|
|
27
|
+
3. **Initialize** if absent: `{HARNESS_DIR}/`, `{PLAN_DIR}/`, `status.json` from `mstar-plan-artifacts/templates/status.empty.json`, `archived/residuals/`, gitignored `sdd/`.
|
|
28
|
+
|
|
29
|
+
## Plan mode workflow (dual-write)
|
|
30
|
+
|
|
31
|
+
| Step | Kimi session | Harness SSOT |
|
|
32
|
+
|------|--------------|--------------|
|
|
33
|
+
| Enter | `EnterPlanMode` or `/plan on` — explore read-only | Ensure `{HARNESS_DIR}` exists; register `plan_id` in `status.json` when known |
|
|
34
|
+
| Design | Edit Kimi plan file with `Write` / `Edit` (when Plan mode allows writes) | Mirror main plan to `{PLAN_DIR}/<plan-id>-<name>.md` with task checkboxes |
|
|
35
|
+
| Clarify | `AskUserQuestion` for blocking ambiguity only | Record decisions in plan / spec when durable |
|
|
36
|
+
| Exit | `ExitPlanMode` — user approves plan to implement | SSOT plan locked; `status.json` row updated |
|
|
37
|
+
| Implement | Agent mode resumes | Per-task commits, Working branch, dispatch per `mstar-dispatch-gates` |
|
|
38
|
+
|
|
39
|
+
`TodoList` and Kimi UI todos are **session progress only** — sync meaningful state to SSOT plan checkboxes and `status.json` when coordination requires it.
|
|
40
|
+
|
|
41
|
+
## ExitPlanMode gate
|
|
42
|
+
|
|
43
|
+
Do **not** treat ExitPlanMode approval as Morning Star **Done**. Implementation still follows phase gates, per-task commits, QC, and QA per the SSOT plan.
|
|
44
|
+
|
|
45
|
+
## `mstar-iteration` Phase 1
|
|
46
|
+
|
|
47
|
+
When iteration Phase 1 runs in Plan mode:
|
|
48
|
+
|
|
49
|
+
- Use **one** plan session; iterate the **same** Kimi plan file and SSOT mirror in place (feedback-driven edits).
|
|
50
|
+
- Do **not** run Review & Edit, commit integration branch, or dispatch implementers until the user approves via `ExitPlanMode` (or explicit go-ahead after plan lock).
|
|
51
|
+
- After approval: reload `mstar-harness-core` + `kimi.md`; resume as `project-manager` orchestration.
|
|
52
|
+
|
|
53
|
+
## Enforcement
|
|
54
|
+
|
|
55
|
+
Conflict with harness invariants → **`mstar-harness-core`** wins. Full Cursor CreatePlan bridge detail lives in `cursor-plan-mode-bridge.md` when hosts differ; Kimi uses this lighter Enter/Exit bridge only.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Kimi host reference
|
|
2
|
+
|
|
3
|
+
Load when **`mstar-host`** detection resolves **kimi** (Kimi Code CLI session, `.kimi-plugin/plugin.json` plugin installed, `Agent` / `AgentSwarm` / `AskUserQuestion` / `EnterPlanMode` tools, or `/morning-star-harness:*` plugin commands).
|
|
4
|
+
|
|
5
|
+
Plan mode: read **`kimi-plan-mode-bridge.md`** when `EnterPlanMode` / `ExitPlanMode`, `/plan`, or `kimi --plan` is active.
|
|
6
|
+
|
|
7
|
+
Parallel PM dispatch: read **`parallel-dispatch.md`** when dispatching **N ≥ 2** concurrent `Agent` invocations.
|
|
8
|
+
|
|
9
|
+
## Kimi-only context
|
|
10
|
+
|
|
11
|
+
- Plugin manifest: **`.kimi-plugin/plugin.json`** (plugin root is the **repo root**; paths stay `./skills/` and `./commands/`).
|
|
12
|
+
- Runtime skills: repo `skills/` mounted by the plugin (`"skills": "./skills/"`).
|
|
13
|
+
- Plugin commands: repo `commands/` → `/morning-star-harness:<name>` (e.g. `/morning-star-harness:iteration-start`).
|
|
14
|
+
- **`sessionStart.skill: pm`** auto-loads the PM entry shim on new sessions; `pm` → **Read next** → `mstar-harness-core` → `project-manager.md`.
|
|
15
|
+
- **`/skill:pm`** or **`pm` skill**: same PM entry when invoked manually.
|
|
16
|
+
- Install (user-scoped): in Kimi TUI `/plugins install https://github.com/btspoony/mstar-harness` then `/plugins reload` (or `/new`).
|
|
17
|
+
- Plugins are **user-scoped** (all projects); managed copy lives under `$KIMI_CODE_HOME/plugins/managed/` after `/plugins install`.
|
|
18
|
+
- Project `.agents/skills/` symlinks are **not** required when using the plugin — commands and skills come from the plugin mount.
|
|
19
|
+
|
|
20
|
+
## Skill loading
|
|
21
|
+
|
|
22
|
+
1. On session start: `pm` (via `sessionStart.skill`) → **Read next** loads `mstar-harness-core`, then `mstar-roles` → `project-manager.md` when PM is active.
|
|
23
|
+
2. Read `mstar-host` and this Kimi reference.
|
|
24
|
+
3. If Plan mode is active, read `kimi-plan-mode-bridge.md`.
|
|
25
|
+
4. Load `mstar-roles` and the active role reference.
|
|
26
|
+
5. Load topic skills on demand per the role reference.
|
|
27
|
+
|
|
28
|
+
Use skill names in prompts and references. Avoid absolute local paths unless maintaining this repository or skills are not installed.
|
|
29
|
+
|
|
30
|
+
## Tools map (default agent)
|
|
31
|
+
|
|
32
|
+
| Kimi tool | Harness use |
|
|
33
|
+
|-----------|-------------|
|
|
34
|
+
| **Agent** | Primary dispatch — delegate one subagent task (`subagent_type`: `coder` \| `explore` \| `plan`) |
|
|
35
|
+
| **AgentSwarm** | Parallel batch when **same** role/profile and prompts differ only by task slice; prefer **N× Agent** when roles differ |
|
|
36
|
+
| **AskUserQuestion** | Structured clarify (1–4 questions, 2–4 options each); prefer over free-form when choices are known |
|
|
37
|
+
| **EnterPlanMode** / **ExitPlanMode** | Plan mode entry/approval → **`kimi-plan-mode-bridge.md`** |
|
|
38
|
+
| **TodoList** | Session UX only; mirror to SSOT plan / `status.json` when durable |
|
|
39
|
+
| **Bash** | Commands, git, tests — evidence per `mstar-coding-behavior` |
|
|
40
|
+
| **Read** / **ReadMediaFile** | File reads |
|
|
41
|
+
| **Glob** / **Grep** | Search (prefer over shell find/grep) |
|
|
42
|
+
| **Write** / **Edit** | Edits |
|
|
43
|
+
| **WebSearch** / **FetchURL** | External docs / facts |
|
|
44
|
+
| **TaskList** / **TaskOutput** / **TaskStop** | Long-running task management when present |
|
|
45
|
+
|
|
46
|
+
OpenCode-style `question` and Cursor **Task** are **not** Kimi tools — do not assume them.
|
|
47
|
+
|
|
48
|
+
## Role agents (C5 — hard constraint)
|
|
49
|
+
|
|
50
|
+
Kimi ships **built-in subagent types only**. Valid **`subagent_type`** values:
|
|
51
|
+
|
|
52
|
+
| `subagent_type` | Kimi profile | Harness mapping |
|
|
53
|
+
|-----------------|--------------|-----------------|
|
|
54
|
+
| `explore` | Read-only exploration | Orientation, codebase survey, Prepare explore passes |
|
|
55
|
+
| `plan` | Plan-mode subagent | Prepare plan-only work when host is already in plan context |
|
|
56
|
+
| `coder` | General implementation | **All other Morning Star roles** (`product-manager`, `fullstack-dev`, `qc-specialist`, …) |
|
|
57
|
+
|
|
58
|
+
Morning Star role ids (`project-manager`, `fullstack-dev`, `qc-specialist`, …) are **not** valid `subagent_type` values. The host cannot register custom named agents like Codex TOML or Cursor `subagent_type` role ids.
|
|
59
|
+
|
|
60
|
+
### Role binding in prompt (C5b — required)
|
|
61
|
+
|
|
62
|
+
Because Kimi cannot bind roles via agent config, every dispatch **must** carry the played Morning Star role in the **Assignment** and in the **`Agent` prompt**:
|
|
63
|
+
|
|
64
|
+
1. **`Execute as: <role-id>`** in Assignment (harness routing SSOT).
|
|
65
|
+
2. **`Act as <role-id>`** (or equivalent) at the top of the Agent prompt.
|
|
66
|
+
3. **Skill load list** — instruct the subagent to read `mstar-roles` → `references/<role-id>.md` (or shared reference + parameters) and topic skills per that reference.
|
|
67
|
+
4. **`subagent_type`** — pick from the mapping table above only.
|
|
68
|
+
|
|
69
|
+
Paste-only Assignment without an **`Agent`** call is **not** dispatch.
|
|
70
|
+
|
|
71
|
+
### Assignment / Agent-prompt template
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
## Assignment
|
|
75
|
+
|
|
76
|
+
**Execute as**: fullstack-dev
|
|
77
|
+
**Delegation**: forbidden
|
|
78
|
+
**Working branch**: feat/example
|
|
79
|
+
**Plan Path**: .mstar/plans/20260717-example.md
|
|
80
|
+
|
|
81
|
+
**IDENTITY:** You ARE `fullstack-dev`. Act as `fullstack-dev` for this task.
|
|
82
|
+
Load: `mstar-harness-core` → `mstar-host` → `kimi.md` → `mstar-roles` → `references/fullstack-dev-shared.md` → topic skills per that reference.
|
|
83
|
+
|
|
84
|
+
<task body>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
PM dispatch invocation (same turn):
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
Agent(
|
|
91
|
+
subagent_type: "coder",
|
|
92
|
+
prompt: "<full Assignment body including Act as + skill load>"
|
|
93
|
+
)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For **`explore`** orientation:
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
Agent(subagent_type: "explore", prompt: "... Act as explore-only orientation; Execute as: n/a ...")
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
For Prepare plan-only when plan subagent is appropriate:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
Agent(subagent_type: "plan", prompt: "... Act as architect for plan design; load mstar-roles → architect.md ...")
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## PM dispatch (`Agent` / `AgentSwarm`)
|
|
109
|
+
|
|
110
|
+
Harness **dispatch** on Kimi = **one or more `Agent` tool calls** with correct **`subagent_type`** and role-bound prompts.
|
|
111
|
+
|
|
112
|
+
| Harness | Kimi |
|
|
113
|
+
|---------|------|
|
|
114
|
+
| `Execute as: <role-id>` | Role id in Assignment + **Act as** + skill load in **Agent** prompt |
|
|
115
|
+
| `subagent_type` for invoke | `coder` \| `explore` \| `plan` only (see mapping) |
|
|
116
|
+
| 1 Assignment ⇒ 1 invoke | **1 `Agent`** call with full Assignment prompt |
|
|
117
|
+
| Parallel batch **N** | **N `Agent`** calls in **one assistant message** when roles may differ; **`AgentSwarm`** only when same role/profile |
|
|
118
|
+
| No `Agent` call | **Not dispatched** — paste-only / `dispatch incomplete` |
|
|
119
|
+
|
|
120
|
+
### QC default
|
|
121
|
+
|
|
122
|
+
- **`Execution mode: sdd`**: **N=3** `Agent` calls (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) — each prompt **Act as** the respective QC role, all `subagent_type: "coder"`.
|
|
123
|
+
- **`inline`**: **N=1** per `parallel-dispatch.md`.
|
|
124
|
+
|
|
125
|
+
Cannot emit required **N** → **`Blocked`**.
|
|
126
|
+
|
|
127
|
+
### SDD implement (serial)
|
|
128
|
+
|
|
129
|
+
- **`Execution mode: sdd`**: one implementer **`Agent`** per task id; task reviewer = new **`Agent`** (no sticky resume unless host adds it later).
|
|
130
|
+
- **Never** multiple implementer Agents in one message for the same plan.
|
|
131
|
+
|
|
132
|
+
## Clarify
|
|
133
|
+
|
|
134
|
+
- Prefer **`AskUserQuestion`** for 1–3 high-impact choices with known options.
|
|
135
|
+
- Fallback: one concise Markdown question after codebase exploration cannot answer it.
|
|
136
|
+
- `AskUserQuestion` for plan approval is wrong in Plan mode — use **`ExitPlanMode`** for plan sign-off.
|
|
137
|
+
- “Question asked” ≠ clarify done; blocking ambiguity → **`Blocked`** or escalation.
|
|
138
|
+
|
|
139
|
+
## Commands and skills paths
|
|
140
|
+
|
|
141
|
+
| Surface | Path / invocation |
|
|
142
|
+
|---------|-------------------|
|
|
143
|
+
| Plugin skills | `/skill:<skill-name>` or auto-load from `skills/` via plugin |
|
|
144
|
+
| Plugin commands | `/morning-star-harness:iteration-start` etc. |
|
|
145
|
+
| Session entry | `sessionStart.skill: pm` → `mstar-harness-core` via pm **Read next** |
|
|
146
|
+
|
|
147
|
+
## Files, shell, and approvals
|
|
148
|
+
|
|
149
|
+
- Prefer **Glob** / **Grep** for search; **Write** / **Edit** for edits.
|
|
150
|
+
- Respect Kimi approval prompts for destructive operations.
|
|
151
|
+
- Do not edit `$KIMI_CODE_HOME` credentials, managed plugin copies, or user secrets without explicit consent.
|
|
152
|
+
|
|
153
|
+
## Git and final evidence
|
|
154
|
+
|
|
155
|
+
- Git work follows `mstar-branch-worktree` and Assignment **Working branch** / **Branch policy**.
|
|
156
|
+
- Completion reports cite concrete commands, artifacts, and commit lines when required.
|
|
157
|
+
|
|
158
|
+
## Gotchas
|
|
159
|
+
|
|
160
|
+
- Plugin install copies source to managed dir — edit checkout + reinstall to pick up harness changes.
|
|
161
|
+
- **`AgentSwarm`** shares one template — not for mixed-role QC tri-review; use **3× Agent** instead.
|
|
162
|
+
- Session plan file and `TodoList` are not durable SSOT unless mirrored to `{HARNESS_DIR}`.
|
|
163
|
+
- No custom Kimi agent profiles for Morning Star roles — role binding is **always** prompt + skill load (C5b).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Parallel dispatch (invoke-capable hosts)
|
|
2
2
|
|
|
3
|
-
Shared PM dispatch contract for **any** host that uses subagent / Task /
|
|
3
|
+
Shared PM dispatch contract for **any** host that uses subagent / Task / Agent invoke (OpenCode task tool, Cursor Task, Kimi **Agent** / **AgentSwarm**, Codex only when a callable multi-agent / Task tool is actually available). Process SSOT also in `mstar-dispatch-gates`.
|
|
4
4
|
|
|
5
5
|
If the active host has no callable invoke tool, this reference does not create delegation capability — mark dispatch **`Blocked`** and report to the user. Do not substitute PM-thread or single-session role execution unless the user explicitly overrides harness dispatch for this turn.
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ Printing `## Assignment` in the main thread **without** matching host invocation
|
|
|
17
17
|
|
|
18
18
|
1. Finalize all `N` Assignment payloads (after any prerequisite turn).
|
|
19
19
|
2. Count distinct `Execute as` sessions (`N`).
|
|
20
|
-
3. Issue **`N` host invocations first** — OpenCode: **N `task` tool** calls with **subagent**; Cursor: **N `Task`** with `subagent_type`; each with one Assignment body. For parallel work, **all `N` tool calls in one assistant message** when the host allows.
|
|
20
|
+
3. Issue **`N` host invocations first** — OpenCode: **N `task` tool** calls with **subagent**; Cursor: **N `Task`** with `subagent_type`; Kimi: **N `Agent`** calls (each prompt carries **Act as** + skill load; `subagent_type` ∈ {`coder`,`explore`,`plan`} only — see `kimi.md` C5/C5b); each with one Assignment body. For parallel work, **all `N` tool calls in one assistant message** when the host allows.
|
|
21
21
|
4. Optionally post a short **Status Update** after invocations (audit trail only — does not replace step 3).
|
|
22
22
|
|
|
23
23
|
## Hard rules
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm
|
|
3
|
-
description: "PM entry shim — force project-manager orchestration when user invokes /pm or this skill (Codex and
|
|
3
|
+
description: "PM entry shim — force project-manager orchestration when user invokes /pm or this skill (Codex, Cursor, OpenCode, and Kimi). General per-plan PM work: this skill + project-manager.md. Formal iteration lifecycle: mstar-iteration (host commands/ may orchestrate Phase 1–5). Boot, routing, dispatch SSOT → mstar-roles/references/project-manager.md and topic mstar-* skills — not here."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PM (entry shim)
|
|
@@ -14,10 +14,11 @@ description: "PM entry shim — force project-manager orchestration when user in
|
|
|
14
14
|
| **Codex** | **`/pm`** or this skill → **`project-manager`** for the session |
|
|
15
15
|
| **Cursor** | **`/pm`** or this skill → general PM orchestration (single-plan, hotfix, QC waves, dispatch) **without** starting an iteration. Formal iteration → host **`commands/`** + **`mstar-iteration`** |
|
|
16
16
|
| **OpenCode** | Same as Cursor when no command: **`project-manager`** via `mstar-roles` → `references/project-manager.md` |
|
|
17
|
+
| **Kimi** | **`/skill:pm`** or this skill → **`project-manager`**; iteration → plugin **`commands/`** (`/morning-star-harness:iteration-*`) |
|
|
17
18
|
|
|
18
19
|
**Iteration lifecycle** (optional): host `commands/` may sequence Phase 1–5; semantics SSOT → **`mstar-iteration`**. Not required for ordinary PM work.
|
|
19
20
|
|
|
20
|
-
Detect host → **`mstar-host`** → `references/codex.md` | `cursor.md` | `opencode.md`.
|
|
21
|
+
Detect host → **`mstar-host`** → `references/codex.md` | `cursor.md` | `opencode.md` | `kimi.md`.
|
|
21
22
|
|
|
22
23
|
## Read next (in order)
|
|
23
24
|
|