multimodel-dev-os 2.0.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ai/intelligence/README.md +14 -0
- package/.ai/intelligence/apply-log.schema.json +65 -0
- package/.ai/intelligence/feedback-log.example.jsonl +2 -0
- package/.ai/intelligence/feedback.schema.json +47 -0
- package/.ai/intelligence/improvement-proposal.schema.json +70 -0
- package/.ai/intelligence/learning-rules.example.md +18 -0
- package/.ai/intelligence/memory.schema.json +97 -0
- package/.ai/plugins/README.md +30 -0
- package/.ai/plugins/plugin.example.yaml +32 -0
- package/.ai/policies/approval-gates.md +35 -0
- package/.ai/policies/memory-policy.md +30 -0
- package/.ai/policies/self-improvement-policy.md +39 -0
- package/.ai/proposals/README.md +44 -0
- package/.ai/proposals/apply-operation.example.json +22 -0
- package/.ai/registries/capabilities.yaml +73 -0
- package/.ai/registries/tools.yaml +84 -0
- package/.ai/registries/workflows.yaml +217 -0
- package/.ai/schema/plugin.schema.json +56 -0
- package/README.md +116 -138
- package/assets/adapter-sync-flow.svg +84 -0
- package/assets/architecture-preview.svg +46 -31
- package/assets/onboarding-flow.svg +79 -0
- package/assets/social-preview.svg +1 -1
- package/assets/terminal-demo.svg +22 -23
- package/bin/multimodel-dev-os.js +3472 -7
- package/docs/.vitepress/config.js +46 -7
- package/docs/5-day-roadmap.md +9 -9
- package/docs/CLI.md +260 -34
- package/docs/adapter-sync.md +27 -0
- package/docs/adapters.md +16 -0
- package/docs/agent-handoff.md +40 -0
- package/docs/approved-proposal-apply.md +156 -0
- package/docs/architecture.md +31 -7
- package/docs/capability-registry.md +24 -0
- package/docs/comparison.md +72 -25
- package/docs/compatibility.md +2 -2
- package/docs/dashboard.md +105 -0
- package/docs/demo.md +23 -60
- package/docs/demos/adapter-sync.md +103 -0
- package/docs/demos/existing-repo-onboarding.md +125 -0
- package/docs/demos/index.md +91 -0
- package/docs/demos/multi-agent-handoff.md +88 -0
- package/docs/demos/release-check.md +109 -0
- package/docs/demos/safe-improvement-loop.md +119 -0
- package/docs/distribution.md +195 -0
- package/docs/faq.md +91 -24
- package/docs/feedback-learning.md +33 -0
- package/docs/future-proof-architecture.md +22 -0
- package/docs/hash-compressed-memory.md +72 -0
- package/docs/improvement-proposals.md +70 -0
- package/docs/index.md +192 -81
- package/docs/installers.md +18 -4
- package/docs/launch-kit.md +97 -49
- package/docs/learning-rules.md +36 -0
- package/docs/npm-publishing.md +6 -6
- package/docs/plugin-authoring.md +99 -0
- package/docs/plugin-hooks.md +80 -0
- package/docs/public/assets/adapter-sync-flow.svg +84 -0
- package/docs/public/assets/onboarding-flow.svg +79 -0
- package/docs/public/llms-full.txt +47 -4
- package/docs/public/llms.txt +55 -2
- package/docs/public/sitemap.xml +85 -0
- package/docs/quickstart.md +82 -22
- package/docs/real-repo-onboarding.md +27 -0
- package/docs/repository-command-center.md +68 -0
- package/docs/self-improving-codebase.md +46 -0
- package/docs/template-recommendation.md +22 -0
- package/docs/templates-guide.md +11 -0
- package/docs/tool-registry.md +21 -0
- package/docs/tui-safety.md +59 -0
- package/docs/use-cases.md +21 -0
- package/docs/v2-roadmap.md +78 -71
- package/docs/workflow-orchestration.md +62 -0
- package/examples/adapter-sync/README.md +45 -0
- package/examples/command-center/README.md +59 -0
- package/examples/real-repo-onboarding/README.md +53 -0
- package/examples/safe-improvement-loop/README.md +48 -0
- package/package.json +1 -1
- package/scripts/install.ps1 +1 -1
- package/scripts/install.sh +1 -1
- package/scripts/verify.js +107 -3
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# Distribution & Release Guide
|
|
2
|
+
|
|
3
|
+
How to distribute, verify, and publish MultiModel Dev OS releases.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Installation Methods
|
|
8
|
+
|
|
9
|
+
### NPX (Recommended)
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Initialize a new workspace
|
|
13
|
+
npx multimodel-dev-os@latest init
|
|
14
|
+
|
|
15
|
+
# Onboard an existing project
|
|
16
|
+
npx multimodel-dev-os@latest onboard analyze
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Global Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install -g multimodel-dev-os
|
|
23
|
+
multimodel-dev-os init
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Fallback Scripts
|
|
27
|
+
|
|
28
|
+
**macOS / Linux / WSL:**
|
|
29
|
+
```bash
|
|
30
|
+
curl -fsSL https://raw.githubusercontent.com/rizvee/multimodel-dev-os/main/scripts/install.sh | bash
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Windows (PowerShell):**
|
|
34
|
+
```powershell
|
|
35
|
+
irm https://raw.githubusercontent.com/rizvee/multimodel-dev-os/main/scripts/install.ps1 | iex
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Pre-Release Checklist
|
|
41
|
+
|
|
42
|
+
Before every release, run this complete verification sequence:
|
|
43
|
+
|
|
44
|
+
### 1. Version Bump
|
|
45
|
+
|
|
46
|
+
Update version strings in all 7 locations:
|
|
47
|
+
|
|
48
|
+
| File | Field |
|
|
49
|
+
|------|-------|
|
|
50
|
+
| `package.json` | `version` |
|
|
51
|
+
| `package-lock.json` | `version` (2 occurrences) |
|
|
52
|
+
| `scripts/install.sh` | `VERSION` |
|
|
53
|
+
| `scripts/install.ps1` | `$Version` |
|
|
54
|
+
| `docs/.vitepress/config.js` | `softwareVersion` in JSON-LD |
|
|
55
|
+
| `docs/public/llms.txt` | Title version |
|
|
56
|
+
| `docs/public/llms-full.txt` | Title version |
|
|
57
|
+
|
|
58
|
+
### 2. Changelog Entry
|
|
59
|
+
|
|
60
|
+
Add a new section to `CHANGELOG.md` following the Keep a Changelog format.
|
|
61
|
+
|
|
62
|
+
### 3. Verification Suite
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Run 214+ structural assertions
|
|
66
|
+
npm run verify
|
|
67
|
+
|
|
68
|
+
# Build docs to catch broken links
|
|
69
|
+
npm run docs:build
|
|
70
|
+
|
|
71
|
+
# Dry-run the npm package
|
|
72
|
+
npm pack --dry-run
|
|
73
|
+
|
|
74
|
+
# Verify CLI version
|
|
75
|
+
node bin/multimodel-dev-os.js --help
|
|
76
|
+
|
|
77
|
+
# Release doctor
|
|
78
|
+
node bin/multimodel-dev-os.js doctor --release
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Expected results:**
|
|
82
|
+
- `verify`: 213+ pass, 0 fail, 1 expected .npmrc warning
|
|
83
|
+
- `docs:build`: builds without errors
|
|
84
|
+
- `pack --dry-run`: reports correct version in tarball name
|
|
85
|
+
- CLI `--help`: shows correct version
|
|
86
|
+
- `doctor --release`: version alignment passes
|
|
87
|
+
|
|
88
|
+
### 4. Commit
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
git add .
|
|
92
|
+
git diff --cached --stat
|
|
93
|
+
git commit -m "docs: release vX.Y.Z [description]"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Publishing to npm
|
|
99
|
+
|
|
100
|
+
> [!WARNING]
|
|
101
|
+
> **Manual publish only.** The `prepublish-guard.js` script blocks accidental publishes. You must explicitly set the environment variable.
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Set the publish guard
|
|
105
|
+
export MMDO_ALLOW_PUBLISH=true # bash
|
|
106
|
+
$env:MMDO_ALLOW_PUBLISH = "true" # PowerShell
|
|
107
|
+
|
|
108
|
+
# Publish to npm
|
|
109
|
+
npm publish --access public
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Post-Publish Smoke Test
|
|
113
|
+
|
|
114
|
+
After publishing, verify the package works correctly:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Create a temp directory
|
|
118
|
+
mkdir /tmp/mmdo-smoke && cd /tmp/mmdo-smoke
|
|
119
|
+
|
|
120
|
+
# Test npx execution
|
|
121
|
+
npx multimodel-dev-os@latest --help
|
|
122
|
+
npx multimodel-dev-os@latest init --dry-run
|
|
123
|
+
|
|
124
|
+
# Verify version matches
|
|
125
|
+
npx multimodel-dev-os@latest doctor --release
|
|
126
|
+
|
|
127
|
+
# Cleanup
|
|
128
|
+
cd .. && rm -rf /tmp/mmdo-smoke
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Package Hygiene
|
|
134
|
+
|
|
135
|
+
### What's Included in the Tarball
|
|
136
|
+
|
|
137
|
+
The `files` field in `package.json` controls what ships:
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
AGENTS.md, MEMORY.md, TASKS.md, RUNBOOK.md
|
|
141
|
+
.ai/ → Configuration, schemas, registries, templates
|
|
142
|
+
adapters/ → IDE/tool adapter files
|
|
143
|
+
scripts/ → Install scripts, verify scripts
|
|
144
|
+
docs/ → Documentation source (excluding .vitepress/dist/ and cache/)
|
|
145
|
+
examples/ → Template examples
|
|
146
|
+
bin/ → CLI executable
|
|
147
|
+
assets/ → Visual assets
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### What's Excluded
|
|
151
|
+
|
|
152
|
+
- `node_modules/` — dev dependencies only
|
|
153
|
+
- `docs/.vitepress/dist/` — built docs (deployed separately via GitHub Pages)
|
|
154
|
+
- `docs/.vitepress/cache/` — build cache
|
|
155
|
+
- `.ai/intelligence/` runtime files — memory, feedback, proposals
|
|
156
|
+
- `.npmrc` — expected warning in verify suite
|
|
157
|
+
|
|
158
|
+
### The `.npmrc` Warning
|
|
159
|
+
|
|
160
|
+
The verify suite reports 1 expected warning about `.npmrc` existing in the package root. This file contains only the registry URL and no credentials. It's flagged as a security best practice reminder. This warning is intentional and does not block publishing.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## GitHub Releases
|
|
165
|
+
|
|
166
|
+
After publishing to npm:
|
|
167
|
+
|
|
168
|
+
1. Tag the commit: `git tag vX.Y.Z`
|
|
169
|
+
2. Push tags: `git push origin main --tags`
|
|
170
|
+
3. Create a GitHub Release from the tag
|
|
171
|
+
4. Copy the changelog entry as the release body
|
|
172
|
+
5. Verify the GitHub Pages deployment triggered
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Prepublish Guard
|
|
177
|
+
|
|
178
|
+
The [prepublish-guard.js](../scripts/prepublish-guard.js) script runs automatically before `npm publish`. It:
|
|
179
|
+
|
|
180
|
+
1. Checks for `MMDO_ALLOW_PUBLISH=true` environment variable
|
|
181
|
+
2. If not set, prints a warning and exits with code 1
|
|
182
|
+
3. Prevents accidental publishes from CI or local dev environments
|
|
183
|
+
|
|
184
|
+
This guard ensures every publish is an intentional, reviewed action.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Version Alignment
|
|
189
|
+
|
|
190
|
+
The `doctor --release` command verifies version parity across:
|
|
191
|
+
- `package.json`
|
|
192
|
+
- `scripts/install.sh`
|
|
193
|
+
- `scripts/install.ps1`
|
|
194
|
+
|
|
195
|
+
Any mismatch is reported as a warning. Fix alignment before publishing.
|
package/docs/faq.md
CHANGED
|
@@ -1,67 +1,134 @@
|
|
|
1
|
-
# FAQ
|
|
1
|
+
# FAQ
|
|
2
2
|
|
|
3
|
-
Frequently asked questions
|
|
4
|
-
|
|
5
|
-
> **Use when**: Resolving setup ambiguities, understanding comparative advantages over simple rules files, or auditing CLI validations.
|
|
3
|
+
Frequently asked questions about MultiModel Dev OS, AI coding agents compatibility, and prompt context optimization.
|
|
6
4
|
|
|
7
5
|
---
|
|
8
6
|
|
|
9
7
|
## General
|
|
10
8
|
|
|
11
9
|
**What is MultiModel Dev OS?**
|
|
12
|
-
A set of markdown templates and directory structures that allow multiple AI coding tools (Codex, Cursor, Claude Code, Gemini, Antigravity, VS Code) to share a single portable AI project context.
|
|
10
|
+
A set of markdown templates and directory structures that allow multiple AI coding tools (Codex, Cursor, Claude Code, Gemini, Antigravity, VS Code) to share a single portable AI project context. Think of it as `.editorconfig` but for AI assistants.
|
|
13
11
|
|
|
14
12
|
**Is this a runtime operating system?**
|
|
15
|
-
No. It is a
|
|
13
|
+
No. It is a workspace configuration standard — standard files (`AGENTS.md`, `MEMORY.md`, `TASKS.md`, `RUNBOOK.md`) and a `.ai/` directory that coordinate multiple tools. There is no background process, no daemon, and no runtime overhead.
|
|
16
14
|
|
|
17
15
|
**What does "multimodel" mean?**
|
|
18
|
-
Multiple distinct AI coding models/agents (
|
|
16
|
+
Multiple distinct AI coding models/agents (like Codex, Cursor, Claude Code, and Gemini) operating on the **same workspace** without context loss or instruction drift.
|
|
17
|
+
|
|
18
|
+
**How is this different from just writing my own `.cursorrules` or `CLAUDE.md`?**
|
|
19
|
+
Those are tool-specific instruction files. If you use multiple tools, you end up maintaining duplicated rules that quickly drift out of sync. MultiModel Dev OS gives you a **single source of truth** (`AGENTS.md`) and automatically adapts it for each tool. You write rules once, every tool reads them.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Demo Workflows
|
|
24
|
+
|
|
25
|
+
**How do I run the demo workflows?**
|
|
26
|
+
Our demos are fully self-contained markdown walkthroughs. You can copy the commands directly from the demo pages, run them in your terminal, and observe the output. See the **[Demos Hub](/demos/)** for all available workflows.
|
|
27
|
+
|
|
28
|
+
**Do the demos make any changes to my system?**
|
|
29
|
+
The demos are designed to run in a safe, isolated, or dry-run configuration. For example, `onboard analyze` is entirely read-only, and onboarding plans and adapter syncs require developer approval before writing files. We also provide clear **Cleanup** sections on every demo page to undo any files created.
|
|
19
30
|
|
|
20
31
|
---
|
|
21
32
|
|
|
22
|
-
## Setup
|
|
33
|
+
## Setup & Installation
|
|
23
34
|
|
|
24
35
|
**Do I need Node.js?**
|
|
25
36
|
It depends on your installation path:
|
|
26
|
-
* **Yes:** If you
|
|
37
|
+
* **Yes:** If you use the primary `npx multimodel-dev-os@latest init` workflow (recommended).
|
|
27
38
|
* **No:** If you run the fallback bash (`install.sh`) or PowerShell (`install.ps1`) one-liners.
|
|
28
39
|
|
|
29
|
-
**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
**Can I use this with an existing project?**
|
|
41
|
+
Yes! The `onboard` command suite is designed specifically for this. It analyzes your project structure, recommends the best template, generates a plan, and applies configs safely with automatic backups:
|
|
42
|
+
```bash
|
|
43
|
+
npx multimodel-dev-os@latest onboard analyze
|
|
44
|
+
npx multimodel-dev-os@latest onboard apply --approved
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Does this overwrite my existing files?**
|
|
48
|
+
Never by default. The CLI audits for conflicts before writing anything. To overwrite existing files, you must explicitly pass `--force`, and the system automatically creates `.bak` backups.
|
|
34
49
|
|
|
35
50
|
---
|
|
36
51
|
|
|
37
|
-
## Adapters
|
|
52
|
+
## Adapters & Tools
|
|
38
53
|
|
|
39
54
|
**Do I copy adapter files to my project root?**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
55
|
+
You can do it automatically with the `adapter sync` command:
|
|
56
|
+
```bash
|
|
57
|
+
npx multimodel-dev-os@latest adapter sync all --approved
|
|
58
|
+
```
|
|
59
|
+
Or manually:
|
|
60
|
+
- Cursor → `cp adapters/cursor/.cursorrules .cursorrules`
|
|
61
|
+
- Claude Code → `cp adapters/claude/CLAUDE.md CLAUDE.md`
|
|
62
|
+
- VS Code → `cp -r adapters/vscode/.vscode/ .vscode/`
|
|
63
|
+
|
|
64
|
+
**Does this work with MCP tools?**
|
|
65
|
+
Yes. MultiModel Dev OS includes a `.ai/registries/tools.yaml` that defines MCP tool integrations (like gcloud, Chrome DevTools). The tool registry maps capabilities dynamically rather than hardcoding tool names.
|
|
66
|
+
|
|
67
|
+
**What AI models does this support?**
|
|
68
|
+
All of them. The `.ai/models/` directory contains a model registry with capability scores, routing presets, and provider configurations. It supports cloud models (GPT-4, Claude, Gemini), local models (Llama, Ollama), and everything in between. No model is hardcoded — the registry routes tasks based on capability scores.
|
|
44
69
|
|
|
45
70
|
---
|
|
46
71
|
|
|
47
72
|
## Caveman Mode
|
|
48
73
|
|
|
49
74
|
**When should I use Caveman Mode?**
|
|
50
|
-
|
|
75
|
+
Use Caveman Mode when you want to minimize prompt token overhead — ideal for tight API budgets, smaller context windows, or when you want to save money on API calls. It compresses the workspace rules by **~79%** using shorthand declarations.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Intelligence & Safety
|
|
80
|
+
|
|
81
|
+
**Is this safe? Can it modify my code?**
|
|
82
|
+
MultiModel Dev OS is primarily a **read-only** workspace configuration layer. The only write operations are:
|
|
83
|
+
- `init` / `onboard apply` — creates configuration files (with conflict detection)
|
|
84
|
+
- `memory build` — creates memory index files under `.ai/intelligence/` (gitignored)
|
|
85
|
+
- `improve apply` — applies approved proposals (requires explicit `--approved` flag and passes 12 safety gates)
|
|
86
|
+
|
|
87
|
+
No command can execute arbitrary shell commands, and destructive operations always require explicit developer approval.
|
|
88
|
+
|
|
89
|
+
**What are the safety gates?**
|
|
90
|
+
The improvement proposal system enforces 12 strict safety checks including path boundary containment, protected path blocks (`.git/`, `.env`, `node_modules/`), idempotency verification, and mandatory human approval. Every apply action is logged in an append-only audit trail.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## TUI & Plugins
|
|
95
|
+
|
|
96
|
+
**What is the Interactive TUI Dashboard?**
|
|
97
|
+
It is a terminal-based operational menu (`npx multimodel-dev-os dashboard` or `ui`) that allows developers to run diagnostics, sync rules, build memory indexes, and check proposal status in a guided interface. It uses Node.js's native `readline` module for raw-keypress navigation, keeping execution zero-dependency and fast.
|
|
98
|
+
|
|
99
|
+
**Will the TUI Dashboard hang in CI/CD pipelines?**
|
|
100
|
+
No. The dashboard detects when stdin or stdout is non-interactive. In non-TTY environments, it prints a dry-run list of all options with their equivalent CLI commands and exits immediately, preventing pipelines from stalling.
|
|
101
|
+
|
|
102
|
+
**How secure is the Declarative Plugin system?**
|
|
103
|
+
Extremely secure. Plugins are strictly configuration-based (YAML manifest files). They cannot run arbitrary bash commands, execute node scripts, download npm packages, or make network calls. File copies are restricted to whitelisted `.ai/` and `adapters/` directories, and blacklists protect files like `.env`, `.git/`, `package.json`, and source code folders. Overwriting existing files requires `--force` and automatically generates backups.
|
|
51
104
|
|
|
52
105
|
---
|
|
53
106
|
|
|
54
107
|
## Diagnostics & Validation
|
|
55
108
|
|
|
56
109
|
**What is the difference between `validate` and `doctor`?**
|
|
57
|
-
* **`validate`**
|
|
58
|
-
* **`doctor`**
|
|
110
|
+
* **`validate`** — Strict compliance gate. Checks if required files exist and adapter configs are structurally correct. Exits with code 1 on failures. Use in CI/CD.
|
|
111
|
+
* **`doctor`** — Advisory audit. Warns about large unignored directories, missing `.gitignore` entries, stale memory indexes, and potential token waste. Non-blocking.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Contributing
|
|
116
|
+
|
|
117
|
+
**How do I contribute a new adapter?**
|
|
118
|
+
1. Create a directory under `adapters/{tool-name}/`
|
|
119
|
+
2. Add the tool-native instruction files referencing `/AGENTS.md` and `/MEMORY.md`
|
|
120
|
+
3. Add a clear `setup.md` installation guide
|
|
121
|
+
4. Update the adapter registry in `.ai/adapters/registry.yaml`
|
|
122
|
+
5. Submit a PR — see our [Contributing Guidelines](/contributing)
|
|
59
123
|
|
|
60
124
|
---
|
|
61
125
|
|
|
62
126
|
## Protocol & Migration
|
|
63
127
|
|
|
64
128
|
**Is the MultiModel Dev OS protocol stable?**
|
|
65
|
-
Yes.
|
|
129
|
+
Yes. The core Layer 1 specifications (root contracts and `.ai/` directory structure) are officially frozen and backward-compatible. Codebases prepared using any `v1.x` or `v2.x` release operate seamlessly with the latest version.
|
|
130
|
+
|
|
131
|
+
**How do I upgrade from an older version?**
|
|
132
|
+
Run `npx multimodel-dev-os@latest init --force` to pull the latest configuration files. Existing files will be backed up automatically. See the [Migration Guide](/migration-guide) for details.
|
|
66
133
|
|
|
67
|
-
Explore our [Stable Protocol Specification](/stable-protocol) or [
|
|
134
|
+
Explore our [Stable Protocol Specification](/stable-protocol) or [CLI Command Reference](/CLI) for more details.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Feedback Learning Loop
|
|
2
|
+
|
|
3
|
+
MultiModel Dev OS implements a feedback learning loop, converting developer edits and instruction overrides into reusable prompt rules.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Learning Flow
|
|
8
|
+
|
|
9
|
+
When an agent proposes changes and the developer modifies or rejects the code:
|
|
10
|
+
1. **Directive Compilation**: The developer logs the feedback comment:
|
|
11
|
+
```bash
|
|
12
|
+
npx multimodel-dev-os feedback add "Do not use Tailwind CSS in components under src/components/legacy; use CSS modules." --type preference --tags styling
|
|
13
|
+
```
|
|
14
|
+
2. **Summarization**: The developer compiles the logged guidelines:
|
|
15
|
+
```bash
|
|
16
|
+
npx multimodel-dev-os feedback summarize
|
|
17
|
+
```
|
|
18
|
+
3. **Learnings Update**: The learning rules are compiled and saved to `.ai/intelligence/learning-rules.md`.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 2. Dynamic Context Ingestion
|
|
23
|
+
|
|
24
|
+
During subsequent task prompts:
|
|
25
|
+
1. **Pattern Matching**: The routing engine scans `learning-rules.md` for rules matching the current file targets.
|
|
26
|
+
2. **Constraint Assembly**: Matching rules are compiled and injected directly into the prompt context budget as strict formatting rules.
|
|
27
|
+
3. **Instruction Drift Prevention**: This guarantees that once a design preference is specified, developer agents immediately align to it without repeating mistakes.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Command Center Integration
|
|
32
|
+
|
|
33
|
+
The [Repository Command Center](repository-command-center.md) dashboard counts the logged feedback items and tracks whether `learning-rules.md` is present or missing. Running `mmdo status` will advise you when feedback logs exist but have not yet been summarized into active rules.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Future-Proof Intelligence Architecture
|
|
2
|
+
|
|
3
|
+
To scale seamlessly with next-generation model classes (such as Claude Fable/Mythos, GPT-5) and emerging developer tool interfaces (such as MCP servers, terminal wrappers, IDE extensions), MultiModel Dev OS decouples cognitive and operational mappings from the core binary into a registry-driven architecture.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Registry-Driven Design
|
|
8
|
+
|
|
9
|
+
Rather than hardcoding specific model names or adapter rules inside the CLI engine, all behaviors are governed by JSON/YAML schemas under `.ai/registries/` and `.ai/intelligence/`:
|
|
10
|
+
|
|
11
|
+
1. **Capabilities Registry** (`.ai/registries/capabilities.yaml`): Scores and matches models using multi-dimensional cognitive capability vectors (e.g. coding depth, context retrieval, local capabilities, agentic duration) instead of string matching.
|
|
12
|
+
2. **Tools Registry** (`.ai/registries/tools.yaml`): Configures tool connections, interface types (editor, terminal, assistant), and file targets. Supports Model Context Protocol (MCP) server bindings dynamically.
|
|
13
|
+
3. **Workflows Registry** (`.ai/registries/workflows.yaml`): Coordinates multi-agent development cycles, defining step sequences, capability thresholds, and checklist gates.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Cognitive Mapping Pipeline
|
|
18
|
+
|
|
19
|
+
When a developer triggers a command (e.g., initializing a stack, validating structure, routing task prompts):
|
|
20
|
+
1. **Task Analysis**: The OS determines the task complexity category (e.g. reasoning, coding, review).
|
|
21
|
+
2. **Query Capability**: The engine searches the Capability Registry to select the optimal model matching the task requirements.
|
|
22
|
+
3. **Context Integration**: The local Memory Engine loads token-bounded repository state summaries and historic developer feedback to build the final optimized prompt context.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Hash-Compressed Repository Memory
|
|
2
|
+
|
|
3
|
+
To prevent context bloat and ensure token-efficient prompting, MultiModel Dev OS leverages a diff-driven, hash-compressed repository memory engine.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Codebase State Index (`memory.hash.json`)
|
|
8
|
+
|
|
9
|
+
The memory engine compiles the workspace structure into a compact JSON file under `.ai/intelligence/memory.hash.json`:
|
|
10
|
+
* **Content Fingerprints**: SHA-256 hashes and size metrics of files to detect changes quickly.
|
|
11
|
+
* **Framework Signals**: Automatically detected project framework and environment indicators.
|
|
12
|
+
* **Package Manager Signals**: Detected package managers (npm, yarn, pnpm, etc.).
|
|
13
|
+
* **AI Dev OS Integration**: Mapped list of present MultiModel Dev OS workspace files.
|
|
14
|
+
* **Risk Profile**: Scans and logs files/patterns that require stricter verification checks.
|
|
15
|
+
* **Recommended Next Steps**: Tailored integration and stabilization recommendations.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Memory CLI Commands
|
|
20
|
+
|
|
21
|
+
MultiModel Dev OS provides four commands to scan the codebase and manage the memory index:
|
|
22
|
+
|
|
23
|
+
### 1. `mmdo scan`
|
|
24
|
+
Scans the codebase target directory, detects package managers, frameworks/languages, MultiModel Dev OS integrations, and lists security or size risks without writing any files.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx multimodel-dev-os@latest scan
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 2. `mmdo memory build`
|
|
31
|
+
Performs a full codebase scan and compiles the index files under `.ai/intelligence/`:
|
|
32
|
+
- `memory.hash.json`: Structural fingerprints and framework signals.
|
|
33
|
+
- `memory.summary.md`: Human-readable codebase status summary.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx multimodel-dev-os@latest memory build
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. `mmdo memory refresh`
|
|
40
|
+
Incremental refresh of memory files, comparing current file hashes against `memory.hash.json` to update changed, added, or removed files without re-indexing unchanged assets.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx multimodel-dev-os@latest memory refresh
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 4. `mmdo memory diff`
|
|
47
|
+
Computes the difference between the current workspace state and the existing `memory.hash.json` file. Reports count and paths of added, removed, and changed files without writing any changes to disk.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx multimodel-dev-os@latest memory diff
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Memory Refresh Operations
|
|
56
|
+
|
|
57
|
+
Re-indexing the workspace is optimized to run incrementally:
|
|
58
|
+
1. **Hash Scanning**: The scanner compares current file hashes against the fingerprints in `memory.hash.json`.
|
|
59
|
+
2. **Pruning**: Files no longer present in the directory are removed from summaries.
|
|
60
|
+
3. **Targeted Summarization**: Only modified or new files are summarized, preserving historical decision logs and unchanged summaries to minimize token costs.
|
|
61
|
+
4. **Ignore Bounds**: Any directory or file path matching patterns inside `.gitignore` or default excludes (like `node_modules`, `.git`, `build`, etc.) is completely excluded from the memory scanning loop.
|
|
62
|
+
5. **Secret Redaction**: Skips configuration files containing secrets, credential blocks, or keystores (e.g. `.env`, `.npmrc`, `.keystore`).
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Command Center Integration
|
|
67
|
+
|
|
68
|
+
The status of the memory index is monitored in the [Repository Command Center](repository-command-center.md). Running `mmdo status` displays one of three states for your codebase memory:
|
|
69
|
+
* **`CURRENT`**: The filesystem matches the built memory index exactly.
|
|
70
|
+
* **`STALE`**: The filesystem has changed since the last build. Run `mmdo memory refresh` to update the index.
|
|
71
|
+
* **`MISSING`**: No memory index is built yet. Run `mmdo memory build` to generate it.
|
|
72
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Codebase Improvement Proposals
|
|
2
|
+
|
|
3
|
+
MultiModel Dev OS supports structured codebase optimization and refactoring proposals via a secure, proposal-based self-improvement pipeline.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Safety Principles
|
|
8
|
+
|
|
9
|
+
To guarantee repository integrity and prevent unintended changes, all self-improvement operations adhere to three core rules:
|
|
10
|
+
1. **Write-Protection**: The CLI binary, security guards, workflows, and core policies are read-only and cannot be modified by model proposals.
|
|
11
|
+
2. **Human-in-the-Loop (HITL)**: Models cannot write code directly to the workspace without explicit user verification.
|
|
12
|
+
3. **Proposal-Only Modifications**: The proposal engine compiles ideas without applying edits directly.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2. Proposal-Review Cycle
|
|
17
|
+
|
|
18
|
+
The workflow follows these stages:
|
|
19
|
+
|
|
20
|
+
### Stage A: Proposal Generation
|
|
21
|
+
Run the following command to check codebase context and write a proposal:
|
|
22
|
+
```bash
|
|
23
|
+
npx multimodel-dev-os improve propose --title "Fix unignored config files"
|
|
24
|
+
```
|
|
25
|
+
This generates a markdown file under `.ai/proposals/proposal-YYYYMMDD-HHMMSS.md` containing Frontmatter metadata and markdown explanation.
|
|
26
|
+
|
|
27
|
+
### Stage B: Human Review
|
|
28
|
+
The developer runs the review command to inspect active proposals:
|
|
29
|
+
```bash
|
|
30
|
+
npx multimodel-dev-os improve review
|
|
31
|
+
```
|
|
32
|
+
This prints a summary table of pending, approved, and rejected proposals.
|
|
33
|
+
|
|
34
|
+
To see aggregates of proposal statuses:
|
|
35
|
+
```bash
|
|
36
|
+
npx multimodel-dev-os improve status
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 3. Proposal Execution
|
|
40
|
+
|
|
41
|
+
Once a proposal is reviewed, you can execute it in one of two ways:
|
|
42
|
+
|
|
43
|
+
### A. Automated Application (Recommended)
|
|
44
|
+
Starting in v2.4.1, approved proposals with machine-applicable operation blocks can be executed automatically:
|
|
45
|
+
1. Edit the frontmatter metadata block to set `approval_status` to `approved`.
|
|
46
|
+
2. Validate the proposal and its safety boundaries:
|
|
47
|
+
```bash
|
|
48
|
+
npx multimodel-dev-os improve validate .ai/proposals/proposal-xxxx.md
|
|
49
|
+
```
|
|
50
|
+
3. Preview planned changes using the dry-run diff command:
|
|
51
|
+
```bash
|
|
52
|
+
npx multimodel-dev-os improve diff .ai/proposals/proposal-xxxx.md
|
|
53
|
+
```
|
|
54
|
+
4. Deterministically apply changes to the repository:
|
|
55
|
+
```bash
|
|
56
|
+
npx multimodel-dev-os improve apply .ai/proposals/proposal-xxxx.md --approved
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
For detailed specifications on safety gates, allowed operations, and audit logs, see the [Approved Proposal Application Guide](/approved-proposal-apply).
|
|
60
|
+
|
|
61
|
+
### B. Manual Implementation
|
|
62
|
+
For proposals containing vague instructions or complex edits without structured operation blocks:
|
|
63
|
+
1. Manually implement and verify the code edits within your workspace.
|
|
64
|
+
2. Edit the frontmatter metadata block to set `approval_status` to `approved` to archive.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Command Center Integration
|
|
69
|
+
|
|
70
|
+
The [Repository Command Center](repository-command-center.md) displays active proposal counts (pending, approved, and rejected) and provides a recommended command if pending proposals are waiting for review. You can run `mmdo status` to get a quick overview of your self-improvement status.
|