mstar-harness
btspoony · btspoony/mstar-harness
Plugin tác nhân này cung cấp Harness Workflow Engine bằng TypeScript cho các hệ thống đa tác nhân, thực thi các cổng luồng công việc và kỹ năng xác định.
An omni-plugin for harness engineering workflows with multi-agents, programmatic gates and skills.
Xem trước
Bạn có thể làm gì với nó
- Xây dựng các luồng công việc đa tác nhân phức tạp với các bước và kiểm tra đã xác định.
- Đảm bảo việc phân phối mã của tác nhân AI đáp ứng các cổng chương trình cụ thể.
- Tích hợp một công cụ luồng công việc nhất quán trên nhiều máy chủ tác nhân AI như Cursor và OpenCode.
Kiểm tra an toàn
Không thấy dấu hiệu rủi ro trong các file đã quét.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
Morning Star
Harness Workflow Engine · Agent Plugin
English / 中文
GitHub · Issues
Morning Star / 晨星 is an Agent Plugin for harness engineering workflows: a TypeScript Harness Workflow Engine (@mstar-harness/engine) enforces deterministic workflow gates, while mstar-* judgment skills drive multi-agent code delivery.
- Deterministic gates, enforced by a TS engine — path/status/lease/dispatch/sdd/iteration/lint gates run in
@mstar-harness/engine, not as prompt suggestions - Judgment stays in
mstar-*skills — skills remain the single source of truth (SSOT) for roles, gates, and workflow judgment - One engine across hosts — the same engine + skills power dsh (DeepSeek Harness), omp, OpenCode, Cursor, Kimi Code, ZCode, and Codex
- Agent Plugin packaging — one-command install; portable across any Agent Plugins v1.0.0 client
- Pluggable JSON persistence — coordination docs (
status.json, workflow snapshots, review envelopes) persist through anArtifactStore; the defaultFsStorekeeps the existing.mstar/paths, and integrations mount their own store viaMSTAR_STORE_MODULE/--store/ in-processsetArtifactStore - Issue/catalog store vs execution JSON —
{HARNESS_DIR}/store.db(SQLite) is the issue and catalog authority after activation;ArtifactStoreremains execution/review JSON (status.json, snapshots). The retired project registers are migration history with no write path. They are not the same store. - Recommended host (best → usable): dsh = omp ≥ ZCode = OpenCode = Cursor > Kimi > Codex
What ships
| Component | What it is |
|---|---|
| Harness Workflow Engine | @mstar-harness/engine — TS enforcement of deterministic workflow gates |
| mstar CLI | @mstar-harness/cli — installer bootstrap + mstar workflow verbs |
mstar-* skills | Role, gate, and workflow judgment (single source of truth) |
| Host adapters | dsh, omp, OpenCode, Cursor, Kimi Code, ZCode, Codex |
Release notes: CHANGELOG.md / CHANGELOG_CN.md.
Install
| Host | Command |
|---|---|
| dsh (DeepSeek Harness) | npx @mstar-harness/cli init --target dsh(one CLI command that runs two independent dsh plugin --profile web add installs:@mstar-harness/dsh + dsh-llm-fallbacks; --no-fallbacks skips the latter)or dsh plugin --profile web add @mstar-harness/dsh+ dsh plugin --profile web add dsh-llm-fallbacks |
| omp | npx @mstar-harness/cli init --target omp(links ~/.mstar/harness/packages/omp)or omp plugin install @mstar-harness/omp |
| OpenCode | npx @mstar-harness/cli init --target opencode |
| Cursor | npx @mstar-harness/cli init --target cursor |
| Kimi | Kimi TUI: /plugins install https://github.com/btspoony/mstar-harness→ /plugins reload |
| ZCode | npx @mstar-harness/cli init --target zcodethen install morning-star-harness in ZCode → Settings → Plugin Management |
| Codex | npx @mstar-harness/cli init --target codexthen codex plugin add morning-star-harness@mstar-repo (repo-bundled marketplace) |
| Generic (Agent Plugins v1) | point any Agent Plugins v1.0.0 conformant client at this repo root(plugin.json + skills/ are the portable package) |
CLI commands in this section run the published bin through its Bun shebang:
npx/bunx/npm i -gall need Bun >=1.4.0 on PATH. Node-only machine:npm install @mstar-harness/cli, thennode node_modules/@mstar-harness/cli/dist/mstar-harness.js <verb>(see Runtime floors).
Engine gate checks (Recommended)
npm i -g @mstar-harness/cli
Puts the mstar-harness binary (short alias mstar) on PATH, so the engine-check commands the skills cite (mstar status validate, mstar dispatch validate, mstar iteration gate, …) actually run.
init now auto-installs the matching-version CLI globally after a successful run — pass --no-global-cli to opt out.
Without a global install the harness still works and those checks stay advisory. Set enforcement: hard in an iteration compass to make dispatch preflights fail-fast.
Caution:
mstaris a short alias and a shared bin namespace — an unrelated third-party npm package namedmstarclaims the same command name. The alias exists only where@mstar-harness/cliis installed: barenpx mstar …without the package resolves via the registry to that other tool, and globally co-installing both packages silently overwrites themstarshim (last install wins). The canonical invocation name staysmstar-harness— use the long name on any conflict.
Verify
npx @mstar-harness/cli doctor --target <opencode|cursor|codex|zcode|omp|dsh|kimi> checks the selected target; Codex also accepts --scope <global|project>. MCP package health is reported as aligned, mismatch, or unavailable. Doctor reads package metadata/executable and checks runtime floor; it does not open the issue store. See MCP host install paths.
Codex agent-link repair and named-role verification: Codex installation.
The repo ships a portable Agent Plugins v1.0.0 manifest (plugin.json) at its root; skills/ is the Agent Skills component — verify it with npx @mstar-harness/cli plugin validate.
Manual install / path layout: INSTALL.md. CLI flags: the mstar-use-cli skill.
Runtime floors (entrypoint, not “install both”)
The published CLI keeps a Bun shebang (#!/usr/bin/env bun). Normal launch of mstar-harness / the dist file uses Bun >=1.4.0. An explicit node <CLI bundle> uses Node >=24.18.0. npx / bunx fetch the package but still execute that same Bun-shebang bin, so they need Bun >=1.4.0 on PATH as well — a package runner is not a runtime; on a Node-only machine install the package and run the bundle under Node (node node_modules/@mstar-harness/cli/dist/mstar-harness.js <verb>). Bun-hos