This repository provides the Morning Star multi-agent code harness framework.
Core value:
- Start a usable multi-role workflow quickly
- Run with unified
mstar-*skills instead of scattered rules - Reuse one core process across OpenCode, Cursor, and Codex
- Use the
mstar-harnessCLI (npm package@mstar-harness/cli):npx @mstar-harness/cli init- or
bunx @mstar-harness/cli init
initprovides a target-aware guided setup so installation and baseline config happen in one flow.- CLI target support currently includes:
opencodecursor
For full CLI usage and advanced options (--yes, --dry-run, --output, doctor) including Cursor target install modes, see docs/cli.md.
Manual install targets currently include:
opencodecursorcodex
- Plugin install:
- Add plugin config in
opencode.json:{ "$schema": "https://opencode.ai/config.json", "plugin": [ "superpowers@git+https://github.com/obra/superpowers.git", "@mstar-harness/opencode@latest" ] } - Restart OpenCode
- Add plugin config in
- The OpenCode plugin resolves skills and agents only inside
@mstar-harness/opencode(notprocess.cwd()). Published builds shipharness-skills/andharness-agents/. If you work from a git checkout of this repo, runbun install/npm installat the repo root sopostinstallrunsopencode:bundle-assetsand populates those directories underpackages/opencode/.
For detailed OpenCode setup and migration, see packages/opencode/INSTALL.md.
- Local plugin install (direct clone):
mkdir -p ~/.cursor/plugins/localgit clone https://github.com/btspoony/mstar-harness.git ~/.cursor/plugins/local/mstar-harness- Restart Cursor or run
Developer: Reload Window
- Marketplace install:
codex plugin marketplace add https://github.com/btspoony/mstar-harness.git --sparse .codex/- Install Morning Star Harness from the added marketplace.
That completes installation.
- OpenCode: start with the
Project Managerrole (agents/project-manager.md, typicallyagent.project-managerinopencode.json). - Cursor: use
/pmto force-start with theProject Managerrole. - Codex: use
/pmto force-start with theProject Managerrole after installing the plugin.
flowchart TD
A["PM: entry and intent clarification"] --> B{"PM: spec and context ready"}
B -->|No| C["PM: clarify and refine requirements"]
C --> B
B -->|Yes| D["PM: initialize or load HARNESS_DIR and PLAN_DIR"]
D --> E["PM: create or select active plan and update status.json SSOT"]
E --> F["PM: task routing and assignment"]
F --> G{"PM: work type"}
G -->|Large or high-ambiguity| H["Explore, Product Manager, Architect pre-work"]
H --> I["Dev team: implementation tracks"]
G -->|Medium, small, or bugfix| I
I --> J["Dev owners and PM: record notes and findings"]
J --> K["QC specialists: QC review gate (default: QC trio parallel review)"]
K --> L{"PM: consolidated QC decision"}
L -->|Request Changes| M["PM: assign fixes to dev owners"]
M --> I
L -->|Approve or discussion resolved| N["QA engineer: verification"]
N --> O{"PM and QA: residual findings remain"}
O -->|Yes| P["PM: register residuals in status.json and schedule follow-up"]
P --> Q["QA or PM: sign-off with traceable evidence"]
O -->|No| Q
Q --> R["PM: mark done and archive context"]
| Agent ID | Role | Responsibility |
|---|---|---|
project-manager |
Project Manager | Routing, assignment, phase progression |
product-manager |
Product Manager | Requirements, product planning, and market/user research |
architect |
Architect | Architecture and technical contracts |
fullstack-dev / fullstack-dev-2 |
Fullstack Dev | Backend-led implementation / second parallel track |
frontend-dev |
Frontend Dev | UI, interaction, frontend performance |
qa-engineer |
QA | Testing and acceptance validation |
qc-specialist / qc-specialist-2 / qc-specialist-3 |
QC Trio | Code quality gate (architecture/security/performance) |
ops-engineer |
Ops | Deployment, monitoring, infrastructure |
writing-specialist |
Writing Specialist | Documentation, fiction, copywriting, and script writing |
prompt-engineer |
Prompt Engineer | Prompt / skill / rule optimization |
You can assign different models per agent in opencode.json without replacing your existing file.
| Skill | Purpose |
|---|---|
mstar-harness-core |
Global entry, state machine, gates, invariants |
mstar-host (per host) |
Host-specific capabilities (OpenCode / Cursor) |
pm |
Shared /pm shortcut for Cursor and Codex PM entry |
mstar-roles |
Role prompt bus (role bodies in references/) |
mstar-plan-conventions |
Unified plan/status/residual conventions |
mstar-review-qc |
QC review baseline and report template |
mstar-coding-behavior |
Cross-role coding behavior baseline |
mstar-superpowers-align |
Alignment and conflict handling with Superpowers |
This project is licensed under MIT. See LICENSE.