mindforge-cc 1.0.5 → 2.0.0-alpha.4
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/.agent/CLAUDE.md +53 -0
- package/.agent/mindforge/auto.md +22 -0
- package/.agent/mindforge/browse.md +26 -0
- package/.agent/mindforge/costs.md +11 -0
- package/.agent/mindforge/cross-review.md +17 -0
- package/.agent/mindforge/execute-phase.md +5 -3
- package/.agent/mindforge/qa.md +16 -0
- package/.agent/mindforge/remember.md +14 -0
- package/.agent/mindforge/research.md +11 -0
- package/.agent/mindforge/steer.md +13 -0
- package/.agent/workflows/publish-release.md +36 -0
- package/.claude/CLAUDE.md +53 -0
- package/.claude/commands/mindforge/auto.md +22 -0
- package/.claude/commands/mindforge/browse.md +26 -0
- package/.claude/commands/mindforge/costs.md +11 -0
- package/.claude/commands/mindforge/cross-review.md +17 -0
- package/.claude/commands/mindforge/execute-phase.md +5 -3
- package/.claude/commands/mindforge/qa.md +16 -0
- package/.claude/commands/mindforge/remember.md +14 -0
- package/.claude/commands/mindforge/research.md +11 -0
- package/.claude/commands/mindforge/steer.md +13 -0
- package/.mindforge/MINDFORGE-V2-SCHEMA.json +47 -0
- package/.mindforge/browser/daemon-protocol.md +24 -0
- package/.mindforge/browser/qa-engine.md +16 -0
- package/.mindforge/browser/session-manager.md +18 -0
- package/.mindforge/browser/visual-verify-spec.md +31 -0
- package/.mindforge/engine/autonomous/auto-executor.md +266 -0
- package/.mindforge/engine/autonomous/headless-adapter.md +66 -0
- package/.mindforge/engine/autonomous/node-repair.md +190 -0
- package/.mindforge/engine/autonomous/progress-reporter.md +58 -0
- package/.mindforge/engine/autonomous/steering-manager.md +64 -0
- package/.mindforge/engine/autonomous/stuck-detector.md +89 -0
- package/.mindforge/memory/MEMORY-SCHEMA.md +155 -0
- package/.mindforge/memory/decision-library.jsonl +0 -0
- package/.mindforge/memory/engine/capture-protocol.md +36 -0
- package/.mindforge/memory/engine/global-sync-spec.md +42 -0
- package/.mindforge/memory/engine/retrieval-spec.md +44 -0
- package/.mindforge/memory/knowledge-base.jsonl +7 -0
- package/.mindforge/memory/pattern-library.jsonl +1 -0
- package/.mindforge/memory/team-preferences.jsonl +4 -0
- package/.mindforge/models/model-registry.md +48 -0
- package/.mindforge/models/model-router.md +30 -0
- package/.mindforge/personas/research-agent.md +24 -0
- package/.planning/browser-daemon.log +32 -0
- package/.planning/decisions/ADR-021-autonomy-boundary.md +17 -0
- package/.planning/decisions/ADR-022-node-repair-hierarchy.md +19 -0
- package/.planning/decisions/ADR-023-gate-3-timing.md +15 -0
- package/CHANGELOG.md +68 -0
- package/MINDFORGE.md +26 -3
- package/README.md +54 -18
- package/bin/autonomous/auto-runner.js +95 -0
- package/bin/autonomous/headless.js +36 -0
- package/bin/autonomous/progress-stream.js +49 -0
- package/bin/autonomous/repair-operator.js +213 -0
- package/bin/autonomous/steer.js +71 -0
- package/bin/autonomous/stuck-monitor.js +77 -0
- package/bin/browser/browser-daemon.js +139 -0
- package/bin/browser/daemon-manager.js +91 -0
- package/bin/browser/qa-engine.js +47 -0
- package/bin/browser/qa-report-writer.js +32 -0
- package/bin/browser/regression-writer.js +27 -0
- package/bin/browser/screenshot-store.js +49 -0
- package/bin/browser/session-manager.js +93 -0
- package/bin/browser/visual-verify-executor.js +89 -0
- package/bin/install.js +4 -4
- package/bin/installer-core.js +24 -24
- package/bin/memory/cli.js +99 -0
- package/bin/memory/global-sync.js +107 -0
- package/bin/memory/knowledge-capture.js +278 -0
- package/bin/memory/knowledge-indexer.js +172 -0
- package/bin/memory/knowledge-store.js +319 -0
- package/bin/memory/session-memory-loader.js +137 -0
- package/bin/migrations/0.1.0-to-0.5.0.js +2 -3
- package/bin/migrations/0.5.0-to-0.6.0.js +1 -1
- package/bin/migrations/0.6.0-to-1.0.0.js +3 -3
- package/bin/migrations/migrate.js +15 -11
- package/bin/models/anthropic-provider.js +77 -0
- package/bin/models/cost-tracker.js +118 -0
- package/bin/models/gemini-provider.js +79 -0
- package/bin/models/model-client.js +98 -0
- package/bin/models/model-router.js +111 -0
- package/bin/models/openai-provider.js +78 -0
- package/bin/research/research-engine.js +115 -0
- package/bin/review/cross-review-engine.js +81 -0
- package/bin/review/finding-synthesizer.js +116 -0
- package/bin/review/review-report-writer.js +49 -0
- package/bin/updater/self-update.js +13 -13
- package/docs/adr/ADR-024-browser-localhost-only.md +17 -0
- package/docs/adr/ADR-025-visual-verify-failure-treatment.md +19 -0
- package/docs/adr/ADR-026-session-persistence-security.md +20 -0
- package/docs/architecture/README.md +4 -2
- package/docs/publishing-guide.md +78 -0
- package/docs/reference/commands.md +17 -2
- package/docs/reference/sdk-api.md +6 -1
- package/docs/user-guide.md +93 -9
- package/docs/usp-features.md +56 -8
- package/package.json +3 -2
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
# MindForge SDK API — Reference (
|
|
1
|
+
# MindForge SDK API — Reference (v2.0.0-alpha.4)
|
|
2
2
|
|
|
3
3
|
## Package
|
|
4
|
+
|
|
4
5
|
`@mindforge/sdk`
|
|
5
6
|
|
|
6
7
|
## Exports
|
|
8
|
+
|
|
7
9
|
From `sdk/src/index.ts`:
|
|
10
|
+
|
|
8
11
|
- `MindForgeClient`
|
|
9
12
|
- `MindForgeEventStream`
|
|
10
13
|
- `commands`
|
|
14
|
+
- `MindForgeMemory` (Day 11)
|
|
11
15
|
- Types: `MindForgeConfig`, `PhaseResult`, `TaskResult`, `SecurityFinding`,
|
|
12
16
|
`GateResult`, `HealthReport`, `HealthIssue`, `MindForgeEvent`, `CommandOptions`
|
|
13
17
|
- `VERSION`
|
|
14
18
|
|
|
15
19
|
## MindForgeClient
|
|
20
|
+
|
|
16
21
|
High-level API for reading local project state.
|
|
17
22
|
|
|
18
23
|
Methods:
|
package/docs/user-guide.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MindForge User Guide (
|
|
1
|
+
# MindForge User Guide (v2.0.0-alpha.4)
|
|
2
2
|
|
|
3
3
|
This guide gets you from install to productive, with the minimum needed to run
|
|
4
4
|
MindForge in a real project. It assumes Node.js 18+.
|
|
@@ -68,7 +68,91 @@ This generates `.planning/ARCHITECTURE.md` and an inferred conventions file.
|
|
|
68
68
|
/mindforge:ship 1
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
## 6.
|
|
71
|
+
## 6. Autonomous Execution (v2)
|
|
72
|
+
For complex phases that require no human intervention, use the autonomous engine.
|
|
73
|
+
|
|
74
|
+
### Start autonomous phase
|
|
75
|
+
```bash
|
|
76
|
+
/mindforge:auto --phase 1
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Steering mid-execution
|
|
80
|
+
If you need to guide the agent while it is running in another terminal:
|
|
81
|
+
```bash
|
|
82
|
+
/mindforge:steer "Focus on bug fixes in the auth module"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 7. Browser Runtime & Visual QA (v2)
|
|
88
|
+
MindForge can now control a persistent browser for visual verification and QA.
|
|
89
|
+
|
|
90
|
+
### Navigate and interact
|
|
91
|
+
```bash
|
|
92
|
+
/mindforge:browse --navigate https://example.com
|
|
93
|
+
/mindforge:browse --click "#login-btn"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Run visual QA
|
|
97
|
+
To scan for UI bugs and generate regression tests:
|
|
98
|
+
```bash
|
|
99
|
+
/mindforge:qa --diff
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 8. Multi-Model Intelligence (v2)
|
|
105
|
+
MindForge v2 can route tasks between Claude, GPT, and Gemini for the best balance of context, cost, and quality.
|
|
106
|
+
|
|
107
|
+
### Cross-Model Review
|
|
108
|
+
To get an adversarial review from multiple high-tier models:
|
|
109
|
+
```bash
|
|
110
|
+
/mindforge:cross-review
|
|
111
|
+
```
|
|
112
|
+
This will aggregate findings, detect consensus, and generate a `CROSS-REVIEW-[N].md` report.
|
|
113
|
+
|
|
114
|
+
### Deep Research
|
|
115
|
+
To leverage Gemini 1.5 Pro's huge context window for codebase-wide research:
|
|
116
|
+
```bash
|
|
117
|
+
/mindforge:research "How does the governance layer handle emergency overrides?"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Cost Tracking
|
|
121
|
+
Monitor your daily spend and model-specific usage:
|
|
122
|
+
```bash
|
|
123
|
+
/mindforge:costs --summary
|
|
124
|
+
```
|
|
125
|
+
MindForge will block further calls if `MODEL_COST_HARD_LIMIT_USD` is reached.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 9. Persistent Knowledge Graph (v2)
|
|
130
|
+
MindForge now has long-term memory. It captures architectural decisions, bug patterns, and team preferences, making them available across project sessions.
|
|
131
|
+
|
|
132
|
+
### Manual Memory entry
|
|
133
|
+
To explicitly record a project-wide preference:
|
|
134
|
+
```bash
|
|
135
|
+
/mindforge:remember --add "preference: Use direct imports for internal modules" --tags "#nodejs"
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Search and retrieval
|
|
139
|
+
To find related knowledge manually:
|
|
140
|
+
```bash
|
|
141
|
+
/mindforge:remember --search "Tailwind best practices"
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Global Promotion
|
|
145
|
+
To make a specific project insight available across ALL your MindForge projects on this machine:
|
|
146
|
+
```bash
|
|
147
|
+
/mindforge:remember --promote [ENTRY_ID]
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Automatic Loading
|
|
151
|
+
Relevant memories are automatically loaded at the start of every session, providing context about past decisions and patterns.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## 10. Update and migration
|
|
72
156
|
### Check for updates
|
|
73
157
|
```
|
|
74
158
|
/mindforge:update
|
|
@@ -84,7 +168,7 @@ This generates `.planning/ARCHITECTURE.md` and an inferred conventions file.
|
|
|
84
168
|
/mindforge:migrate --from v0.6.0 --to v1.0.0
|
|
85
169
|
```
|
|
86
170
|
|
|
87
|
-
##
|
|
171
|
+
## 11. Plugins
|
|
88
172
|
### List / validate
|
|
89
173
|
```
|
|
90
174
|
/mindforge:plugins list
|
|
@@ -96,7 +180,7 @@ This generates `.planning/ARCHITECTURE.md` and an inferred conventions file.
|
|
|
96
180
|
/mindforge:plugins install mindforge-plugin-<name>
|
|
97
181
|
```
|
|
98
182
|
|
|
99
|
-
##
|
|
183
|
+
## 12. Skills
|
|
100
184
|
```
|
|
101
185
|
/mindforge:skills list
|
|
102
186
|
/mindforge:skills validate
|
|
@@ -104,7 +188,7 @@ This generates `.planning/ARCHITECTURE.md` and an inferred conventions file.
|
|
|
104
188
|
|
|
105
189
|
To publish or install a skill, see `docs/skills-publishing-guide.md`.
|
|
106
190
|
|
|
107
|
-
##
|
|
191
|
+
## 13. Token usage profiling
|
|
108
192
|
```
|
|
109
193
|
/mindforge:tokens --profile
|
|
110
194
|
/mindforge:tokens --summary
|
|
@@ -113,7 +197,7 @@ To publish or install a skill, see `docs/skills-publishing-guide.md`.
|
|
|
113
197
|
Token optimization policies are defined in:
|
|
114
198
|
- `.mindforge/production/token-optimiser.md`
|
|
115
199
|
|
|
116
|
-
##
|
|
200
|
+
## 14. Configuration (MINDFORGE.md)
|
|
117
201
|
Key settings live in `MINDFORGE.md`. See:
|
|
118
202
|
- `docs/reference/config-reference.md`
|
|
119
203
|
|
|
@@ -123,18 +207,18 @@ Common settings:
|
|
|
123
207
|
- `TOKEN_WARN_THRESHOLD`, `TOKEN_LEAN_MODE`
|
|
124
208
|
- `MINDFORGE_AUTO_CHECK_UPDATES`
|
|
125
209
|
|
|
126
|
-
##
|
|
210
|
+
## 15. Troubleshooting
|
|
127
211
|
- Health issues: run `/mindforge:health --repair`
|
|
128
212
|
- Schema drift: run `/mindforge:migrate --dry-run` then apply
|
|
129
213
|
- Installer issues: re-run with `--force`
|
|
130
214
|
- CI mode: set `CI=true` and check `.mindforge/ci/` docs
|
|
131
215
|
|
|
132
|
-
##
|
|
216
|
+
## 16. Security
|
|
133
217
|
MindForge never stores credentials in files. See:
|
|
134
218
|
- `docs/security/SECURITY.md`
|
|
135
219
|
- `docs/security/threat-model.md`
|
|
136
220
|
|
|
137
|
-
##
|
|
221
|
+
## 17. Reference docs
|
|
138
222
|
- Commands: `docs/reference/commands.md`
|
|
139
223
|
- SDK: `docs/reference/sdk-api.md`
|
|
140
224
|
- Skills: `docs/reference/skills-api.md`
|
package/docs/usp-features.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# MindForge
|
|
1
|
+
# MindForge v2.0.0 — Unique Selling Points, Features, and Best Practices (v2.0.0-alpha.4)
|
|
2
2
|
|
|
3
|
-
This document summarizes what makes MindForge
|
|
4
|
-
are included in the
|
|
3
|
+
This document summarizes what makes MindForge v2.0.0 distinct, what features
|
|
4
|
+
are included in the latest alpha release, and how to use them effectively.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -31,6 +31,18 @@ are included in the first stable release, and how to use them effectively.
|
|
|
31
31
|
7. **Extensible with plugins and skills**
|
|
32
32
|
- Plugins add commands and skills without changing core files, keeping upgrades safe.
|
|
33
33
|
|
|
34
|
+
8. **Autonomous “Walk-Away” Execution (v2)**
|
|
35
|
+
- `/mindforge:auto` allows for full phase/milestone completion with intelligent stuck detection and node repair (RETRY → DECOMPOSE → ESCALATE).
|
|
36
|
+
|
|
37
|
+
9. **Persistent Visual QA (v2)**
|
|
38
|
+
- Headful/headless browser runtime with named session persistence and systematic visual diff verification.
|
|
39
|
+
|
|
40
|
+
10. **Multi-Model Intelligence Layer (v2)**
|
|
41
|
+
- Dynamic routing between Anthropic, OpenAI, and Gemini based on task persona and security tier. Adversarial code reviews ensure maximum coverage.
|
|
42
|
+
|
|
43
|
+
11. **Persistent Knowledge Graph (v2)**
|
|
44
|
+
- Captures and ranks engineering context (decisions, bug patterns, preferences) across project sessions using TF-IDF and confidence reinforcement.
|
|
45
|
+
|
|
34
46
|
---
|
|
35
47
|
|
|
36
48
|
## Feature Set (v1.0.0)
|
|
@@ -141,18 +153,54 @@ preserving scope (local vs global).
|
|
|
141
153
|
|
|
142
154
|
---
|
|
143
155
|
|
|
144
|
-
###
|
|
145
|
-
**What it does:**
|
|
156
|
+
### 11. Autonomous Execution (v2)
|
|
157
|
+
**What it does:** Enables handoff-free execution of complex phases and milestones.
|
|
146
158
|
|
|
147
159
|
**How to use:**
|
|
160
|
+
```bash
|
|
161
|
+
/mindforge:auto --phase 1
|
|
162
|
+
/mindforge:steer "Focus on security hardening next"
|
|
148
163
|
```
|
|
149
|
-
|
|
150
|
-
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### 12. Browser Runtime & Visual QA (v2)
|
|
168
|
+
**What it does:** Playwright-powered browser control with session persistence and automated UI bug detection.
|
|
169
|
+
|
|
170
|
+
**How to use:**
|
|
171
|
+
```bash
|
|
172
|
+
/mindforge:browse --navigate https://example.com
|
|
173
|
+
/mindforge:qa --diff
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### 13. Multi-Model Intelligence (v2)
|
|
179
|
+
**What it does:** Unified API client for Anthropic, OpenAI, and Gemini with persona-based routing and automated cost tracking.
|
|
180
|
+
|
|
181
|
+
**How to use:**
|
|
182
|
+
```bash
|
|
183
|
+
/mindforge:cross-review # Adversarial multi-model review
|
|
184
|
+
/mindforge:research "Deep search query" # 1M context research
|
|
185
|
+
/mindforge:costs # Usage and budget summary
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### 14. Persistent Knowledge Graph (v2)
|
|
191
|
+
**What it does:** Long-term memory system that ensures architectural decisions and bug patterns are never forgotten. Supports TF-IDF search, confidence scoring, and global promotion.
|
|
192
|
+
|
|
193
|
+
**How to use:**
|
|
194
|
+
```bash
|
|
195
|
+
/mindforge:remember --add "insight" # Manual capture
|
|
196
|
+
/mindforge:remember --search "query" # Manual retrieval
|
|
197
|
+
/mindforge:remember --promote [ID] # Promote to machine-wide global store
|
|
198
|
+
/mindforge:remember --stats # View memory health
|
|
151
199
|
```
|
|
152
200
|
|
|
153
201
|
---
|
|
154
202
|
|
|
155
|
-
###
|
|
203
|
+
### 15. SDK (TypeScript)
|
|
156
204
|
**What it does:** Programmatic access to health, audit log, event stream, and commands.
|
|
157
205
|
|
|
158
206
|
**How to use:**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindforge-cc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.4",
|
|
4
4
|
"description": "MindForge - Enterprise Agentic Framework for Claude Code and Antigravity",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mindforge-cc": "bin/install.js"
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"@eslint/js": "^9.0.0",
|
|
40
40
|
"@types/node": "^20.0.0",
|
|
41
41
|
"eslint": "^9.0.0",
|
|
42
|
-
"globals": "^15.0.0"
|
|
42
|
+
"globals": "^15.0.0",
|
|
43
|
+
"playwright": "^1.40.0"
|
|
43
44
|
},
|
|
44
45
|
"engines": {
|
|
45
46
|
"node": ">=18.0.0"
|