multimodel-dev-os 2.0.0 → 2.6.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/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/README.md +218 -97
- package/bin/multimodel-dev-os.js +2899 -10
- package/docs/.vitepress/config.js +23 -1
- package/docs/CLI.md +89 -2
- 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/capability-registry.md +24 -0
- package/docs/cli-roadmap.md +14 -22
- package/docs/faq.md +1 -1
- 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 +5 -5
- package/docs/learning-rules.md +36 -0
- package/docs/npm-publishing.md +16 -16
- package/docs/public/llms-full.txt +32 -2
- package/docs/public/llms.txt +43 -2
- package/docs/public/sitemap.xml +81 -1
- package/docs/quickstart.md +14 -16
- package/docs/real-repo-onboarding.md +27 -0
- package/docs/release-policy.md +5 -22
- package/docs/repository-command-center.md +52 -0
- package/docs/self-improving-codebase.md +46 -0
- package/docs/template-recommendation.md +22 -0
- package/docs/templates-guide.md +14 -3
- package/docs/tool-registry.md +21 -0
- package/docs/v2-release-checklist.md +1 -1
- package/docs/v2-roadmap.md +21 -1
- package/docs/workflow-orchestration.md +59 -0
- package/package.json +1 -1
- package/scripts/install.ps1 +1 -1
- package/scripts/install.sh +1 -1
- package/scripts/prepublish-guard.js +3 -3
- package/scripts/verify.js +107 -3
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
'license': 'https://opensource.org/licenses/MIT',
|
|
33
33
|
'url': 'https://github.com/rizvee/multimodel-dev-os',
|
|
34
34
|
'downloadUrl': 'https://www.npmjs.com/package/multimodel-dev-os',
|
|
35
|
-
'softwareVersion': '2.
|
|
35
|
+
'softwareVersion': '2.6.0',
|
|
36
36
|
'description': 'Portable, vendor-neutral AI Developer OS for multi-agent coding workflows.'
|
|
37
37
|
})
|
|
38
38
|
]
|
|
@@ -55,6 +55,14 @@ export default {
|
|
|
55
55
|
{ text: 'FAQ', link: '/faq' }
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
+
{
|
|
59
|
+
text: 'Repo Onboarding & Adapters',
|
|
60
|
+
items: [
|
|
61
|
+
{ text: 'Real Repo Onboarding', link: '/real-repo-onboarding' },
|
|
62
|
+
{ text: 'IDE Adapter Sync', link: '/adapter-sync' },
|
|
63
|
+
{ text: 'Template Recommendation', link: '/template-recommendation' }
|
|
64
|
+
]
|
|
65
|
+
},
|
|
58
66
|
{
|
|
59
67
|
text: 'Protocol & QA Specifications',
|
|
60
68
|
items: [
|
|
@@ -136,6 +144,20 @@ export default {
|
|
|
136
144
|
{ text: 'Templates Architecture', link: '/templates-guide' }
|
|
137
145
|
]
|
|
138
146
|
},
|
|
147
|
+
{
|
|
148
|
+
text: 'Self-Improvement Engine',
|
|
149
|
+
items: [
|
|
150
|
+
{ text: 'Self-Improving Codebase', link: '/self-improving-codebase' },
|
|
151
|
+
{ text: 'Improvement Proposals', link: '/improvement-proposals' },
|
|
152
|
+
{ text: 'Feedback Learning Loop', link: '/feedback-learning' },
|
|
153
|
+
{ text: 'Hash-Compressed Memory', link: '/hash-compressed-memory' },
|
|
154
|
+
{ text: 'Learning Rules', link: '/learning-rules' },
|
|
155
|
+
{ text: 'Approved Proposal Application', link: '/approved-proposal-apply' },
|
|
156
|
+
{ text: 'Repository Command Center', link: '/repository-command-center' },
|
|
157
|
+
{ text: 'Workflow Orchestration', link: '/workflow-orchestration' },
|
|
158
|
+
{ text: 'Agent Handoff Spec', link: '/agent-handoff' }
|
|
159
|
+
]
|
|
160
|
+
},
|
|
139
161
|
{
|
|
140
162
|
text: 'Operations & Publishing',
|
|
141
163
|
items: [
|
package/docs/CLI.md
CHANGED
|
@@ -37,9 +37,12 @@ Strict directory schema compliance gate checks.
|
|
|
37
37
|
* **Assertions:** Checks for the presence of crucial root files and enabled adapters' rule targets. If assertions fail, exits with status 1.
|
|
38
38
|
|
|
39
39
|
### 3. `doctor`
|
|
40
|
-
Advisory checkups for gitignores
|
|
40
|
+
Advisory checkups for gitignores, large token-sinks, and intelligence configuration.
|
|
41
41
|
* **Usage:** `node bin/multimodel-dev-os.js doctor [options]`
|
|
42
|
-
* **Audits:** Missing `.env` gates in gitignores, missing build steps inside `AGENTS.md`, and large unignored directories
|
|
42
|
+
* **Audits:** Missing `.env` gates in gitignores, missing build steps inside `AGENTS.md`, and large unignored directories.
|
|
43
|
+
* **Options:**
|
|
44
|
+
- `--release`: Verifies version stability, verifies Vitepress docs build, checks dry-run pack.
|
|
45
|
+
- `--intelligence`: Runs advisory audits verifying memory index freshness, feedback log presence, learning rules compilation, proposals status, and `.gitignore` safety boundaries.
|
|
43
46
|
|
|
44
47
|
### 4. `templates` / `list-templates`
|
|
45
48
|
Inspection map of all built-in stacks.
|
|
@@ -48,3 +51,87 @@ Inspection map of all built-in stacks.
|
|
|
48
51
|
### 5. `show-template <name>`
|
|
49
52
|
Detailed layout specifications and skill blueprints audit.
|
|
50
53
|
* **Usage:** `node bin/multimodel-dev-os.js show-template nextjs-saas`
|
|
54
|
+
|
|
55
|
+
### 6. `scan`
|
|
56
|
+
Scan codebase structure, frameworks, package managers, and security/exclusion risks.
|
|
57
|
+
* **Usage:** `node bin/multimodel-dev-os.js scan [options]`
|
|
58
|
+
* **Options:**
|
|
59
|
+
- `-t, --target <path>`: Specifies target destination (default: current working directory).
|
|
60
|
+
|
|
61
|
+
### 7. `memory`
|
|
62
|
+
Manage codebase hash-compressed memory index.
|
|
63
|
+
* **Usage:** `node bin/multimodel-dev-os.js memory <subcommand> [options]`
|
|
64
|
+
* **Subcommands:**
|
|
65
|
+
- `build`: Performs full codebase scan and writes memory files.
|
|
66
|
+
- `refresh`: Performs incremental memory updates based on file hash diffs.
|
|
67
|
+
- `diff`: Reports files modified, added, or removed compared to memory index without writing any changes.
|
|
68
|
+
* **Options:**
|
|
69
|
+
- `-t, --target <path>`: Specifies target destination (default: current working directory).
|
|
70
|
+
|
|
71
|
+
### 8. `feedback`
|
|
72
|
+
Manage developer feedback loop and compile rules.
|
|
73
|
+
* **Usage:** `node bin/multimodel-dev-os.js feedback <subcommand> [options]`
|
|
74
|
+
* **Subcommands:**
|
|
75
|
+
- `add "<text>"`: Append a structured feedback object.
|
|
76
|
+
- `list`: View logged feedback entries.
|
|
77
|
+
- `summarize`: Compile raw feedback logs into `learning-rules.md`.
|
|
78
|
+
* **Options:**
|
|
79
|
+
- `--type <type>`: Classification type (`correction`, `preference`, `bug`, etc.)
|
|
80
|
+
- `--tags <list>`: Comma-separated list of tags.
|
|
81
|
+
- `--files <list>`: Comma-separated list of related files.
|
|
82
|
+
|
|
83
|
+
### 9. `improve`
|
|
84
|
+
Manage codebase optimization proposals and deterministic execution.
|
|
85
|
+
* **Usage:** `node bin/multimodel-dev-os.js improve <subcommand> [options]`
|
|
86
|
+
* **Subcommands:**
|
|
87
|
+
- `propose`: Generate a codebase improvement proposal markdown file.
|
|
88
|
+
- `review`: List active proposals and their statuses.
|
|
89
|
+
- `status`: Show aggregate counts of proposal statuses.
|
|
90
|
+
- `validate <proposal-file>`: Validate safety gates and parse operations. Prints a structured safety checklist (Frontmatter, Approval, JSON, Types, Boundaries, Permissions, Constraints) with actionable fixes on refusal.
|
|
91
|
+
- `diff <proposal-file>`: Preview proposed changes grouped by type in a token-safe truncated diff format.
|
|
92
|
+
- `apply <proposal-file> --approved`: Apply approved operations to target, printing compact summaries, clear idempotent statuses, and writing success/refusal audit logs.
|
|
93
|
+
- `log`: Display Applied Proposals Audit Log execution history (`apply-log.jsonl`).
|
|
94
|
+
* **Options:**
|
|
95
|
+
- `--title <text>`: Title of the proposal (used with `propose`).
|
|
96
|
+
- `--approved`: Explicitly authorize apply command execution (required for `apply`).
|
|
97
|
+
- `-t, --target <path>`: Specifies target destination (default: current working directory).
|
|
98
|
+
|
|
99
|
+
### 10. `status`
|
|
100
|
+
Display a compact project intelligence dashboard.
|
|
101
|
+
* **Usage:** `node bin/multimodel-dev-os.js status [options]`
|
|
102
|
+
* **Overview:** Summarizes package metadata, framework signals, memory state (`MISSING`/`STALE`/`CURRENT`), feedback counts, proposal statuses, apply log audits, and the recommended next command. Fully read-only.
|
|
103
|
+
|
|
104
|
+
### 11. `workflow`
|
|
105
|
+
Orchestrate read-only development workflow pipelines.
|
|
106
|
+
* **Usage:** `node bin/multimodel-dev-os.js workflow <subcommand> [options]`
|
|
107
|
+
* **Subcommands:**
|
|
108
|
+
- `list`: Print all registered workflows in `.ai/registries/workflows.yaml`.
|
|
109
|
+
- `show <workflow>`: Display details, risk level, memory write capability, code modification capability, and logical steps of target workflow.
|
|
110
|
+
- `plan <workflow>`: Print steps and commands of target workflow without executing them (dry-run).
|
|
111
|
+
- `run <workflow>`: Sequentially execute safe, read-only and metadata-write steps (e.g. scan, doctor, memory refresh, feedback summarize). Any step requiring source code modification will halt and output manual instructions.
|
|
112
|
+
|
|
113
|
+
### 12. `handoff`
|
|
114
|
+
Compile token-compressed agent session handoff context.
|
|
115
|
+
* **Usage:** `node bin/multimodel-dev-os.js handoff <subcommand> [options]`
|
|
116
|
+
* **Subcommands:**
|
|
117
|
+
- `build`: Scans project signals and intelligence state and generates `.ai/intelligence/handoff.md` (which is git-ignored by default).
|
|
118
|
+
- `show`: Prints handoff contents to console (building them first if not present).
|
|
119
|
+
|
|
120
|
+
### 13. `onboard`
|
|
121
|
+
Safely onboard an existing repository into MultiModel Dev OS.
|
|
122
|
+
* **Usage:** `node bin/multimodel-dev-os.js onboard <subcommand> [options]`
|
|
123
|
+
* **Subcommands:**
|
|
124
|
+
- `analyze`: Scans repository structure, frameworks, languages, and risk markers. Read-only.
|
|
125
|
+
- `recommend`: Runs scanner diagnostics and recommendations for templates and adapters. Read-only.
|
|
126
|
+
- `plan`: Generates onboarding plan `.ai/intelligence/onboarding.plan.json` and report `.ai/intelligence/onboarding.report.md`. Read-only.
|
|
127
|
+
- `apply --approved`: Copies configuration templates to target directory. Overwrites require `--force` and automatically generate backups.
|
|
128
|
+
- `status`: Show progress and completeness percentage dashboard.
|
|
129
|
+
|
|
130
|
+
### 14. `adapter`
|
|
131
|
+
Manage and synchronize rule files for IDE and assistant adapters.
|
|
132
|
+
* **Usage:** `node bin/multimodel-dev-os.js adapter <subcommand> [options]`
|
|
133
|
+
* **Subcommands:**
|
|
134
|
+
- `status`: Show rules files status and enable/disable states from config.
|
|
135
|
+
- `diff <adapter>`: Show rules diff between bundled template and target root file.
|
|
136
|
+
- `sync <adapter|all> --approved`: Synchronizes rule files. Overwrites require `--force` and automatically generate backups.
|
|
137
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# IDE & Coding Agent Adapter Sync
|
|
2
|
+
|
|
3
|
+
The `adapter` command system synchronizes target IDE configurations and coding agent rule files (e.g. `.cursorrules`, `CLAUDE.md`, `.vscode/settings.json`) from bundled templates based on enabled states in `.ai/config.yaml`.
|
|
4
|
+
|
|
5
|
+
## Adapter Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# 1. Show the synchronization status of all adapters
|
|
9
|
+
npx multimodel-dev-os adapter status --target .
|
|
10
|
+
|
|
11
|
+
# 2. Preview rules to write for a specific adapter
|
|
12
|
+
npx multimodel-dev-os adapter diff cursor --target .
|
|
13
|
+
|
|
14
|
+
# 3. Synchronize rule files for a specific adapter
|
|
15
|
+
npx multimodel-dev-os adapter sync cursor --target . --approved
|
|
16
|
+
|
|
17
|
+
# 4. Synchronize all enabled adapters
|
|
18
|
+
npx multimodel-dev-os adapter sync all --target . --approved
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Overwriting Existing Files
|
|
22
|
+
|
|
23
|
+
By default, the synchronizer skips existing rules files to prevent overwriting user customizations. Use the `--force` option to overwrite, which automatically creates a backup with a `.bak` suffix.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx multimodel-dev-os adapter sync all --target . --approved --force
|
|
27
|
+
```
|
package/docs/adapters.md
CHANGED
|
@@ -77,3 +77,19 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md).
|
|
|
77
77
|
3. **Include only** tool-specific overrides or behavior notes
|
|
78
78
|
4. **Test with the actual tool** — don't guess at file detection behavior
|
|
79
79
|
5. **Document quirks** — if a tool has unusual behavior, note it in `setup.md`
|
|
80
|
+
|
|
81
|
+
## Synchronizing Adapters
|
|
82
|
+
|
|
83
|
+
Use the `adapter` command to automatically synchronize native rule and settings files from the bundled adapter registry templates into your workspace root:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Check status of installed rule files
|
|
87
|
+
npx multimodel-dev-os adapter status
|
|
88
|
+
|
|
89
|
+
# Preview diffs between template and local rule files
|
|
90
|
+
npx multimodel-dev-os adapter diff cursor
|
|
91
|
+
|
|
92
|
+
# Write rule files to target (forces backup if files exist and --force is passed)
|
|
93
|
+
npx multimodel-dev-os adapter sync cursor --approved --force
|
|
94
|
+
npx multimodel-dev-os adapter sync all --approved
|
|
95
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Agent Handoff Specification
|
|
2
|
+
|
|
3
|
+
The `handoff` command parses repository context to build a token-compressed summary document designed to transfer codebase state to a new agent or model session.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. CLI Commands
|
|
8
|
+
|
|
9
|
+
### Build Handoff Spec
|
|
10
|
+
Generates the summary document at `.ai/intelligence/handoff.md`:
|
|
11
|
+
```bash
|
|
12
|
+
npx multimodel-dev-os handoff build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Show Handoff Spec
|
|
16
|
+
Prints the handoff content directly to the console (building it first if missing):
|
|
17
|
+
```bash
|
|
18
|
+
npx multimodel-dev-os handoff show
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 2. Handoff Structure
|
|
24
|
+
|
|
25
|
+
The compiled `.ai/intelligence/handoff.md` file contains the following key sections:
|
|
26
|
+
|
|
27
|
+
1. **Project Context**: Package name, version, detected frameworks, and package dependencies.
|
|
28
|
+
2. **Intelligence Core State**: Tells the incoming agent if the memory is `CURRENT` or `STALE`, feedback loop counts, rules status, proposals status, and last applied proposal run ID.
|
|
29
|
+
3. **Core Learning Summaries**: Provides a snippet of active learning rules from `learning-rules.md`.
|
|
30
|
+
4. **Safety Constraints**: Outlines session boundaries, indicating that workflows are read-only and modifications require explicit user approval.
|
|
31
|
+
5. **Recommended Next Steps**: Provides 2-3 logical starting points for the incoming agent.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 3. Safety Controls
|
|
36
|
+
|
|
37
|
+
* **No Source Dumps**: Full source code is never appended.
|
|
38
|
+
* **No Secrets**: Scans target folders and excludes sensitive files, `.env` configs, credentials, or private keys.
|
|
39
|
+
* **Excluded in VCS**: `.ai/intelligence/handoff.md` is ignored by Git, ensuring local state doesn't pollute repository history.
|
|
40
|
+
* **Onboarding Guard**: If the target repository has not been initialized with MultiModel Dev OS, the handoff builder warns the developer/agent and details the onboarding steps in the generated handoff.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# Approved Proposal Application Engine
|
|
2
|
+
|
|
3
|
+
MultiModel Dev OS v2.4.1 (Safety & UX Patch) introduces a safe, deterministic, human-approved proposal application layer to automate the execution of approved codebase optimization proposals under strict safety constraints.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Core Workflow
|
|
8
|
+
|
|
9
|
+
Instead of requiring manual copy-pasting, the CLI can execute machine-applicable operation blocks from proposal files that have been marked as `approved` by a developer.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
A[improve propose] --> B[Pending Proposal File]
|
|
14
|
+
B --> C{Developer Review}
|
|
15
|
+
C -->|Rejects| D[approval_status: rejected]
|
|
16
|
+
C -->|Approves & edits frontmatter| E[approval_status: approved]
|
|
17
|
+
E --> F[improve validate]
|
|
18
|
+
F -->|Validation check passes| G[improve diff]
|
|
19
|
+
G -->|Dry-run preview passes| H[improve apply --approved]
|
|
20
|
+
H --> I[Changes written to target & logged in apply-log]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 2. Machine-Applicable Operations
|
|
26
|
+
|
|
27
|
+
To automate changes, proposal files support an optional, structured JSON block embedded as a `json` code block in the markdown body:
|
|
28
|
+
|
|
29
|
+
````markdown
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"operations": [
|
|
33
|
+
{
|
|
34
|
+
"type": "create_file",
|
|
35
|
+
"path": "docs/example.md",
|
|
36
|
+
"content": "# Example\n",
|
|
37
|
+
"overwrite": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "append_line",
|
|
41
|
+
"path": ".gitignore",
|
|
42
|
+
"line": "node_modules/"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "replace_text",
|
|
46
|
+
"path": "README.md",
|
|
47
|
+
"find": "old text",
|
|
48
|
+
"replace": "new text",
|
|
49
|
+
"allow_multiple": false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
````
|
|
55
|
+
|
|
56
|
+
### Supported Operation Types
|
|
57
|
+
|
|
58
|
+
| Operation | Parameters | Description |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| `create_file` | `path`, `content`, `overwrite` (optional) | Creates a file with the given content. Fails if the file exists unless `overwrite: true`. |
|
|
61
|
+
| `append_line` | `path`, `line` | Appends a line to the file. It is idempotent; if the line already exists in the file, it will not be duplicated. |
|
|
62
|
+
| `replace_text` | `path`, `find`, `replace`, `allow_multiple` (optional) | Replaces search string `find` with `replace`. Fails if `find` is not found, or matches multiple times unless `allow_multiple: true`. |
|
|
63
|
+
|
|
64
|
+
### Disallowed Operations for Safety
|
|
65
|
+
The following actions are strictly prohibited in the v2.4.0 application engine:
|
|
66
|
+
* Deleting or renaming files (`delete_file`, `rename_file`)
|
|
67
|
+
* Running arbitrary shell commands
|
|
68
|
+
* Installing npm packages or editing package dependencies
|
|
69
|
+
* Interacting with Git or version control
|
|
70
|
+
* Performing network calls
|
|
71
|
+
* Modifying binary files or secret files
|
|
72
|
+
* Modifying files outside the target workspace root folder
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 3. Strict Safety Gates
|
|
77
|
+
|
|
78
|
+
The application engine validates every proposal file against a set of strict safety rules before any file is touched:
|
|
79
|
+
|
|
80
|
+
1. **Existence**: The target proposal markdown file must exist.
|
|
81
|
+
2. **Metadata Frontmatter**: YAML frontmatter must parse successfully.
|
|
82
|
+
3. **Approval Check**: `approval_status` inside the frontmatter must be explicitly set to `approved`.
|
|
83
|
+
4. **CLI Flag**: `improve apply` refuses to execute unless `--approved` is passed by the user.
|
|
84
|
+
5. **Operations block**: A valid JSON code block with `operations` array must be found.
|
|
85
|
+
6. **Command validation**: Every listed operation type must be allowed.
|
|
86
|
+
7. **Directory boundaries**: Every target path must resolve strictly inside the target root directory. Directory traversal using `..` or absolute paths resolves outside target root and fails.
|
|
87
|
+
8. **Protected paths**: No protected files or directories (such as `.git/`, `node_modules/`, `.env`, `.npmrc`, SSL keys/certificates) can be written to or modified.
|
|
88
|
+
9. **`replace_text` match count**: Search text `find` must match exactly once unless `allow_multiple: true` is passed.
|
|
89
|
+
10. **`create_file` overwrites**: If a target file exists, the operation must explicitly specify `overwrite: true`.
|
|
90
|
+
11. **`append_line` idempotency**: Line additions will not duplicate if the exact line already exists.
|
|
91
|
+
12. **Dry-run diff**: Developers can preview all changes using `improve diff` prior to execution.
|
|
92
|
+
|
|
93
|
+
> [!WARNING]
|
|
94
|
+
> **Workflow Isolation**: The `improve apply` command can only be executed manually by a developer. The MultiModel Dev OS [Workflow Runner](workflow-orchestration.md) runs in a strictly read-only mode and is prohibited from executing `improve apply` or modifying codebase files.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 4. CLI Commands
|
|
99
|
+
|
|
100
|
+
### validate
|
|
101
|
+
Validates the proposal frontmatter, safety gates, and operation rules. Displays a color-coded Checklist showing the status of each safety gate (pass, fail, skip) and actionable fixes:
|
|
102
|
+
```bash
|
|
103
|
+
npx multimodel-dev-os improve validate <proposal-file> --target <path>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### diff
|
|
107
|
+
Previews the changes grouped by operation type (Create, Append, Replace) in a token-safe truncated format:
|
|
108
|
+
```bash
|
|
109
|
+
npx multimodel-dev-os improve diff <proposal-file> --target <path>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### apply
|
|
113
|
+
Deterministically executes the operations listed in the approved proposal file. Refuses to run without the `--approved` flag. Prints pre-apply summaries and detailed idempotent run indicators.
|
|
114
|
+
```bash
|
|
115
|
+
npx multimodel-dev-os improve apply <proposal-file> --target <path> --approved
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### log
|
|
119
|
+
Lists the history of applied proposals from the audit log:
|
|
120
|
+
```bash
|
|
121
|
+
npx multimodel-dev-os improve log --target <path>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 5. Audit Logging
|
|
127
|
+
|
|
128
|
+
Every execution of `improve apply` writes an entry to the append-only JSON Lines audit log. Hardened in v2.4.1, it also writes records for failed/refused attempts:
|
|
129
|
+
* **Log Location**: `.ai/proposals/apply-log.jsonl`
|
|
130
|
+
* **Log Exclusion**: Automatically ignored by Git via `.gitignore` and excluded from AI scanner runs.
|
|
131
|
+
|
|
132
|
+
Each record conforms to `.ai/intelligence/apply-log.schema.json` and contains:
|
|
133
|
+
* `id`: Unique execution identifier (`apply-YYYYMMDD-HHMMSS`)
|
|
134
|
+
* `proposal_id`: Proposal file identifier
|
|
135
|
+
* `applied_at`: ISO timestamp of execution
|
|
136
|
+
* `target`: Resolved workspace target path
|
|
137
|
+
* `operations_count`: Total operations performed
|
|
138
|
+
* `files_changed`: List of relative paths modified
|
|
139
|
+
* `before_hashes`: SHA-256 file hashes before execution
|
|
140
|
+
* `after_hashes`: SHA-256 file hashes after execution
|
|
141
|
+
* `status`: `success`, `failed`, or `refused`
|
|
142
|
+
* `refused_reason`: Reason why validation was refused (when applicable)
|
|
143
|
+
* `notes`: Additional run information or failure reasons
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 6. Recommended Workflow
|
|
148
|
+
|
|
149
|
+
To ensure safety, consistency, and clarity, follow this workflow:
|
|
150
|
+
|
|
151
|
+
1. **validate**: Run `npx multimodel-dev-os improve validate .ai/proposals/proposal-xxxx.md` to run safety gate audits.
|
|
152
|
+
2. **diff**: Run `npx multimodel-dev-os improve diff .ai/proposals/proposal-xxxx.md` to review planned changes.
|
|
153
|
+
3. **manually review**: Verify the proposal contents, target paths, and operation constraints.
|
|
154
|
+
4. **apply**: Run `npx multimodel-dev-os improve apply .ai/proposals/proposal-xxxx.md --approved` to write modifications locally.
|
|
155
|
+
5. **run tests**: Manually run verification tests (e.g., `npm run verify` or custom test runner).
|
|
156
|
+
6. **commit**: Commit the changes manually to version control.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Model Capability Registry
|
|
2
|
+
|
|
3
|
+
The **Capability Registry** manages and scores AI models across cognitive, speed, and cost vectors, eliminating hardcoded model routing logic.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Capabilities Score Matrix
|
|
8
|
+
|
|
9
|
+
Models are scored in `.ai/registries/capabilities.yaml` across six primary vectors:
|
|
10
|
+
* `coding` — Syntax accuracy, language compliance, and refactoring competence.
|
|
11
|
+
* `reasoning` — Multi-file plan generation and logical constraint auditing.
|
|
12
|
+
* `repo-scan` — Needle-in-a-haystack retrieval accuracy at massive context scales.
|
|
13
|
+
* `agentic-duration` — Ability to execute long-running task loops without losing parameters.
|
|
14
|
+
* `mcp-compliance` — Native Model Context Protocol (MCP) tool bindings.
|
|
15
|
+
* `local-offline` — Suitability for local resources (e.g. running via Ollama/Llama.cpp).
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 2. Dynamic Routing Engine
|
|
20
|
+
|
|
21
|
+
When executing workflow steps:
|
|
22
|
+
1. **Workflows Query**: The workflow profile specifies the minimum capability scores required for each step (e.g., `planning` requires `reasoning: 0.85`, while `coding` requires `coding: 0.80`).
|
|
23
|
+
2. **Capabilities Filter**: The router filters active models that meet or exceed these score thresholds.
|
|
24
|
+
3. **Cost-Speed Trade-off**: From the matching models, the engine selects the candidate that optimizes cost, latency, or user-selected flags (e.g. `--local` or `--low-cost`).
|
package/docs/cli-roadmap.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CLI Roadmap
|
|
2
2
|
|
|
3
|
-
> The zero-dependency CLI utility is fully integrated with `npm` and `npx` in
|
|
3
|
+
> The zero-dependency CLI utility is fully integrated with `npm` and `npx` in v2.0.0!
|
|
4
4
|
|
|
5
5
|
## Current CLI Usage
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ npx multimodel-dev-os@latest init --force
|
|
|
23
23
|
npx multimodel-dev-os@latest verify
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Alternatively, you can run the CLI
|
|
26
|
+
Alternatively, you can run the CLI directly from cloned source during development:
|
|
27
27
|
```bash
|
|
28
28
|
node bin/multimodel-dev-os.js init
|
|
29
29
|
node bin/multimodel-dev-os.js verify
|
|
@@ -37,25 +37,17 @@ node bin/multimodel-dev-os.js verify
|
|
|
37
37
|
| `show-template` | Inspect stack specifications of a template | v0.5.0 | ✅ Completed |
|
|
38
38
|
| `doctor` | Advisory checkup of workspace compatibility | v0.5.0 | ✅ Completed |
|
|
39
39
|
| `validate` | Strict directory schema compliance checks | v0.5.0 | ✅ Completed |
|
|
40
|
-
| `
|
|
41
|
-
| `
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `show-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
> All new `v1.2.0` subcommands listed as **Source Only** are fully implemented in the source code but are unreleased on the npm package registry. To run them, execute from a clone of the GitHub repository. They will be packaged officially in the `v2.0.0` stable release.
|
|
53
|
-
|
|
54
|
-
## CLI v2.0.0 Stabilization Goal
|
|
55
|
-
|
|
56
|
-
Ahead of the `v2.0.0` release, we will run a comprehensive compatibility pass:
|
|
57
|
-
* **Backward Compatibility**: Ensure that all new registries configurations and subcommand syntax do not break the stable `v1.0.0` and `v1.1.0` CLI behaviors.
|
|
58
|
-
* **Unified Quality Gates**: Integrate model registry and adapter configuration validation parameters directly into the standard `validate` and `doctor` command pipelines.
|
|
59
|
-
* **Cross-Platform Hardening**: Audit all commands on Windows (PowerShell/CMD), macOS, and Linux bash environments before resuming npm package publishing.
|
|
40
|
+
| `models` | List configured model registry entries | v2.0.0 | ✅ Completed |
|
|
41
|
+
| `show-model` | Inspect settings for a model registry entry | v2.0.0 | ✅ Completed |
|
|
42
|
+
| `providers` | List configured model registry providers | v2.0.0 | ✅ Completed |
|
|
43
|
+
| `route-model`| Route a target prompt based on presets | v2.0.0 | ✅ Completed |
|
|
44
|
+
| `adapters` | List configured adapter registry entries | v2.0.0 | ✅ Completed |
|
|
45
|
+
| `show-adapter`| Inspect settings for an adapter registry entry | v2.0.0 | ✅ Completed |
|
|
46
|
+
| `skills` | List configured skill registry entries | v2.0.0 | ✅ Completed |
|
|
47
|
+
| `show-skill` | Inspect settings for a skill registry entry | v2.0.0 | ✅ Completed |
|
|
48
|
+
|
|
49
|
+
## CLI v2.0.0 Stabilization & Beyond
|
|
50
|
+
|
|
51
|
+
The `v2.0.0` stabilization milestone was completed successfully, hardening registries configurations, custom skill checking tools, and token size overrides. Any future subcommands or adapter sync mechanisms will follow SemVer guidelines to ensure full backward compatibility.
|
|
60
52
|
|
|
61
53
|
|
package/docs/faq.md
CHANGED
|
@@ -62,6 +62,6 @@ Yes, for tools that auto-detect specific files:
|
|
|
62
62
|
## Protocol & Migration
|
|
63
63
|
|
|
64
64
|
**Is the MultiModel Dev OS protocol stable?**
|
|
65
|
-
Yes. As of version `v1.1.0`, the core specifications are officially frozen and backward-compatible. This ensures that
|
|
65
|
+
Yes. As of version `v1.1.0`, the core specifications are officially frozen and backward-compatible. This ensures that codebases prepared using `v1.1.0` or later operate seamlessly inside all `1.x` and `2.x` ecosystems.
|
|
66
66
|
|
|
67
67
|
Explore our [Stable Protocol Specification](/stable-protocol) or [Upgrade & Migration Guide](/migration-guide) for 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
|
+
|