@monoes/monomindcli 2.9.7 → 2.9.9
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/.claude/agents/design/design-monodesign.md +1 -2
- package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +1 -2
- package/.claude/agents/engineering/engineering-ai-engineer.md +1 -2
- package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -1
- package/.claude/agents/engineering/engineering-backend-architect.md +1 -2
- package/.claude/agents/engineering/engineering-code-reviewer.md +1 -2
- package/.claude/agents/engineering/engineering-data-engineer.md +1 -2
- package/.claude/agents/engineering/engineering-database-optimizer.md +1 -2
- package/.claude/agents/engineering/engineering-devops-automator.md +1 -2
- package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +1 -2
- package/.claude/agents/engineering/engineering-feishu-integration-developer.md +1 -2
- package/.claude/agents/engineering/engineering-frontend-developer.md +1 -2
- package/.claude/agents/engineering/engineering-git-workflow-master.md +1 -2
- package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -1
- package/.claude/agents/engineering/engineering-mobile-app-builder.md +1 -2
- package/.claude/agents/engineering/engineering-rapid-prototyper.md +1 -2
- package/.claude/agents/engineering/engineering-security-engineer.md +1 -2
- package/.claude/agents/engineering/engineering-senior-developer.md +1 -2
- package/.claude/agents/engineering/engineering-software-architect.md +1 -2
- package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +1 -2
- package/.claude/agents/engineering/engineering-sre.md +0 -1
- package/.claude/agents/engineering/engineering-technical-writer.md +1 -2
- package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -1
- package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +1 -2
- package/.claude/agents/github/code-review-swarm.md +0 -1
- package/.claude/agents/github/github-modes.md +0 -1
- package/.claude/agents/github/issue-tracker.md +0 -1
- package/.claude/agents/github/multi-repo-swarm.md +0 -1
- package/.claude/agents/github/pr-manager.md +0 -1
- package/.claude/agents/github/project-board-sync.md +0 -1
- package/.claude/agents/github/release-manager.md +0 -1
- package/.claude/agents/github/repo-architect.md +0 -1
- package/.claude/agents/github/swarm-issue.md +0 -1
- package/.claude/agents/github/swarm-pr.md +0 -1
- package/.claude/agents/github/sync-coordinator.md +0 -1
- package/.claude/agents/github/workflow-automation.md +0 -1
- package/.claude/agents/marketing/marketing-competitive-content.md +1 -2
- package/.claude/agents/marketing/marketing-cro-specialist.md +1 -2
- package/.claude/agents/marketing/marketing-email-specialist.md +1 -2
- package/.claude/agents/marketing/marketing-launch-strategist.md +1 -2
- package/.claude/agents/marketing/marketing-pricing-strategist.md +1 -2
- package/.claude/agents/specialized/agentic-identity-trust.md +0 -1
- package/.claude/agents/specialized/agents-orchestrator.md +1 -2
- package/.claude/agents/specialized/automation-governance-architect.md +1 -2
- package/.claude/agents/specialized/blockchain-security-auditor.md +1 -2
- package/.claude/agents/specialized/compliance-auditor.md +1 -2
- package/.claude/agents/specialized/identity-graph-operator.md +0 -1
- package/.claude/agents/specialized/lsp-index-engineer.md +1 -2
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -1
- package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -1
- package/.claude/agents/specialized/specialized-developer-advocate.md +1 -2
- package/.claude/agents/specialized/specialized-document-generator.md +1 -2
- package/.claude/agents/specialized/specialized-mcp-builder.md +1 -2
- package/.claude/agents/specialized/specialized-model-qa.md +0 -1
- package/.claude/agents/specialized/specialized-workflow-architect.md +1 -2
- package/.claude/agents/specialized/zk-steward.md +1 -2
- package/.claude/agents/testing/production-validator.md +0 -1
- package/.claude/agents/testing/tdd-london-swarm.md +0 -1
- package/.claude/agents/testing/testing-accessibility-auditor.md +0 -1
- package/.claude/agents/testing/testing-api-tester.md +1 -2
- package/.claude/agents/testing/testing-evidence-collector.md +1 -2
- package/.claude/agents/testing/testing-performance-benchmarker.md +1 -2
- package/.claude/agents/testing/testing-test-results-analyzer.md +1 -2
- package/.claude/agents/testing/testing-tool-evaluator.md +1 -2
- package/.claude/agents/testing/testing-workflow-optimizer.md +1 -2
- package/.claude/commands/hooks/README.md +1 -1
- package/.claude/commands/memory/README.md +6 -7
- package/.claude/commands/monitoring/README.md +1 -1
- package/.claude/helpers/control-start.cjs +37 -8
- package/.claude/helpers/handlers/route-handler.cjs +22 -3
- package/.claude/helpers/handlers/session-handler.cjs +43 -0
- package/.claude/helpers/intelligence.cjs +27 -6
- package/.claude/helpers/statusline.cjs +45 -11
- package/.claude/skills/agentic-jujutsu/SKILL.md +17 -15
- package/.claude/skills/hive-mind-advanced/SKILL.md +212 -559
- package/.claude/skills/hooks-automation/SKILL.md +1 -1
- package/.claude/skills/mastermind-adapters/SKILL.md +0 -11
- package/.claude/skills/mastermind-agents/SKILL.md +0 -11
- package/.claude/skills/mastermind-backup/SKILL.md +0 -11
- package/.claude/skills/mastermind-bootstrap/SKILL.md +0 -11
- package/.claude/skills/mastermind-delegation/SKILL.md +14 -12
- package/.claude/skills/mastermind-idea/SKILL.md +0 -5
- package/.claude/skills/mastermind-monitor/SKILL.md +0 -15
- package/.claude/skills/mastermind-org-settings/SKILL.md +0 -11
- package/.claude/skills/mastermind-plugins/SKILL.md +0 -11
- package/.claude/skills/mastermind-protocol/SKILL.md +6 -124
- package/.claude/skills/mastermind-repeat/SKILL.md +0 -25
- package/.claude/skills/mastermind-review/SKILL.md +1 -1
- package/.claude/skills/mastermind-stoporg/SKILL.md +0 -19
- package/.claude/skills/memory-toolkit/SKILL.md +12 -11
- package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +8 -1
- package/.claude/skills/pair-programming/SKILL.md +1 -1
- package/.claude/skills/performance-analysis/SKILL.md +228 -484
- package/.claude/skills/specialagent/SKILL.md +31 -133
- package/.claude/skills/swarm-advanced/SKILL.md +2 -2
- package/.claude/skills/swarm-orchestration/SKILL.md +220 -150
- package/.claude/skills/verification-quality/SKILL.md +247 -571
- package/README.md +3 -3
- package/dist/src/commands/agent-lifecycle.js +3 -3
- package/dist/src/commands/agent-lifecycle.js.map +1 -1
- package/dist/src/commands/autopilot.d.ts.map +1 -1
- package/dist/src/commands/autopilot.js +7 -1
- package/dist/src/commands/autopilot.js.map +1 -1
- package/dist/src/commands/doc.d.ts.map +1 -1
- package/dist/src/commands/doc.js +14 -3
- package/dist/src/commands/doc.js.map +1 -1
- package/dist/src/commands/doctor-env-checks.d.ts +1 -1
- package/dist/src/commands/doctor-env-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.js +3 -37
- package/dist/src/commands/doctor-project-checks.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +30 -1
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-coverage-commands.js +75 -67
- package/dist/src/commands/hooks-coverage-commands.js.map +1 -1
- package/dist/src/commands/hooks-workers.d.ts.map +1 -1
- package/dist/src/commands/hooks-workers.js +41 -10
- package/dist/src/commands/hooks-workers.js.map +1 -1
- package/dist/src/commands/hooks.js +1 -1
- package/dist/src/commands/index.d.ts +1 -1
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +20 -4
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +80 -7
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/mcp.d.ts.map +1 -1
- package/dist/src/commands/mcp.js +78 -2
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/neural-optimize.d.ts.map +1 -1
- package/dist/src/commands/neural-optimize.js +27 -5
- package/dist/src/commands/neural-optimize.js.map +1 -1
- package/dist/src/commands/org-observe.d.ts.map +1 -1
- package/dist/src/commands/org-observe.js +37 -30
- package/dist/src/commands/org-observe.js.map +1 -1
- package/dist/src/commands/org.d.ts.map +1 -1
- package/dist/src/commands/org.js +129 -2
- package/dist/src/commands/org.js.map +1 -1
- package/dist/src/commands/performance.js +1 -1
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/security-cve.d.ts.map +1 -1
- package/dist/src/commands/security-cve.js +1 -11
- package/dist/src/commands/security-cve.js.map +1 -1
- package/dist/src/commands/security-misc.d.ts +0 -9
- package/dist/src/commands/security-misc.d.ts.map +1 -1
- package/dist/src/commands/security-misc.js +33 -54
- package/dist/src/commands/security-misc.js.map +1 -1
- package/dist/src/commands/security-scan.d.ts.map +1 -1
- package/dist/src/commands/security-scan.js +3 -11
- package/dist/src/commands/security-scan.js.map +1 -1
- package/dist/src/commands/swarm.d.ts.map +1 -1
- package/dist/src/commands/swarm.js +7 -2
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/ui.d.ts +8 -0
- package/dist/src/commands/ui.d.ts.map +1 -0
- package/dist/src/commands/ui.js +94 -0
- package/dist/src/commands/ui.js.map +1 -0
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +7 -9
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +13 -3
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/kimi-generator.d.ts +3 -2
- package/dist/src/init/kimi-generator.d.ts.map +1 -1
- package/dist/src/init/kimi-generator.js +45 -13
- package/dist/src/init/kimi-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +1 -1
- package/dist/src/init/statusline-generator.js +1 -1
- package/dist/src/init/write-capabilities.js +7 -7
- package/dist/src/init/write-capabilities.js.map +1 -1
- package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
- package/dist/src/knowledge/document-pipeline.js +1 -0
- package/dist/src/knowledge/document-pipeline.js.map +1 -1
- package/dist/src/knowledge/eval/golden-set.d.ts.map +1 -1
- package/dist/src/knowledge/eval/golden-set.js +21 -32
- package/dist/src/knowledge/eval/golden-set.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +2 -2
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.js +29 -3
- package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.js +32 -19
- package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
- package/dist/src/mcp-tools/monograph/query-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/query-tools.js +48 -18
- package/dist/src/mcp-tools/monograph/query-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +15 -10
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/memory/embedding-operations.d.ts +4 -0
- package/dist/src/memory/embedding-operations.d.ts.map +1 -1
- package/dist/src/memory/embedding-operations.js +125 -32
- package/dist/src/memory/embedding-operations.js.map +1 -1
- package/dist/src/memory/hnsw-operations.d.ts +1 -1
- package/dist/src/memory/hnsw-operations.js +1 -1
- package/dist/src/memory/memory-bridge.d.ts +8 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -1
- package/dist/src/memory/memory-bridge.js +37 -8
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-read.d.ts +1 -1
- package/dist/src/memory/memory-read.js +2 -2
- package/dist/src/memory/memory-read.js.map +1 -1
- package/dist/src/orgrt/antigravity-runner.d.ts.map +1 -1
- package/dist/src/orgrt/antigravity-runner.js +6 -6
- package/dist/src/orgrt/antigravity-runner.js.map +1 -1
- package/dist/src/orgrt/checkpoint-ops.d.ts +11 -1
- package/dist/src/orgrt/checkpoint-ops.d.ts.map +1 -1
- package/dist/src/orgrt/checkpoint-ops.js +18 -86
- package/dist/src/orgrt/checkpoint-ops.js.map +1 -1
- package/dist/src/orgrt/checkpoint.d.ts +1 -1
- package/dist/src/orgrt/checkpoint.d.ts.map +1 -1
- package/dist/src/orgrt/checkpoint.js +3 -3
- package/dist/src/orgrt/checkpoint.js.map +1 -1
- package/dist/src/orgrt/daemon.d.ts +9 -1
- package/dist/src/orgrt/daemon.d.ts.map +1 -1
- package/dist/src/orgrt/daemon.js +267 -139
- package/dist/src/orgrt/daemon.js.map +1 -1
- package/dist/src/orgrt/decisions.d.ts +13 -0
- package/dist/src/orgrt/decisions.d.ts.map +1 -1
- package/dist/src/orgrt/decisions.js +95 -0
- package/dist/src/orgrt/decisions.js.map +1 -1
- package/dist/src/orgrt/forwarder.d.ts.map +1 -1
- package/dist/src/orgrt/forwarder.js +148 -15
- package/dist/src/orgrt/forwarder.js.map +1 -1
- package/dist/src/orgrt/kimicode-runner.js +1 -1
- package/dist/src/orgrt/kimicode-runner.js.map +1 -1
- package/dist/src/orgrt/opencode-runner.js +1 -1
- package/dist/src/orgrt/opencode-runner.js.map +1 -1
- package/dist/src/orgrt/session.d.ts +27 -1
- package/dist/src/orgrt/session.d.ts.map +1 -1
- package/dist/src/orgrt/session.js +67 -6
- package/dist/src/orgrt/session.js.map +1 -1
- package/dist/src/orgrt/task-dag.d.ts +11 -1
- package/dist/src/orgrt/task-dag.d.ts.map +1 -1
- package/dist/src/orgrt/task-dag.js +93 -2
- package/dist/src/orgrt/task-dag.js.map +1 -1
- package/dist/src/orgrt/templates.d.ts.map +1 -1
- package/dist/src/orgrt/templates.js +26 -2
- package/dist/src/orgrt/templates.js.map +1 -1
- package/dist/src/orgrt/types.d.ts +77 -1
- package/dist/src/orgrt/types.d.ts.map +1 -1
- package/dist/src/orgrt/types.js +28 -2
- package/dist/src/orgrt/types.js.map +1 -1
- package/dist/src/orgrt/vercel-providers.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-providers.js +9 -4
- package/dist/src/orgrt/vercel-providers.js.map +1 -1
- package/dist/src/orgrt/vercel-runner.d.ts +0 -23
- package/dist/src/orgrt/vercel-runner.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-runner.js +38 -7
- package/dist/src/orgrt/vercel-runner.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/.claude/commands/mastermind/approvev1.md +0 -94
- package/.claude/commands/mastermind/architect.md +0 -52
- package/.claude/commands/mastermind/autodev.md +0 -28
- package/.claude/commands/mastermind/build.md +0 -23
- package/.claude/commands/mastermind/finish.md +0 -17
- package/.claude/commands/mastermind/runorgv1.md +0 -159
- package/.claude/commands/mastermind/taskdev.md +0 -23
- package/.claude/commands/mastermind/tdd.md +0 -19
- package/.claude/commands/mastermind/verify.md +0 -19
- package/.claude/skills/mastermind-approvev1/SKILL.md +0 -191
- package/.claude/skills/mastermind-architect/SKILL.md +0 -862
- package/.claude/skills/mastermind-autodev/SKILL.md +0 -360
- package/.claude/skills/mastermind-build/SKILL.md +0 -169
- package/.claude/skills/mastermind-companies/SKILL.md +0 -256
- package/.claude/skills/mastermind-content/SKILL.md +0 -197
- package/.claude/skills/mastermind-costs/SKILL.md +0 -151
- package/.claude/skills/mastermind-finance/SKILL.md +0 -166
- package/.claude/skills/mastermind-finish/SKILL.md +0 -251
- package/.claude/skills/mastermind-heartbeatv1/SKILL.md +0 -167
- package/.claude/skills/mastermind-instance-settings/SKILL.md +0 -315
- package/.claude/skills/mastermind-marketing/SKILL.md +0 -228
- package/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +0 -181
- package/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +0 -158
- package/.claude/skills/mastermind-ops/SKILL.md +0 -168
- package/.claude/skills/mastermind-org-chart/SKILL.md +0 -209
- package/.claude/skills/mastermind-project-detail/SKILL.md +0 -249
- package/.claude/skills/mastermind-project-workspace/SKILL.md +0 -244
- package/.claude/skills/mastermind-projects/SKILL.md +0 -167
- package/.claude/skills/mastermind-runorgv1/SKILL.md +0 -731
- package/.claude/skills/mastermind-sales/SKILL.md +0 -170
- package/.claude/skills/mastermind-taskdev/SKILL.md +0 -377
- package/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +0 -60
- package/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +0 -144
- package/.claude/skills/mastermind-taskdev/implementer-prompt.md +0 -114
- package/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +0 -80
- package/.claude/skills/mastermind-tdd/SKILL.md +0 -424
- package/.claude/skills/mastermind-verify/SKILL.md +0 -196
- package/.claude/skills/mastermind-wiki/SKILL.md +0 -314
- package/.claude/skills/monolean-review/SKILL.md +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoes/monomindcli",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI engine for Monomind — an open-source MCP server that extends Claude Code with a codebase knowledge graph (tree-sitter + SQLite), persistent memory, multi-agent task coordination, and session hooks. Apache 2.0 licensed, fully local.",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@opencode-ai/sdk": "^1.18.15",
|
|
120
120
|
"monofence-ai": "^1.0.2",
|
|
121
121
|
"sql.js": "^1.14.1",
|
|
122
|
-
"@monoes/
|
|
123
|
-
"@monoes/
|
|
122
|
+
"@monoes/hooks": "1.0.5",
|
|
123
|
+
"@monoes/mcp": "1.0.3",
|
|
124
124
|
"@monoes/memory": "1.0.15",
|
|
125
125
|
"@monoes/routing": "1.0.4"
|
|
126
126
|
},
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
<!-- LEGACY-ORG-V1 — Review and action pending approval requests from agents in a running v1 (prompt-orchestrated) org. Reach it only via /mastermind:approvev1. -->
|
|
2
|
-
|
|
3
|
-
> **LEGACY-ORG-V1 (2026-07): v2 approvals arrive as question events in the dashboard Human Input tab — no command needed.**
|
|
4
|
-
> This file-based approval queue applies only to v1 orgs not yet migrated off the `board_id`/`topology` config shape. Reach this legacy path only via `/mastermind:approvev1`.
|
|
5
|
-
|
|
6
|
-
**If $ARGUMENTS is empty:** Output the following and wait.
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**MASTERMIND: APPROVE (v1, legacy)**
|
|
11
|
-
|
|
12
|
-
Review and action pending approval requests from agents running inside a v1 (prompt-orchestrated) autonomous org. Agents request human approval before executing sensitive actions (publishing content, sending emails, making purchases, modifying infrastructure). v2 orgs surface approvals directly in the dashboard Human Input tab — no command needed.
|
|
13
|
-
|
|
14
|
-
**Usage:**
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
/mastermind:approvev1 --org <name> List all pending approvals
|
|
18
|
-
/mastermind:approvev1 --org <name> --action approve --id <id>
|
|
19
|
-
/mastermind:approvev1 --org <name> --action reject --id <id> --reason "Too risky"
|
|
20
|
-
/mastermind:approvev1 --org <name> --action inspect --id <id>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Options:**
|
|
24
|
-
`--org <name>` — org to check (required)
|
|
25
|
-
`--action list|approve|reject|inspect` — what to do (default: list)
|
|
26
|
-
`--id <approval_id>` — specific approval to approve/reject/inspect
|
|
27
|
-
`--reason <text>` — reason for rejection (optional)
|
|
28
|
-
|
|
29
|
-
No running orgs yet? Run `/mastermind:createorg` then `/mastermind:runorgv1` (v1 orgs only — v2 orgs use `/mastermind:runorg`).
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
**If $ARGUMENTS is non-empty:** Execute the flow below.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
Parse `$ARGUMENTS` for:
|
|
38
|
-
- `--org <name>` → org_name = <name>
|
|
39
|
-
- `--action <action>` → action = <action> (default: "list")
|
|
40
|
-
- `--id <id>` → approval_id = <id>
|
|
41
|
-
- `--reason <text>` → reason = <text>
|
|
42
|
-
- Remaining text = additional context
|
|
43
|
-
|
|
44
|
-
If `--org` is not provided, list running orgs and ask which to check:
|
|
45
|
-
```bash
|
|
46
|
-
orgs=$(ls .monomind/orgs/*.json 2>/dev/null | xargs -I{} basename {} .json 2>/dev/null | grep -v "\-state\|-goals\|-routines\|-approvals\|-issues\|-members\|-projects")
|
|
47
|
-
if [ -z "$orgs" ]; then
|
|
48
|
-
echo "No saved orgs found. Run /mastermind:createorg first."
|
|
49
|
-
exit 1
|
|
50
|
-
fi
|
|
51
|
-
echo "Available orgs: $orgs"
|
|
52
|
-
```
|
|
53
|
-
Ask: "Which org would you like to check approvals for?"
|
|
54
|
-
|
|
55
|
-
Validate the org file exists:
|
|
56
|
-
```bash
|
|
57
|
-
[ -f ".monomind/orgs/${org_name}.json" ] || { echo "Org '${org_name}' not found."; exit 1; }
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Load brain context for the `ops` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure, namespace: `ops`).
|
|
61
|
-
|
|
62
|
-
Generate a session ID:
|
|
63
|
-
```bash
|
|
64
|
-
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
|
65
|
-
session_id="mm-$(date -u +%Y%m%dT%H%M%S)"
|
|
66
|
-
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Emit `session:start`:
|
|
70
|
-
```bash
|
|
71
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
72
|
-
-H "Content-Type: application/json" \
|
|
73
|
-
-d "$(jq -cn \
|
|
74
|
-
--arg session "$session_id" \
|
|
75
|
-
--arg org "$org_name" \
|
|
76
|
-
--arg proj "$REPO_ROOT" \
|
|
77
|
-
'{type:"session:start",session:$session,domain:"ops",prompt:("Approve requests for org: "+$org),mode:"confirm",project:$proj,ts:(now*1000|floor)}')" || true
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Invoke `Skill("mastermind-approvev1")` passing: brain_context, org_name, action, approval_id, reason, caller: "command".
|
|
81
|
-
|
|
82
|
-
After skill returns: note the status. Emit `session:complete`:
|
|
83
|
-
```bash
|
|
84
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
85
|
-
-H "Content-Type: application/json" \
|
|
86
|
-
-d "$(jq -cn \
|
|
87
|
-
--arg session "$session_id" \
|
|
88
|
-
--arg status "<status>" \
|
|
89
|
-
'{type:"session:complete",session:$session,domain:"ops",status:$status,domains:["ops"],ts:(now*1000|floor)}')" || true
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
|
|
93
|
-
|
|
94
|
-
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Mastermind architect domain — architecture review, file structure deduplication, coupling analysis, design pattern audit, DDD mapping, and system design. Default mode: confirm. -->
|
|
2
|
-
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
|
-
|
|
5
|
-
Parse `$ARGUMENTS` for:
|
|
6
|
-
- `--auto` flag → mode = auto
|
|
7
|
-
- `--confirm` flag → mode = confirm (default)
|
|
8
|
-
- `--project <name>` → project_name = <name> (if omitted, default to `basename "$PWD"`)
|
|
9
|
-
- `--scope <scope>` → scope = review | design | deduplicate | migrate | all (default: infer from prompt using these keyword rules: "review"/"audit"/"check"/"assess" → review; "deduplicate"/"dedup"/"consolidate" → deduplicate; "design"/"architect"/"model"/"bounded context" → design; "migrate"/"migration"/"port to"/"convert" → migrate; no keyword match → all; if more than one scope keyword matches, use `all`)
|
|
10
|
-
- `--stack <stack>` → stack hint (e.g. typescript, python, react, go) — auto-detected if omitted
|
|
11
|
-
- `--iterate <N>` → iterate = N (integer ≥ 1; default 0 = no iteration) — run N autonomous fix+review cycles after the initial architect pass
|
|
12
|
-
- Remaining text = prompt
|
|
13
|
-
|
|
14
|
-
If prompt is empty: ask "What would you like the architect to do? (e.g. 'review the codebase structure', 'deduplicate files', 'design the API layer', 'map bounded contexts')"
|
|
15
|
-
|
|
16
|
-
Load brain context for the `architect` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
17
|
-
|
|
18
|
-
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `architect`).
|
|
19
|
-
|
|
20
|
-
Default mode for this command: **confirm** (show architecture plan before executing, unless `--auto` flag present).
|
|
21
|
-
|
|
22
|
-
Generate a session ID and resolve the dashboard URL:
|
|
23
|
-
```bash
|
|
24
|
-
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
|
25
|
-
sessionId="mm-$(date -u +%Y%m%dT%H%M%S)"
|
|
26
|
-
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Emit `session:start` before invoking the skill (use curl — WebFetch is blocked for localhost in Claude Code runtimes). Before executing the curl below, substitute the generated sessionId for `<sessionId>`:
|
|
30
|
-
```bash
|
|
31
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
32
|
-
-H "Content-Type: application/json" \
|
|
33
|
-
-d '{"type":"session:start","session":"<sessionId>","domain":"architect","prompt":'"$(jq -Rn --arg p "$prompt" '$p')"',"ts":'"$(date +%s)"'000}' || true
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Emit `domain:dispatch` immediately after session:start. Before executing the curl below, substitute the generated sessionId for `<sessionId>`:
|
|
37
|
-
```bash
|
|
38
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
39
|
-
-H "Content-Type: application/json" \
|
|
40
|
-
-d '{"type":"domain:dispatch","session":"<sessionId>","domain":"architect","ts":'"$(date +%s)"'000}' || true
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Invoke `Skill("mastermind-architect")` passing: brain_context, prompt, project_name, board_id (create board named "architect" inside the project_name monotask space if not already present), mode, scope, stack, sessionId, iterate, caller: "command".
|
|
44
|
-
|
|
45
|
-
After skill returns: note the status from the skill's output (`complete`, `partial`, or `blocked`). Emit `session:complete` using that status, then follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `architect`. Before executing the curl below, substitute the generated sessionId for `<sessionId>` and the skill's actual status for `<status>`:
|
|
46
|
-
```bash
|
|
47
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
48
|
-
-H "Content-Type: application/json" \
|
|
49
|
-
-d '{"type":"session:complete","session":"<sessionId>","domain":"architect","status":"<status>","domains":["architect"],"ts":'"$(date +%s)"'000}' || true
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!-- Autonomous research → build → review loop. Researches the project, picks the best improvement, builds it, and reviews until clean. Repeat N times with a leading integer (e.g. `/mastermind:autodev 9`). Use --newfeature N to discover and fully deliver N brand-new features (build → review → document → stage). Supports --tillend. -->
|
|
2
|
-
|
|
3
|
-
**Pre-PREAMBLE compatibility check:** Before following the REPEAT PREAMBLE, scan `$ARGUMENTS` for both `--newfeature` and `--tillend` present simultaneously. If both are found, emit `[autodev] Warning: --tillend is not supported with --newfeature and will be ignored.` and remove `--tillend` from `$ARGUMENTS` now — before the PREAMBLE processes it — so the PREAMBLE never creates a tillend loop state file.
|
|
4
|
-
|
|
5
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
6
|
-
|
|
7
|
-
Parse `$ARGUMENTS` for:
|
|
8
|
-
- **Leading integer** (first token is a bare number, e.g. `9`) → `count = 9` (how many improvements to build)
|
|
9
|
-
- `--count <N>` → `count = N`
|
|
10
|
-
- `--newfeature <N>` → activate feature mode; `newfeature_count = N`. Discovers N best genuinely-new features and runs full pipeline: Build → Review → Documentation → Delivery for each. Overrides the normal improvement loop.
|
|
11
|
-
- `--focus <topic>` → focus hint (e.g. "performance", "security", "dx")
|
|
12
|
-
- `--auto` flag → mode = auto
|
|
13
|
-
- `--confirm` flag → mode = confirm
|
|
14
|
-
- Remaining text → additional focus context
|
|
15
|
-
|
|
16
|
-
If no count is set, default `count = 1`.
|
|
17
|
-
If `--newfeature` is present without a valid N, default `newfeature_count = 3`.
|
|
18
|
-
If `newfeature_count > 10`: warn the user and set `newfeature_count = 10`.
|
|
19
|
-
|
|
20
|
-
Load brain context for the `autodev` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
21
|
-
|
|
22
|
-
Default mode for this command: **auto** (unless `--confirm` flag present).
|
|
23
|
-
|
|
24
|
-
Invoke `Skill("mastermind-autodev")` passing: brain_context, count, newfeature_count, focus, mode, board_id (create if needed).
|
|
25
|
-
|
|
26
|
-
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `autodev`.
|
|
27
|
-
|
|
28
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!-- Mastermind build domain — ship features, fix bugs, refactor code. Spawns a Development Manager who creates monotask tasks and coordinates specialized dev agents. Default mode: auto. -->
|
|
2
|
-
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
|
-
|
|
5
|
-
Parse `$ARGUMENTS` for:
|
|
6
|
-
- `--auto` flag → mode = auto
|
|
7
|
-
- `--confirm` flag → mode = confirm
|
|
8
|
-
- `--project <name>` → project_name = <name>
|
|
9
|
-
- Remaining text = prompt
|
|
10
|
-
|
|
11
|
-
If prompt is empty: ask "What would you like to build or fix?"
|
|
12
|
-
|
|
13
|
-
Load brain context for the `build` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
|
-
|
|
15
|
-
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `build`).
|
|
16
|
-
|
|
17
|
-
Default mode for this command: **auto** (unless `--confirm` flag present or intake Q4 says confirm).
|
|
18
|
-
|
|
19
|
-
Invoke `Skill("mastermind-build")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
|
-
|
|
21
|
-
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `build`.
|
|
22
|
-
|
|
23
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Use when implementation is complete and you need to decide how to integrate the work — merge locally, create a PR, keep the branch, or discard -->
|
|
2
|
-
|
|
3
|
-
**First — extract repeat flags:** Follow REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`.
|
|
4
|
-
|
|
5
|
-
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text.
|
|
6
|
-
|
|
7
|
-
Load brain context (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
8
|
-
|
|
9
|
-
Default mode: **confirm**.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
Invoke `Skill("mastermind-finish")` passing: brain_context, params, mode.
|
|
14
|
-
|
|
15
|
-
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure.
|
|
16
|
-
|
|
17
|
-
Invoke `Skill("mastermind-repeat")` now. Required — do not skip.
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
<!-- LEGACY-ORG-V1 — Start a saved org as a persistent, prompt-orchestrated agent organization. The boss agent coordinates all roles; agents pick up tasks from a shared board and run until stopped. Reach it only via /mastermind:runorgv1. -->
|
|
2
|
-
|
|
3
|
-
> **LEGACY-ORG-V1 (2026-07): superseded by `monomind org run <name>` (SDK org runtime v2), delegated to by default via `/mastermind:runorg`.**
|
|
4
|
-
> This prompt-orchestrated path has no delivery guarantees and no ground-truth event stream.
|
|
5
|
-
> It remains only for orgs not yet migrated. New orgs MUST use the daemon. Reach this legacy path only via `/mastermind:runorgv1`.
|
|
6
|
-
|
|
7
|
-
**If $ARGUMENTS is empty:** List saved orgs and display the following.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
**MASTERMIND: RUN ORG**
|
|
12
|
-
|
|
13
|
-
Running an org starts an autonomous agent organization. There are two modes:
|
|
14
|
-
|
|
15
|
-
**Persistent org** (no schedule): a boss agent loads the org definition, assigns work to specialists from a shared board, and loops indefinitely. Stop with `/mastermind:stoporg --org <name>`.
|
|
16
|
-
|
|
17
|
-
**Scheduled org** (created with `--schedule`): sets the org to `active` and runs the first iteration immediately. Subsequent iterations are self-scheduled via ScheduleWakeup. The loop stops cleanly within one interval after `/mastermind:stoporg --org <name>`.
|
|
18
|
-
|
|
19
|
-
**Your saved orgs:**
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npx -y monomind@latest org list 2>/dev/null \
|
|
23
|
-
|| ls .monomind/orgs/*.json 2>/dev/null | grep -vE -- '-(state|goals|threads|activity|approvals|members|secrets|budgets|routines|issues|projects|workspaces|worktrees|environments|plugins|adapters|join-requests|bootstrap|project-workspaces|approval-comments|skills)\.json$' | xargs -I{} basename {} .json 2>/dev/null \
|
|
24
|
-
|| echo "(none — run /mastermind:createorg to define one)"
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**Usage:**
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
/mastermind:runorgv1 --org <name>
|
|
31
|
-
|
|
32
|
-
/mastermind:runorgv1 --org content-team --task "Publish the Q2 product roundup post by Friday"
|
|
33
|
-
|
|
34
|
-
/mastermind:runorgv1 --org research-pod "Focus this week on competitor pricing changes"
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Options:**
|
|
38
|
-
`--org <name>` — which saved org to start (required; prompted if omitted)
|
|
39
|
-
`--task <task>` — override the org's default goal for this run
|
|
40
|
-
Any remaining text is passed as additional context to the boss agent.
|
|
41
|
-
|
|
42
|
-
No orgs yet? Run `/mastermind:createorg` to define one.
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
**If $ARGUMENTS is non-empty:** Execute the flow below.
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
**STEP 0 — Extract loop-control flags (do this FIRST, before any other parsing)**
|
|
51
|
-
|
|
52
|
-
Scan `$ARGUMENTS` for these flags and store their values. Remove them from the argument string before Step 1:
|
|
53
|
-
|
|
54
|
-
| Flag | Variable | Default |
|
|
55
|
-
|---|---|---|
|
|
56
|
-
| `--rep <N>` | `current_rep = N` | absent |
|
|
57
|
-
| `--loop <id>` | `LOOP_ID = id` | absent |
|
|
58
|
-
| `--tillend` | `tillend_mode = true` | false |
|
|
59
|
-
| `--maxruns <N>` | `tillend_maxruns = N` | 50 |
|
|
60
|
-
| `--wait <N>` | `wait_seconds = N` | 60 |
|
|
61
|
-
| `--repeat <N>` | `repeat_count = N` | 0 |
|
|
62
|
-
|
|
63
|
-
⚠️ **CRITICAL — CONTINUATION RUNS DO NOT SKIP WORK.** When `--rep N` is present, this is a scheduled continuation triggered by ScheduleWakeup. The org's FULL work cycle MUST still execute every time: session variables → session:start event → Skill("mastermind-runorgv1") → session:complete event. NEVER short-circuit or skip the org work because `--rep` is present. The `--rep` / `--loop` flags are only consumed by `Skill("mastermind-repeat")` at the end.
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
**STEP 1 — Parse org-specific flags**
|
|
68
|
-
|
|
69
|
-
From the remaining `$ARGUMENTS` (after loop flags removed in Step 0):
|
|
70
|
-
- `--org <name>` → org_name = <name>
|
|
71
|
-
- `--task <task>` → task_override = <task> (if omitted, task_override = null — the skill uses org's stored goal)
|
|
72
|
-
- Remaining text = additional context passed to the boss agent
|
|
73
|
-
|
|
74
|
-
If `--org` is not provided, list saved orgs and ask which to run:
|
|
75
|
-
```bash
|
|
76
|
-
orgs=$(ls .monomind/orgs/*.json 2>/dev/null | xargs -I{} basename {} .json 2>/dev/null)
|
|
77
|
-
if [ -z "$orgs" ]; then
|
|
78
|
-
echo "No saved orgs found. Run /mastermind:createorg first."
|
|
79
|
-
exit 1
|
|
80
|
-
fi
|
|
81
|
-
echo "$orgs"
|
|
82
|
-
```
|
|
83
|
-
Ask: "Which org would you like to start? Available: <list from above>"
|
|
84
|
-
|
|
85
|
-
Verify the org file exists before proceeding:
|
|
86
|
-
```bash
|
|
87
|
-
[ -f ".monomind/orgs/${org_name}.json" ] || { echo "Org '${org_name}' not found."; exit 1; }
|
|
88
|
-
```
|
|
89
|
-
If the file does not exist, stop and suggest running `/mastermind:createorg --name ${org_name}`.
|
|
90
|
-
|
|
91
|
-
Load brain context for the `ops` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure, namespace: `ops`).
|
|
92
|
-
|
|
93
|
-
Resolve session ID and project root:
|
|
94
|
-
```bash
|
|
95
|
-
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
|
96
|
-
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
97
|
-
# Reuse the loop's original sessionId for continuation runs (keeps all reps under one session)
|
|
98
|
-
if [ -n "${LOOP_ID:-}" ] && [ -f ".monomind/loops/${LOOP_ID}.json" ]; then
|
|
99
|
-
session_id=$(jq -r '.sessionId // empty' ".monomind/loops/${LOOP_ID}.json" 2>/dev/null)
|
|
100
|
-
fi
|
|
101
|
-
session_id="${session_id:-mm-$(date -u +%Y%m%dT%H%M%S)}"
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Emit `session:start` to dashboard:
|
|
105
|
-
```bash
|
|
106
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
107
|
-
-H "Content-Type: application/json" \
|
|
108
|
-
-d "$(jq -cn \
|
|
109
|
-
--arg session "$session_id" \
|
|
110
|
-
--arg org "$org_name" \
|
|
111
|
-
--arg proj "$REPO_ROOT" \
|
|
112
|
-
'{type:"session:start",session:$session,domain:"ops",prompt:("Running org: "+$org),mode:"auto",project:$proj,ts:(now*1000|floor)}')" || true
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Emit `domain:dispatch`:
|
|
116
|
-
```bash
|
|
117
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
118
|
-
-H "Content-Type: application/json" \
|
|
119
|
-
-d "$(jq -cn \
|
|
120
|
-
--arg session "$session_id" \
|
|
121
|
-
--arg org "$org_name" \
|
|
122
|
-
--arg proj "$REPO_ROOT" \
|
|
123
|
-
'{type:"domain:dispatch",session:$session,domain:"ops",cmd:("Starting org "+$org+" as persistent daemon"),project:$proj,ts:(now*1000|floor)}')" || true
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
Invoke `Skill("mastermind-runorgv1")` passing: brain_context, org_name: `$org_name`, session_id: `$session_id`, task: task_override, caller: "command".
|
|
127
|
-
|
|
128
|
-
After the skill spawns the boss agent and returns: note the status. Emit `session:complete`:
|
|
129
|
-
```bash
|
|
130
|
-
curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
|
|
131
|
-
-H "Content-Type: application/json" \
|
|
132
|
-
-d "$(jq -cn \
|
|
133
|
-
--arg session "$session_id" \
|
|
134
|
-
--arg status "<status>" \
|
|
135
|
-
--arg proj "$REPO_ROOT" \
|
|
136
|
-
'{type:"session:complete",session:$session,domain:"ops",status:$status,domains:["ops"],project:$proj,ts:(now*1000|floor)}')" || true
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
Follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
143
|
-
|
|
144
|
-
After the REPEAT POSTAMBLE completes, if a loop was started or continued (LOOP_ID is set), write the org name into the loop state file so the dashboard can detect running status:
|
|
145
|
-
```bash
|
|
146
|
-
if [ -n "${LOOP_ID:-}" ]; then
|
|
147
|
-
LOOP_FILE=".monomind/loops/${LOOP_ID}.json"
|
|
148
|
-
if [ -f "$LOOP_FILE" ]; then
|
|
149
|
-
python3 -c "
|
|
150
|
-
import json, sys
|
|
151
|
-
f = sys.argv[1]; org = sys.argv[2]
|
|
152
|
-
d = json.load(open(f))
|
|
153
|
-
if 'orgName' not in d:
|
|
154
|
-
d['orgName'] = org
|
|
155
|
-
open(f, 'w').write(json.dumps(d, indent=2))
|
|
156
|
-
" "$LOOP_FILE" "${org_name}" 2>/dev/null || true
|
|
157
|
-
fi
|
|
158
|
-
fi
|
|
159
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!-- Execute an implementation plan task-by-task using fresh subagents with two-stage review per task. Default mode: auto. -->
|
|
2
|
-
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
|
-
|
|
5
|
-
Parse `$ARGUMENTS` for:
|
|
6
|
-
- `--auto` flag → mode = auto
|
|
7
|
-
- `--confirm` flag → mode = confirm
|
|
8
|
-
- `--project <name>` → project_name = <name>
|
|
9
|
-
- Remaining text = plan_file path (path to the plan `.md` file to execute)
|
|
10
|
-
|
|
11
|
-
If plan_file is empty: ask "Which plan file should I execute? (provide an absolute path)"
|
|
12
|
-
|
|
13
|
-
Load brain context (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
14
|
-
|
|
15
|
-
Default mode: **auto** (unless `--confirm` flag is present).
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
Invoke `Skill("mastermind-taskdev")` passing: brain_context, plan_file, project_name, mode.
|
|
20
|
-
|
|
21
|
-
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure.
|
|
22
|
-
|
|
23
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Implement a feature or bugfix using Test-Driven Development — Red-Green-Refactor with the Iron Law enforced. -->
|
|
2
|
-
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`.
|
|
4
|
-
|
|
5
|
-
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text = feature_or_bug.
|
|
6
|
-
|
|
7
|
-
Load brain context for the `tdd` domain (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
8
|
-
|
|
9
|
-
If feature_or_bug is empty: ask "What feature or bug should be implemented with TDD?"
|
|
10
|
-
|
|
11
|
-
Default mode: **auto**.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
Invoke `Skill("mastermind-tdd")` passing: brain_context, feature_or_bug, project_name, mode.
|
|
16
|
-
|
|
17
|
-
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure for domain `tdd`.
|
|
18
|
-
|
|
19
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Run the verification gate before claiming any work is complete, fixed, or passing — evidence before assertions always. -->
|
|
2
|
-
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`.
|
|
4
|
-
|
|
5
|
-
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text = claim_or_task.
|
|
6
|
-
|
|
7
|
-
Load brain context for the `verify` domain (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
8
|
-
|
|
9
|
-
If claim_or_task is empty: ask "What claim or task needs verification?"
|
|
10
|
-
|
|
11
|
-
Default mode: **auto**.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
Invoke `Skill("mastermind-verify")` passing: brain_context, claim_or_task, project_name, mode.
|
|
16
|
-
|
|
17
|
-
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure for domain `verify`.
|
|
18
|
-
|
|
19
|
-
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|