create-vibe-maestro 0.0.0-stage → 0.3.0-beta.2
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 +66 -0
- package/LICENSE +21 -0
- package/README.md +342 -2
- package/dist/bin/create-vibe-maestro.js +3 -0
- package/dist/bin/vibe-maestro.js +3 -0
- package/dist/cli/create-run.js +46 -0
- package/dist/cli/create.js +156 -0
- package/dist/cli/desktop.js +65 -0
- package/dist/cli/doctor-run.js +18 -0
- package/dist/cli/io.js +7 -0
- package/dist/cli/maestro.js +202 -0
- package/dist/cli/preflight-run.js +33 -0
- package/dist/cli/prompt.js +260 -0
- package/dist/cli/renderer.js +150 -0
- package/dist/cli/skills-run.js +18 -0
- package/dist/cli/sources-run.js +62 -0
- package/dist/cli/upgrade-run.js +57 -0
- package/dist/core/doctor/fs-utils.js +53 -0
- package/dist/core/doctor/git.js +45 -0
- package/dist/core/doctor/inbox.js +18 -0
- package/dist/core/doctor/index.js +53 -0
- package/dist/core/doctor/managed.js +70 -0
- package/dist/core/doctor/plans.js +90 -0
- package/dist/core/doctor/protocols.js +60 -0
- package/dist/core/doctor/sources.js +77 -0
- package/dist/core/doctor/text.js +23 -0
- package/dist/core/doctor/types.js +21 -0
- package/dist/core/doctor/wiki.js +94 -0
- package/dist/core/doctor.js +5 -0
- package/dist/core/gitignore.js +70 -0
- package/dist/core/init.js +349 -0
- package/dist/core/inventory.js +84 -0
- package/dist/core/manifest.js +197 -0
- package/dist/core/meta.js +11 -0
- package/dist/core/paths.js +44 -0
- package/dist/core/plan.js +259 -0
- package/dist/core/platform-paths.js +29 -0
- package/dist/core/preflight.js +174 -0
- package/dist/core/skills.js +192 -0
- package/dist/core/sources/analyze.js +213 -0
- package/dist/core/sources/contract.js +19 -0
- package/dist/core/sources/detect.js +194 -0
- package/dist/core/sources/git.js +120 -0
- package/dist/core/sources/index.js +13 -0
- package/dist/core/sources/integration.js +166 -0
- package/dist/core/sources/model.js +19 -0
- package/dist/core/sources/scan.js +137 -0
- package/dist/core/sources/write.js +152 -0
- package/dist/core/template.js +56 -0
- package/dist/core/upgrade/analyze.js +291 -0
- package/dist/core/upgrade/baseline.js +147 -0
- package/dist/core/upgrade/index.js +110 -0
- package/dist/core/upgrade/instance.js +72 -0
- package/docs/MIGRATION_V1.md +29 -0
- package/docs/THREAT_MODEL.md +27 -0
- package/docs/USER_GUIDE.md +1007 -0
- package/docs/assets/quick-demo.gif +0 -0
- package/package.json +45 -4
- package/registry/baseline/0.2/project/.claude/commands/build.md +1 -0
- package/registry/baseline/0.2/project/AGENTS.md +9 -0
- package/registry/baseline/0.2/project/CLAUDE.md +9 -0
- package/registry/baseline/0.2/project/protocols/build.md +13 -0
- package/registry/baseline/0.2/project/wiki/index.md +30 -0
- package/registry/capabilities.v1.json +317 -0
- package/registry/trusted-skills.v1.json +4 -0
- package/schemas/capabilities.v1.schema.json +126 -0
- package/schemas/manifest.schema.json +57 -0
- package/templates/project/.claude/agents/code-reviewer.md +6 -0
- package/templates/project/.claude/commands/build.md +3 -0
- package/templates/project/.claude/commands/handoff.md +1 -0
- package/templates/project/.claude/commands/plan.md +2 -0
- package/templates/project/.claude/commands/status.md +1 -0
- package/templates/project/.claude/commands/wiki.md +1 -0
- package/templates/project/AGENTS.md +10 -0
- package/templates/project/CLAUDE.md +10 -0
- package/templates/project/maestro/inbox/README.md +16 -0
- package/templates/project/maestro/runbooks/cowork-audit.md +11 -0
- package/templates/project/maestro/runbooks/cowork-discovery.md +30 -0
- package/templates/project/maestro/runbooks/cowork-plan.md +37 -0
- package/templates/project/protocols/audit.md +5 -0
- package/templates/project/protocols/build/audit-phase.md +5 -0
- package/templates/project/protocols/build/audit-plan.md +5 -0
- package/templates/project/protocols/build/step-1-rules.md +17 -0
- package/templates/project/protocols/build/step-2-spec.md +9 -0
- package/templates/project/protocols/build/step-3-architecture.md +9 -0
- package/templates/project/protocols/build/step-5-feature-loop.md +17 -0
- package/templates/project/protocols/build.md +15 -0
- package/templates/project/protocols/context-budget.md +9 -0
- package/templates/project/protocols/discovery.md +5 -0
- package/templates/project/protocols/handoff.md +5 -0
- package/templates/project/protocols/lessons.md +9 -0
- package/templates/project/protocols/plan.md +132 -0
- package/templates/project/protocols/seams.md +5 -0
- package/templates/project/protocols/status.md +5 -0
- package/templates/project/protocols/wiki.md +9 -0
- package/templates/project/wiki/concepts/discovery.md +29 -0
- package/templates/project/wiki/hot.md +27 -0
- package/templates/project/wiki/index.md +32 -0
- package/templates/project/wiki/log.md +22 -0
- package/templates/project/wiki/plans/0001-starter.md +66 -0
- package/templates/project/wiki/plans/README.md +92 -0
- package/templates/project/wiki/plans/TEMPLATE.md +65 -0
- package/templates/project/wiki/roadmap.md +24 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Vibe Coding Maestro are documented here.
|
|
4
|
+
|
|
5
|
+
The project follows Semantic Versioning while prerelease interfaces may still change between beta versions.
|
|
6
|
+
|
|
7
|
+
## 0.3.0-beta.2 — 2026-10-31
|
|
8
|
+
|
|
9
|
+
First release published to npm. `npx create-vibe-maestro@latest` and `npx --package create-vibe-maestro@latest vibe-maestro …`, which generated projects already call, now resolve to a real package.
|
|
10
|
+
|
|
11
|
+
### Removed
|
|
12
|
+
|
|
13
|
+
- **Breaking:** the `--force` flag of `create-vibe-maestro`. It was parsed and documented but never changed behaviour. Passing it is now a usage error (exit code 2) that writes nothing; drop it from scripts. Behaviour without the flag is unchanged.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- `vibe-maestro --help` told `npx` to download a package called `vibe-maestro`, which does not exist: `vibe-maestro` is only a bin inside `create-vibe-maestro`. It now shows `npx --package create-vibe-maestro@latest vibe-maestro <команда>`, matching the templates, so agents cannot be sent to whoever registers that name first. A contract test rejects any `npx` command that pulls another package.
|
|
18
|
+
- Test cleanup retries removal of temporary Git repositories, fixing the intermittent `ENOTEMPTY .git/info` failure on macOS with Node 22.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Development dependencies: vitest 4.1.12 and vite 6.4.5, which clear the current `npm audit` advisories. The published package still has no runtime dependencies.
|
|
23
|
+
- README and the user guide describe npm installation instead of an unpublished package.
|
|
24
|
+
- `package.json` links to the GitHub repository, issues, and README.
|
|
25
|
+
|
|
26
|
+
## 0.3.0-beta.1 — 2026-08-07
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Adaptive Planning Gate with `QUICK`, `FEATURE`, `PROJECT`, and `PROGRAM` scales.
|
|
31
|
+
- Planning modes for `GREENFIELD`, `EXTENSION`, `INTEGRATION`, and `MIGRATION` work.
|
|
32
|
+
- Canonical `protocols/plan.md` shared by the Claude Code `/plan` command and the Cowork plan runbook.
|
|
33
|
+
- Project-owned plan artifacts, lifecycle validation, approval metadata, and `active_plan` tracking.
|
|
34
|
+
- Mechanical `vibe-maestro preflight` gate that permits exactly one approved build slice and blocks drafts, unresolved questions, specification deltas, and unapproved program phases.
|
|
35
|
+
- Bounded QUICK exception for small local work that satisfies all four explicit safety criteria.
|
|
36
|
+
- Safe `vibe-maestro upgrade` path for provably canonical 0.2 projects, with dry-run analysis, managed-file conflict detection, staging, rollback, and fail-closed handling.
|
|
37
|
+
- Read-only `vibe-maestro sources` inventory for existing projects, including Git provenance, ecosystem evidence, security-conscious traversal, integration boundaries, and project-owned snapshots.
|
|
38
|
+
- Guided README and Russian user guide covering the path from idea through planning, approval, bounded build, verification, and handoff.
|
|
39
|
+
- Deterministic documentation, upgrade, preflight, source-inventory, packaging, and acceptance contracts.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- Generated projects now include planning protocols, `/plan`, Cowork planning guidance, `wiki/plans/`, and `active_plan: none`.
|
|
44
|
+
- `/build` now requires the mechanical planning preflight before code is written.
|
|
45
|
+
- Product version advanced to `0.3.0-beta.1`.
|
|
46
|
+
|
|
47
|
+
### Safety boundaries
|
|
48
|
+
|
|
49
|
+
- Existing source projects are read-only inputs; source inventory is not an importer or converter.
|
|
50
|
+
- Non-canonical projects are not modified by `create` or `upgrade`.
|
|
51
|
+
- Human approval cannot be supplied automatically by an AI agent.
|
|
52
|
+
- No automatic Git push, deployment, third-party skill execution, or release publication was added.
|
|
53
|
+
|
|
54
|
+
### Verification
|
|
55
|
+
|
|
56
|
+
The release candidate passed the full source suite, typecheck, build, source acceptance, packed-install acceptance, package inventory checks, and dependency audit. Local dogfood covered the bounded QUICK path, human approval, one-slice execution, specification-delta blocking, and read-only inventory of a real existing game repository.
|
|
57
|
+
|
|
58
|
+
A real two-source game-platform exercise is intentionally tracked as post-release validation rather than a blocker for this beta. The single-source inventory and multi-source integration contracts remain covered by deterministic tests; this release does not claim that the two-game scenario has already been exercised on the user's Mac.
|
|
59
|
+
|
|
60
|
+
## 0.2.0-beta.1 — 2026-08-04
|
|
61
|
+
|
|
62
|
+
### Added
|
|
63
|
+
|
|
64
|
+
- Canonical project protocols and depth-aware `light`, `standard`, and `advanced` generation.
|
|
65
|
+
- Deterministic doctor, manifest, ownership inventory, checksums, Git bootstrap, project memory, handoffs, discovery and audit runbooks.
|
|
66
|
+
- Source and packed-install acceptance across Ubuntu, macOS, and Windows on Node.js 20 and 22.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vibe Coding Maestro contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,343 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vibe Coding Maestro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Keep AI coding context in the repo—not in yesterday’s chat.</strong>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
Open-source project memory and guardrails for long-running AI coding work.<br>
|
|
9
|
+
Ordinary Markdown in Git, shared by people and different AI coding tools.
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://github.com/omikhaylov76-commits/vibe-coding-maestro/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/omikhaylov76-commits/vibe-coding-maestro/actions/workflows/ci.yml/badge.svg"></a>
|
|
14
|
+
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<a href="docs/USER_GUIDE.md">Подробное руководство на русском</a>
|
|
19
|
+
·
|
|
20
|
+
<a href="#quick-start-from-source">Quick start</a>
|
|
21
|
+
·
|
|
22
|
+
<a href="#safety-by-default">Safety</a>
|
|
23
|
+
·
|
|
24
|
+
<a href="#documentation">Documentation</a>
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
> [!IMPORTANT]
|
|
28
|
+
> **0.3.0-beta.2 is a public beta on npm.** Create a project with `npx create-vibe-maestro@latest` and check one with `npx --package create-vibe-maestro@latest vibe-maestro doctor --path .`. Interfaces may still change between beta versions; the source install below remains available. The current CLI and generated project templates are Russian-first; English localization is planned before a global release.
|
|
29
|
+
|
|
30
|
+
When an AI-assisted project lasts longer than one chat, the same problems keep returning:
|
|
31
|
+
|
|
32
|
+
- a new session has to rediscover the project;
|
|
33
|
+
- decisions survive in old conversations but not in the repository;
|
|
34
|
+
- the plan, code, and documentation quietly drift apart;
|
|
35
|
+
- different agents receive different instructions;
|
|
36
|
+
- nobody can quickly prove which files and rules are still intact.
|
|
37
|
+
|
|
38
|
+
Vibe Coding Maestro creates one durable, Git-native place for that context. It gives the project shared Markdown memory, canonical working protocols, thin entry files for AI tools, and a deterministic `doctor` that checks mechanical integrity without calling an LLM.
|
|
39
|
+
|
|
40
|
+
It is **not another coding agent or IDE**. Keep using Claude Code, Codex, Cursor, or your preferred tools. Maestro gives them—and you—the same map.
|
|
41
|
+
|
|
42
|
+
## See the workflow in 20 seconds
|
|
43
|
+
|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
The recording shows the real create-and-`doctor` surface of the beta CLI; the Planning Gate flow below was added after it.
|
|
47
|
+
|
|
48
|
+
## Quick start from source
|
|
49
|
+
|
|
50
|
+
**Requirements:** Node.js 20.10 or newer, npm, and Git.
|
|
51
|
+
|
|
52
|
+
> [!TIP]
|
|
53
|
+
> ## 🚀 One command to start
|
|
54
|
+
>
|
|
55
|
+
> Copy this into your terminal and press Enter:
|
|
56
|
+
>
|
|
57
|
+
> ```bash
|
|
58
|
+
> git clone https://github.com/omikhaylov76-commits/vibe-coding-maestro.git 2>/dev/null || true && cd vibe-coding-maestro && git checkout main && git pull && npm ci && npm run build && node dist/bin/create-vibe-maestro.js
|
|
59
|
+
> ```
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# 1. Get the beta source
|
|
63
|
+
git clone https://github.com/omikhaylov76-commits/vibe-coding-maestro.git && cd vibe-coding-maestro
|
|
64
|
+
|
|
65
|
+
# 2. Install and build
|
|
66
|
+
npm ci && npm run build
|
|
67
|
+
|
|
68
|
+
# 3. Create a new canonical project
|
|
69
|
+
node dist/bin/create-vibe-maestro.js \
|
|
70
|
+
--yes \
|
|
71
|
+
--target "../My Project" \
|
|
72
|
+
--name "My Project" \
|
|
73
|
+
--start idea \
|
|
74
|
+
--depth standard
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Maestro creates the project, initializes Git on `main`, makes the initial commit, and runs `doctor`. Then verify it again at any time:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
node dist/bin/vibe-maestro.js doctor --path "../My Project"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Expected result:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
Vibe Coding Maestro doctor: всё сходится.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Prefer a guided setup? Run the CLI without flags:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
node dist/bin/create-vibe-maestro.js
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The Guided First Run explains where files will be created and asks for no more than three decisions. A simple project name creates the folder on your Desktop; an explicit path always wins. Set `NO_COLOR=1` if you need plain output.
|
|
96
|
+
|
|
97
|
+
> [!WARNING]
|
|
98
|
+
> **Core 0.3 creates new canonical projects only.** It can also re-check a complete project already created by the same canonical engine, and `vibe-maestro upgrade` can evolve a provably canonical 0.2 project. It refuses to modify a non-empty, non-canonical directory, and no flag overrides that refusal. Safe conversion of arbitrary existing projects belongs to a separate future Converter.
|
|
99
|
+
|
|
100
|
+
## Что дальше после создания проекта: Planning Gate
|
|
101
|
+
|
|
102
|
+
Проект создан — **откройте созданную папку** (`../My Project`) в Claude Code или Cowork. Дальше работа идёт по одному маршруту: сначала план, который утверждает человек, и только потом код.
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
обсудить идею → /plan → классификация → черновик плана
|
|
106
|
+
→ человек утверждает → preflight → /build одной порции → тесты и doctor → /handoff
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
1. **Обсудите идею** обычными словами прямо в чате агента. Материалы — заметки, требования, скриншоты — положите в `maestro/inbox/`.
|
|
110
|
+
2. **Попросите план.** В Claude Code это команда `/plan`, в Cowork — фраза «план» по runbook `maestro/runbooks/cowork-plan.md`. Это две разные двери в один и тот же канонический `protocols/plan.md`.
|
|
111
|
+
3. **Проверьте классификацию.** Агент называет масштаб, режим, глубину гарантий, риск и профили с причинами. Вы можете принять её, изменить или сузить объём.
|
|
112
|
+
4. **Покажите существующий код**, если он есть: команда `sources` читает его read-only и по умолчанию ничего не пишет.
|
|
113
|
+
5. **Получите черновик** в `wiki/plans/<номер>-<слаг>.md`. Пока он `draft`, гейт показывает `CODE_ALLOWED: NO`.
|
|
114
|
+
6. **Утвердите план сами** — словами «план утверждаю». Агент не утверждает план за вас; утверждение проставляет `approved_by` и `approved_at`.
|
|
115
|
+
7. **Проверьте право на код** механическим гейтом `preflight` (команды ниже).
|
|
116
|
+
8. **`/build` ровно одной порции** → тесты → `doctor` → `/handoff`.
|
|
117
|
+
|
|
118
|
+
### Откуда запускать команды
|
|
119
|
+
|
|
120
|
+
- `/plan`, `/build`, `/status`, `/wiki`, `/handoff` — внутри **папки проекта**, открытой в Claude Code.
|
|
121
|
+
- `doctor`, `preflight`, `sources`, `upgrade` — из **папки исходников Maestro**, с явным `--path` до проекта:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# из vibe-coding-maestro
|
|
125
|
+
node dist/bin/vibe-maestro.js preflight --path "../My Project"
|
|
126
|
+
node dist/bin/vibe-maestro.js doctor --path "../My Project"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Глубина планирования подстраивается под масштаб
|
|
130
|
+
|
|
131
|
+
| Масштаб | Что создаётся |
|
|
132
|
+
|---|---|
|
|
133
|
+
| `QUICK` | mini-plan в `wiki/progress/`, без тяжёлого пакета планирования |
|
|
134
|
+
| `FEATURE` | один план `wiki/plans/<номер>-<слаг>.md` |
|
|
135
|
+
| `PROJECT` | полный пакет планирования в одном основном плане |
|
|
136
|
+
| `PROGRAM` / `INTEGRATION` | `wiki/programs/<слаг>/`: программа, фазы и source inventory |
|
|
137
|
+
|
|
138
|
+
В 0.3 beta активный план обязан лежать в `wiki/plans/`: только этот каталог проверяют `doctor` и `preflight`. `wiki/programs/<слаг>/` в этой бете — проектные материалы программы, не проверяемые doctor.
|
|
139
|
+
|
|
140
|
+
### Что делает человек, а что агент
|
|
141
|
+
|
|
142
|
+
| Человек | Агент |
|
|
143
|
+
|---|---|
|
|
144
|
+
| Ставит цель и границы | Собирает вход и предлагает классификацию |
|
|
145
|
+
| Принимает или меняет классификацию | Пишет черновик плана нужного объёма |
|
|
146
|
+
| Утверждает план и каждую фазу программы | Останавливается на `CODE_ALLOWED: NO` |
|
|
147
|
+
| Закрывает блокирующие вопросы | Исполняет одну разрешённую порцию и останавливается на её стоп-гейте |
|
|
148
|
+
| Просматривает diff и решает, что мержить | Прогоняет тесты, `doctor` и готовит `/handoff` |
|
|
149
|
+
|
|
150
|
+
Два законченных примера — простой лендинг и портал из двух существующих игр — разобраны в [руководстве](docs/USER_GUIDE.md#два-примера-от-идеи-до-первой-порции). Там же — разделы про [`sources`](docs/USER_GUIDE.md#инвентаризация-существующих-исходников), [`preflight`](docs/USER_GUIDE.md#preflight-механический-гейт-перед-кодом), [`upgrade`](docs/USER_GUIDE.md#обновление-проекта-с-02-на-03) и [что делать, если гейт закрыт](docs/USER_GUIDE.md#если-что-то-пошло-не-так).
|
|
151
|
+
|
|
152
|
+
Всё состояние проекта живёт в Markdown внутри Git. Новая сессия агента начинает не с нуля, а с `wiki/hot.md`, активного плана и последнего handoff.
|
|
153
|
+
|
|
154
|
+
## What you get
|
|
155
|
+
|
|
156
|
+
A Standard project starts with a structure like this:
|
|
157
|
+
|
|
158
|
+
```text
|
|
159
|
+
My Project/
|
|
160
|
+
├── AGENTS.md # universal entry for compatible AI agents
|
|
161
|
+
├── CLAUDE.md # Claude Code entry
|
|
162
|
+
├── .claude/commands/ # /status, /plan, /build, /wiki, /handoff adapters
|
|
163
|
+
├── protocols/ # canonical rules for planning, building and handoff
|
|
164
|
+
├── wiki/ # shared memory: plans, decisions, progress and audits
|
|
165
|
+
├── maestro/ # inbox and human-controlled discovery/audit runbooks
|
|
166
|
+
└── .maestro/ # manifest, ownership inventory and integrity metadata
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The important part is not the number of files. It is the reading path every new session receives:
|
|
170
|
+
|
|
171
|
+
```text
|
|
172
|
+
wiki/hot.md
|
|
173
|
+
→ discovery
|
|
174
|
+
→ open audits
|
|
175
|
+
→ roadmap
|
|
176
|
+
→ current progress
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
From there, `protocols/build.md` routes the agent through the relevant rules, plan, tests, evidence, review, and handoff. The next session can continue from repository state instead of relying on a private chat transcript.
|
|
180
|
+
|
|
181
|
+
### Before and after
|
|
182
|
+
|
|
183
|
+
| Before Maestro | With Maestro |
|
|
184
|
+
|---|---|
|
|
185
|
+
| Decisions are scattered across chats | Confirmed context lives in Markdown and Git |
|
|
186
|
+
| Each agent gets a different explanation | `AGENTS.md`, `CLAUDE.md`, and adapters route to canonical protocols |
|
|
187
|
+
| “Where did we stop?” requires a long recap | `wiki/hot.md` and handoffs hold the current state and next step |
|
|
188
|
+
| Drift is noticed manually, often late | `doctor` checks known mechanical invariants deterministically |
|
|
189
|
+
| Ownership is implicit | Managed, project-owned, generated, merged, and immutable paths are explicit |
|
|
190
|
+
|
|
191
|
+
## A normal working cycle
|
|
192
|
+
|
|
193
|
+
The guided path above is the whole cycle: material in `maestro/inbox/` → plan → human approval → one bounded build with tests and live evidence → `doctor` → handoff. Independent audit findings are recorded with stable IDs; open `high` or `critical` findings block a green doctor result.
|
|
194
|
+
|
|
195
|
+
Claude Code projects receive five thin commands:
|
|
196
|
+
|
|
197
|
+
- `/status` — read current context without changing files;
|
|
198
|
+
- `/plan` — follow the canonical planning protocol up to the human approval gate;
|
|
199
|
+
- `/build` — follow the canonical build protocol;
|
|
200
|
+
- `/wiki` — reconcile allowed project memory;
|
|
201
|
+
- `/handoff` — record the state and update `wiki/hot.md`.
|
|
202
|
+
|
|
203
|
+
## Safety by default
|
|
204
|
+
|
|
205
|
+
Maestro is deliberately conservative around existing data and Git state:
|
|
206
|
+
|
|
207
|
+
- it refuses a non-empty, non-canonical destination before writing;
|
|
208
|
+
- a copied or forged manifest is not enough—the canonical identity, inventory, and actual tree must agree;
|
|
209
|
+
- repeat initialization is not an implicit repair command: an incomplete canonical tree is rejected without writing;
|
|
210
|
+
- user-owned files are not silently overwritten or deleted;
|
|
211
|
+
- protected paths and their parents are checked for symlinks, including dangling links;
|
|
212
|
+
- Git bootstrap uses `main`, does not run `git add -A` over unrelated work, and does not change global Git configuration;
|
|
213
|
+
- `doctor` is deterministic, has versioned JSON output, and makes no LLM call;
|
|
214
|
+
- `doctor --strict` also treats warnings as blocking;
|
|
215
|
+
- audit findings must be resolved with evidence; `waived` is not accepted by the 0.3 beta contract;
|
|
216
|
+
- `sources` reads existing code read-only and writes nothing without an explicit `--write`;
|
|
217
|
+
- `upgrade` is a dry run without `--apply`, refuses a modified managed file, and rolls back a failed apply;
|
|
218
|
+
- there is intentionally no `doctor --fix` that could overwrite useful work.
|
|
219
|
+
|
|
220
|
+
`doctor` checks known mechanical boundaries such as manifest identity, ownership inventory, managed checksums, protocol contracts, wiki links, source integrity, tracked environment files, audit structure, blocking findings, and protected-path symlinks.
|
|
221
|
+
|
|
222
|
+
These protections reduce accidental damage. They do **not** make Maestro a sandbox, backup system, digital signature, or proof that the code and product decisions are correct. Read the complete [threat model](docs/THREAT_MODEL.md).
|
|
223
|
+
|
|
224
|
+
## Choose a depth
|
|
225
|
+
|
|
226
|
+
All depths are projections of one canonical system, not separate products.
|
|
227
|
+
|
|
228
|
+
| Depth | Best for | What changes |
|
|
229
|
+
|---|---|---|
|
|
230
|
+
| `light` | Small experiments and short projects | Minimal continuity and integrity surface |
|
|
231
|
+
| `standard` | Most solo and small-team projects | Full planning, progress, review, and handoff path; default |
|
|
232
|
+
| `advanced` | Longer or higher-risk work | Additional architecture, seams, audit, and lessons contracts |
|
|
233
|
+
|
|
234
|
+
Choose non-interactively with `--depth light|standard|advanced`. The Guided First Run uses `standard` by default so a new user does not have to decide immediately.
|
|
235
|
+
|
|
236
|
+
## When Maestro helps—and when it does not
|
|
237
|
+
|
|
238
|
+
### Maestro is a good fit when
|
|
239
|
+
|
|
240
|
+
- an AI-assisted project lasts more than a few sessions;
|
|
241
|
+
- you switch between people, models, or coding interfaces;
|
|
242
|
+
- you repeatedly explain the same constraints and decisions;
|
|
243
|
+
- Git state, ownership, auditability, and safe handoff matter;
|
|
244
|
+
- you want portable Markdown rather than provider-locked chat memory.
|
|
245
|
+
|
|
246
|
+
### Maestro is probably unnecessary when
|
|
247
|
+
|
|
248
|
+
- the task is a one-off script or a short disposable prototype;
|
|
249
|
+
- you do not use Git or filesystem-aware AI tools;
|
|
250
|
+
- you want an autonomous agent that designs and writes the product for you;
|
|
251
|
+
- you need to retrofit an existing non-canonical repository today;
|
|
252
|
+
- you need enterprise access control, cloud sync, SSO, or a hosted dashboard.
|
|
253
|
+
|
|
254
|
+
Maestro also cannot replace project tests, backups, code review, or human judgment.
|
|
255
|
+
|
|
256
|
+
## Integration status
|
|
257
|
+
|
|
258
|
+
The core format is vendor-neutral; integration depth is not identical across tools.
|
|
259
|
+
|
|
260
|
+
| Interface | Level in 0.3 beta | What is available |
|
|
261
|
+
|---|---|---|
|
|
262
|
+
| Humans | Native | Plain Markdown, Git diffs, explicit ownership, runbooks |
|
|
263
|
+
| Claude Code | Native adapter | `CLAUDE.md`, five project commands including `/plan`, code-reviewer adapter |
|
|
264
|
+
| Codex and other `AGENTS.md` tools | Generic adapter | Universal `AGENTS.md` entry into canonical protocols |
|
|
265
|
+
| Cursor and other filesystem-aware tools | Generic | They can read the same Markdown; no dedicated adapter yet |
|
|
266
|
+
| Cowork-style research/audit | Runbook | Copyable plan, discovery, and independent-audit workflows; human imports the result |
|
|
267
|
+
|
|
268
|
+
Claude Code and Cowork are two different doors into the same `protocols/plan.md`; neither of them owns planning rules.
|
|
269
|
+
|
|
270
|
+
“Generic” means the shared files are usable; it does not claim the same tested UX as the native Claude Code adapter.
|
|
271
|
+
|
|
272
|
+
## Automation and CI
|
|
273
|
+
|
|
274
|
+
For scripts, pass every decision explicitly:
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
node dist/bin/create-vibe-maestro.js \
|
|
278
|
+
--yes \
|
|
279
|
+
--target "../My Project" \
|
|
280
|
+
--name "My Project" \
|
|
281
|
+
--start materials \
|
|
282
|
+
--depth standard \
|
|
283
|
+
--json
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
Useful service commands:
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
node dist/bin/vibe-maestro.js doctor --path "../My Project" --json
|
|
290
|
+
node dist/bin/vibe-maestro.js doctor --path "../My Project" --strict
|
|
291
|
+
node dist/bin/vibe-maestro.js skills --path "../My Project"
|
|
292
|
+
node dist/bin/vibe-maestro.js preflight --path "../My Project" --json
|
|
293
|
+
node dist/bin/vibe-maestro.js sources --path "../My Project" --source "../durak" --source "../dice-poker"
|
|
294
|
+
node dist/bin/vibe-maestro.js upgrade --path "../My 0.2 Project"
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
`preflight` and `doctor` exit `0` when the check passes and `1` when it blocks; `sources` and `upgrade` write nothing at all unless you add `--write` or `--apply`.
|
|
298
|
+
|
|
299
|
+
The repository release gate covers tests, type checking, build, audit, source acceptance, packed-tarball installation, all three depths, paths with spaces, deterministic doctor JSON, protocol drift, canonical identity forgery, incomplete canonical trees, forbidden audit waivers, and symlink boundaries. CI is configured for Ubuntu, macOS, and Windows with Node.js 20 and 22.
|
|
300
|
+
|
|
301
|
+
## Current beta scope
|
|
302
|
+
|
|
303
|
+
Available now in the source beta:
|
|
304
|
+
|
|
305
|
+
- Guided First Run;
|
|
306
|
+
- fresh canonical project creation;
|
|
307
|
+
- Planning Gate: `/plan`, Cowork plan runbook, project plans, and the human approval gate;
|
|
308
|
+
- mechanical `preflight` before the first line of code;
|
|
309
|
+
- read-only `sources` inventory of existing code;
|
|
310
|
+
- safe `upgrade` of a provably canonical 0.2 project;
|
|
311
|
+
- `light`, `standard`, and `advanced` depth projections;
|
|
312
|
+
- shared project memory and handoffs;
|
|
313
|
+
- canonical protocols with thin adapters;
|
|
314
|
+
- manifest, ownership inventory, checksums, and deterministic doctor;
|
|
315
|
+
- safe Git bootstrap;
|
|
316
|
+
- discovery and independent-audit runbooks;
|
|
317
|
+
- project-local skill inventory;
|
|
318
|
+
- JSON and strict CI modes;
|
|
319
|
+
- source and packed-install acceptance.
|
|
320
|
+
|
|
321
|
+
Not available yet:
|
|
322
|
+
|
|
323
|
+
- safe conversion of existing non-canonical projects (`upgrade` covers only a canonical 0.2 project);
|
|
324
|
+
- English-generated templates;
|
|
325
|
+
- cloud sync, accounts, team dashboard, or billing;
|
|
326
|
+
- automatic installation or execution of third-party skills;
|
|
327
|
+
- a guarantee that an AI agent will not make mistakes.
|
|
328
|
+
|
|
329
|
+
The 0.3 beta feature set is complete and locally release-verified. Broader dogfooding — including the real two-game integration on the user's Mac — continues as post-release validation and feedback for the next beta. Since 0.3.0-beta.2 the package is published on npm as a beta; the source installation above remains available.
|
|
330
|
+
|
|
331
|
+
## Documentation
|
|
332
|
+
|
|
333
|
+
- [Detailed user guide (Russian)](docs/USER_GUIDE.md)
|
|
334
|
+
- [Changelog](CHANGELOG.md)
|
|
335
|
+
- [Threat model](docs/THREAT_MODEL.md)
|
|
336
|
+
- [Canonical-only boundary and future Converter](docs/MIGRATION_V1.md)
|
|
337
|
+
- [Contributing and local release gates](CONTRIBUTING.md)
|
|
338
|
+
|
|
339
|
+
Found a confusing step or a safety problem? Please [open an issue](https://github.com/omikhaylov76-commits/vibe-coding-maestro/issues/new) with the command you ran, expected result, actual result, OS, Node version, and a redacted tree or log. Never include credentials or private source material.
|
|
340
|
+
|
|
341
|
+
## License
|
|
342
|
+
|
|
343
|
+
[MIT](LICENSE). The project memory format, core CLI, doctor, base protocols, and security fixes remain open source.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { basename } from 'node:path';
|
|
2
|
+
import { doctorProject } from '../core/doctor.js';
|
|
3
|
+
import { initProject } from '../core/init.js';
|
|
4
|
+
import { EXIT_FAILED, EXIT_OK } from './io.js';
|
|
5
|
+
export async function executeCreate(options, io, renderer) {
|
|
6
|
+
const result = await initProject({
|
|
7
|
+
target: options.target,
|
|
8
|
+
startingPoint: options.startingPoint,
|
|
9
|
+
git: options.git,
|
|
10
|
+
depth: options.depth,
|
|
11
|
+
...(options.name === undefined ? {} : { name: options.name }),
|
|
12
|
+
});
|
|
13
|
+
if (!result.ok) {
|
|
14
|
+
if (options.json)
|
|
15
|
+
io.out(JSON.stringify(result, null, 2));
|
|
16
|
+
else if (renderer)
|
|
17
|
+
renderer.failure(result.error ?? 'Не удалось подготовить проект.');
|
|
18
|
+
else
|
|
19
|
+
io.err(result.error ?? 'Не удалось подготовить проект.');
|
|
20
|
+
return EXIT_FAILED;
|
|
21
|
+
}
|
|
22
|
+
const report = await doctorProject(result.target);
|
|
23
|
+
const output = { init: result, doctor: report };
|
|
24
|
+
if (options.json) {
|
|
25
|
+
io.out(JSON.stringify(output, null, 2));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
if (!renderer)
|
|
29
|
+
io.out(`Проект подготовлен: ${result.target}`);
|
|
30
|
+
for (const warning of result.warnings) {
|
|
31
|
+
if (renderer)
|
|
32
|
+
renderer.warning(warning);
|
|
33
|
+
else
|
|
34
|
+
io.err(`Предупреждение: ${warning}`);
|
|
35
|
+
}
|
|
36
|
+
if (renderer) {
|
|
37
|
+
if (report.ok)
|
|
38
|
+
renderer.success({ action: 'create', target: result.target, name: options.name ?? basename(result.target), doctorOk: true });
|
|
39
|
+
else
|
|
40
|
+
renderer.failure(`Проверка нашла проблем: ${report.findings.length}.`);
|
|
41
|
+
}
|
|
42
|
+
else
|
|
43
|
+
io.out(report.ok ? 'Doctor: всё сходится.' : `Doctor: найдено проблем — ${report.findings.length}.`);
|
|
44
|
+
}
|
|
45
|
+
return report.ok ? EXIT_OK : EXIT_FAILED;
|
|
46
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { CREATE_COMMAND, isStartingPoint, PRODUCT_NAME, STARTING_POINTS, VERSION } from '../core/meta.js';
|
|
2
|
+
import { DEPTHS } from '../core/manifest.js';
|
|
3
|
+
import { EXIT_OK, EXIT_USAGE, processIo } from './io.js';
|
|
4
|
+
const HELP = `${PRODUCT_NAME} — подготовка проекта одной командой.
|
|
5
|
+
|
|
6
|
+
Использование:
|
|
7
|
+
npx ${CREATE_COMMAND}@latest --target <путь> [опции]
|
|
8
|
+
|
|
9
|
+
Опции:
|
|
10
|
+
--target <путь> куда создать проект (можно указать первым позиционным аргументом)
|
|
11
|
+
--name <имя> название проекта (по умолчанию — имя папки)
|
|
12
|
+
--start <состояние> исходное состояние идеи: ${STARTING_POINTS.join(' | ')} (по умолчанию idea)
|
|
13
|
+
--depth <глубина> canonical depth: ${DEPTHS.join(' | ')} (по умолчанию standard)
|
|
14
|
+
--no-git не выполнять git init и стартовый commit
|
|
15
|
+
--yes, -y неинтерактивный режим (все ответы взяты из флагов)
|
|
16
|
+
--json машиночитаемый отчёт
|
|
17
|
+
--help, -h эта справка
|
|
18
|
+
--version, -v версия
|
|
19
|
+
|
|
20
|
+
После создания проект проверяется командой:
|
|
21
|
+
npx --package ${CREATE_COMMAND}@latest vibe-maestro doctor`;
|
|
22
|
+
export function parseCreateArgs(argv) {
|
|
23
|
+
const options = {
|
|
24
|
+
target: '',
|
|
25
|
+
startingPoint: 'idea',
|
|
26
|
+
git: true,
|
|
27
|
+
json: false,
|
|
28
|
+
depth: 'standard',
|
|
29
|
+
};
|
|
30
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
31
|
+
const arg = argv[i];
|
|
32
|
+
switch (arg) {
|
|
33
|
+
case '--version':
|
|
34
|
+
case '-v':
|
|
35
|
+
return { kind: 'version' };
|
|
36
|
+
case '--help':
|
|
37
|
+
case '-h':
|
|
38
|
+
return { kind: 'help' };
|
|
39
|
+
case '--no-git':
|
|
40
|
+
options.git = false;
|
|
41
|
+
break;
|
|
42
|
+
case '--yes':
|
|
43
|
+
case '-y':
|
|
44
|
+
break;
|
|
45
|
+
case '--json':
|
|
46
|
+
options.json = true;
|
|
47
|
+
break;
|
|
48
|
+
case '--target':
|
|
49
|
+
case '--name':
|
|
50
|
+
case '--start':
|
|
51
|
+
case '--depth': {
|
|
52
|
+
const value = argv[i + 1];
|
|
53
|
+
if (value === undefined || value.startsWith('--')) {
|
|
54
|
+
return { kind: 'error', message: `Флаг ${arg} требует значение.` };
|
|
55
|
+
}
|
|
56
|
+
i += 1;
|
|
57
|
+
if (arg === '--target')
|
|
58
|
+
options.target = value;
|
|
59
|
+
else if (arg === '--name')
|
|
60
|
+
options.name = value;
|
|
61
|
+
else if (arg === '--start') {
|
|
62
|
+
if (!isStartingPoint(value)) {
|
|
63
|
+
return {
|
|
64
|
+
kind: 'error',
|
|
65
|
+
message: `Неизвестное значение --start: ${value}. Допустимо: ${STARTING_POINTS.join(', ')}.`,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
options.startingPoint = value;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
if (!DEPTHS.includes(value)) {
|
|
72
|
+
return { kind: 'error', message: `Неизвестное значение --depth: ${value}. Допустимо: ${DEPTHS.join(', ')}.` };
|
|
73
|
+
}
|
|
74
|
+
options.depth = value;
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
default:
|
|
79
|
+
if (arg.startsWith('-')) {
|
|
80
|
+
return { kind: 'error', message: `Неизвестный аргумент: ${arg}` };
|
|
81
|
+
}
|
|
82
|
+
if (options.target === '') {
|
|
83
|
+
options.target = arg;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
return { kind: 'error', message: `Лишний аргумент: ${arg}` };
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (options.target === '') {
|
|
90
|
+
return {
|
|
91
|
+
kind: 'error',
|
|
92
|
+
message: `Не указана папка проекта. Передайте --target <путь> (интерактивное меню появится позже).`,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return { kind: 'run', options };
|
|
96
|
+
}
|
|
97
|
+
export async function runCreateCli(argv, io = processIo, runtime = { isTty: Boolean(process.stdin.isTTY && process.stdout.isTTY) }) {
|
|
98
|
+
const parsed = parseCreateArgs(argv);
|
|
99
|
+
if (parsed.kind === 'version') {
|
|
100
|
+
io.out(VERSION);
|
|
101
|
+
return EXIT_OK;
|
|
102
|
+
}
|
|
103
|
+
if (parsed.kind === 'help') {
|
|
104
|
+
io.out(HELP);
|
|
105
|
+
return EXIT_OK;
|
|
106
|
+
}
|
|
107
|
+
const automatic = argv.includes('--yes') || argv.includes('-y');
|
|
108
|
+
const needsTty = parsed.kind === 'run' ||
|
|
109
|
+
(parsed.kind === 'error' && parsed.message.startsWith('Не указана папка проекта.'));
|
|
110
|
+
if (needsTty && !runtime.isTty && !automatic) {
|
|
111
|
+
io.err('Интерактивный режим требует TTY. Для автоматического запуска передайте --yes и --target <путь>.');
|
|
112
|
+
return EXIT_USAGE;
|
|
113
|
+
}
|
|
114
|
+
if (parsed.kind === 'error') {
|
|
115
|
+
const wantsInteractive = argv.length === 0 && parsed.message.startsWith('Не указана папка проекта.');
|
|
116
|
+
if (wantsInteractive) {
|
|
117
|
+
if (!runtime.isTty) {
|
|
118
|
+
io.err('Интерактивный режим требует TTY. Для автоматического запуска передайте --yes и --target <путь>.');
|
|
119
|
+
return EXIT_USAGE;
|
|
120
|
+
}
|
|
121
|
+
try {
|
|
122
|
+
const prompt = runtime.prompt ?? (await import('./prompt.js')).createReadlinePrompt();
|
|
123
|
+
const answers = await prompt.ask();
|
|
124
|
+
if (answers.action === 'check') {
|
|
125
|
+
const { executeDoctorCommand } = await import('./doctor-run.js');
|
|
126
|
+
const code = await executeDoctorCommand({ path: answers.target, json: false }, io);
|
|
127
|
+
if (prompt.renderer) {
|
|
128
|
+
if (code === EXIT_OK)
|
|
129
|
+
prompt.renderer.success({ action: 'check', target: answers.target, doctorOk: true });
|
|
130
|
+
else
|
|
131
|
+
prompt.renderer.failure('Проверка нашла проблемы. Подробности указаны выше.');
|
|
132
|
+
}
|
|
133
|
+
return code;
|
|
134
|
+
}
|
|
135
|
+
const { executeCreate } = await import('./create-run.js');
|
|
136
|
+
return executeCreate({
|
|
137
|
+
target: answers.target,
|
|
138
|
+
name: answers.name,
|
|
139
|
+
startingPoint: answers.startingPoint,
|
|
140
|
+
git: true,
|
|
141
|
+
json: false,
|
|
142
|
+
depth: 'standard',
|
|
143
|
+
}, io, prompt.renderer);
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
io.err(error instanceof Error ? error.message : 'Интерактивный ввод прерван.');
|
|
147
|
+
return EXIT_USAGE;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
io.err(parsed.message);
|
|
151
|
+
io.err(`Подсказка: ${CREATE_COMMAND} --help`);
|
|
152
|
+
return EXIT_USAGE;
|
|
153
|
+
}
|
|
154
|
+
const { executeCreate } = await import('./create-run.js');
|
|
155
|
+
return executeCreate(parsed.options, io);
|
|
156
|
+
}
|