@maestrofrontier/frontier 1.4.5 → 1.5.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/.agents/plugins/marketplace.json +21 -21
- package/.codex-plugin/plugin.json +29 -29
- package/.cursorrules +197 -194
- package/AGENTS.md +3 -3
- package/README.md +368 -368
- package/bin/maestro.cjs +75 -75
- package/commands/compress.md +36 -36
- package/commands/frontier.md +124 -124
- package/commands/terse.md +23 -23
- package/docs/codex.md +167 -167
- package/docs/orchestration.md +168 -168
- package/frontier/cli.cjs +279 -252
- package/frontier/config.cjs +468 -468
- package/frontier/dispatch.cjs +267 -255
- package/frontier/judge.cjs +92 -92
- package/frontier/run.cjs +201 -180
- package/frontier/schema.cjs +112 -112
- package/frontier/semaphore.cjs +49 -49
- package/frontier/synthesize.cjs +79 -79
- package/hooks/frontier-autorun.cjs +127 -120
- package/hooks/hooks.json +103 -103
- package/hooks/maestro-doctrine-guard.cjs +81 -81
- package/hooks/maestro-gate-reminder.cjs +22 -7
- package/hooks/maestro-gate-telemetry.cjs +79 -77
- package/hooks/maestro-phase-scope.cjs +118 -118
- package/hooks/maestro-statusline-sync.cjs +152 -152
- package/hooks/maestro-subagent-guard.cjs +148 -148
- package/hooks/maestro-terse-mode.cjs +189 -189
- package/hooks/maestro-toolbudget-advisory.cjs +127 -127
- package/integrations/README.md +111 -111
- package/integrations/cline/skills/frontier/SKILL.md +75 -75
- package/integrations/codex/prompts/frontier.md +70 -70
- package/integrations/codex/prompts/update.md +39 -39
- package/integrations/codex/skills/maestro-frontier/SKILL.md +122 -122
- package/integrations/codex/skills/maestro-settings/SKILL.md +55 -55
- package/integrations/codex/skills/maestro-terse/SKILL.md +58 -58
- package/integrations/codex/skills/maestro-update/SKILL.md +31 -31
- package/integrations/cursor/commands/frontier.md +63 -63
- package/integrations/cursor/commands/update.md +34 -34
- package/integrations/gemini/commands/frontier.toml +76 -76
- package/integrations/windsurf/workflows/frontier.md +70 -70
- package/package.json +58 -58
- package/scripts/install.cjs +1014 -1014
- package/settings/cli.cjs +140 -140
- package/settings/config.cjs +309 -309
- package/skills/maestro-frontier/SKILL.md +122 -122
- package/skills/maestro-settings/SKILL.md +55 -55
- package/skills/maestro-terse/SKILL.md +58 -58
- package/skills/maestro-update/SKILL.md +31 -31
- package/skills/terse/SKILL.md +74 -74
package/integrations/README.md
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
# Maestro integrations — slash commands for other CLIs
|
|
2
|
-
|
|
3
|
-
The Claude Code plugin ships Maestro's slash commands (`/maestro:*`) plus
|
|
4
|
-
enforcement hooks and auto-run. Codex CLI/Desktop can install Maestro as a
|
|
5
|
-
native plugin from the repo marketplace; after the Maestro Codex plugin is
|
|
6
|
-
installed, enabled, and trusted, Frontier can auto-route normal Codex prompts
|
|
7
|
-
when you arm a project/workspace scope. Other agent CLIs mostly support
|
|
8
|
-
**custom slash commands** as prompt templates: they inject
|
|
9
|
-
instruction text, but do not run wrapper logic, gate tools, or auto-run every
|
|
10
|
-
prompt. Those ports are shortcuts around the portable `maestro frontier ...`
|
|
11
|
-
CLI, not plugin equivalents.
|
|
12
|
-
|
|
13
|
-
Portable integrations include `/frontier` and `/update`; Codex also installs
|
|
14
|
-
`maestro-frontier`, `maestro-settings`, `maestro-terse`, and `maestro-update`
|
|
15
|
-
skills. `/frontier` drives the portable engine (`maestro frontier ...`);
|
|
16
|
-
`/update` refreshes the install. `context-bar` is Claude Code-specific, while
|
|
17
|
-
settings and terse are available through Codex skills or the portable CLI. The
|
|
18
|
-
orchestration doctrine itself needs no command — it lives in `AGENTS.md` and
|
|
19
|
-
loads on demand.
|
|
20
|
-
|
|
21
|
-
## Placement
|
|
22
|
-
|
|
23
|
-
| Runtime | Source in this repo | Install to | Invoke |
|
|
24
|
-
|---|---|---|---|
|
|
25
|
-
| Cursor | `integrations/cursor/commands/frontier.md` | `.cursor/commands/frontier.md` (per-repo) or `~/.cursor/commands/` (global) | `/frontier` |
|
|
26
|
-
| Codex (CLI + Desktop) | `skills/maestro-frontier/SKILL.md` in the plugin; `integrations/codex/skills/` mirrors the same files for portable installs | bundled by the `maestro@maestro` Codex plugin; portable fallback copies to `.agents/skills/<name>/SKILL.md` | ask for the Maestro skill |
|
|
27
|
-
|
|
28
|
-
After adding a file, restart the tool or open a new chat so it loads.
|
|
29
|
-
|
|
30
|
-
Use an explicit `--scope` flag when the runtime cannot autodetect one. Codex
|
|
31
|
-
plugin contexts resolve a project/workspace scope automatically (`codex-<8hex>`),
|
|
32
|
-
which is the recommended default for repo installs. For manual Codex commands,
|
|
33
|
-
use `--scope codex-project` from the repo root to target that same active scope:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
maestro frontier status --scope codex-project
|
|
37
|
-
maestro frontier mode fusion --preset chatgpt-duo --scope codex-project
|
|
38
|
-
maestro frontier mode fusion --preset frontier-trio --judge chatgpt --synth chatgpt --scope codex-project
|
|
39
|
-
maestro frontier mode off --scope codex-project
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Global/user scope is optional and should be intentional. Cursor uses
|
|
43
|
-
`--scope cursor`, Cline uses `--scope cline`, Gemini uses `--scope gemini`, and
|
|
44
|
-
Windsurf/Devin use `--scope windsurf`.
|
|
45
|
-
|
|
46
|
-
## Updating portable installs
|
|
47
|
-
|
|
48
|
-
Portable installs have no plugin system. Update = refresh the copied files from
|
|
49
|
-
latest `main`.
|
|
50
|
-
|
|
51
|
-
**If you cloned the Maestro repo:**
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
git -C <path-to-maestro-clone> pull
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Then re-copy `frontier/` and the integration command files into your project.
|
|
58
|
-
|
|
59
|
-
**If you copied files manually** (no clone), re-download from latest `main` and
|
|
60
|
-
overwrite the copies in your project:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/AGENTS.md
|
|
64
|
-
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/frontier/cli.cjs
|
|
65
|
-
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/bin/maestro.cjs
|
|
66
|
-
# Also re-copy the integration command file(s) you installed.
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
A `/update` shortcut command ships for each runtime — install it once and future
|
|
70
|
-
updates are a single invocation:
|
|
71
|
-
|
|
72
|
-
| Runtime | Source in this repo | Install to | Invoke |
|
|
73
|
-
|---|---|---|---|
|
|
74
|
-
| Cursor | `integrations/cursor/commands/update.md` | `.cursor/commands/update.md` (per-repo) or `~/.cursor/commands/` (global) | `/update` |
|
|
75
|
-
| Codex (CLI + Desktop) | `integrations/codex/skills/maestro-update/SKILL.md` | `.agents/skills/maestro-update/SKILL.md` (project/workspace) or `~/.agents/skills/maestro-update/SKILL.md` (global/user) | ask for `maestro-update` |
|
|
76
|
-
|
|
77
|
-
**Version model:** Maestro pins no version for portable files. Fetching from
|
|
78
|
-
latest `main` always resolves the newest committed code — no manual version bump
|
|
79
|
-
needed per release.
|
|
80
|
-
|
|
81
|
-
## Caveats
|
|
82
|
-
|
|
83
|
-
- **Auto-run parity varies.** Claude Code and Codex can auto-route after a mode is
|
|
84
|
-
armed. Cursor, Gemini, Cline, and Windsurf/Devin command ports are manual
|
|
85
|
-
shortcuts unless those runtimes add an equivalent trusted hook surface. Use
|
|
86
|
-
`maestro frontier run "<prompt>" ...` there for one-off panels.
|
|
87
|
-
- **Codex uses plugin-bundled skills, not prompts.** Install the marketplace
|
|
88
|
-
once with `codex plugin marketplace add mbanderas/maestro`, then install
|
|
89
|
-
`maestro@maestro` with `codex plugin add maestro@maestro`. The portable
|
|
90
|
-
fallback `maestro install --target codex` still copies the
|
|
91
|
-
`maestro-frontier`, `maestro-terse`, `maestro-settings`, and
|
|
92
|
-
`maestro-update` skills to `.agents/skills/<name>/SKILL.md`
|
|
93
|
-
(project/workspace) or `~/.agents/skills/<name>/SKILL.md` (global/user).
|
|
94
|
-
Deprecated `~/.codex/prompts/*.md` prompt files remain compatibility bridges
|
|
95
|
-
only.
|
|
96
|
-
- **Codex per-repo skill path:** `.agents/skills/<name>/SKILL.md` is the
|
|
97
|
-
repo-scoped option for Codex skills. The global path is
|
|
98
|
-
`~/.agents/skills/<name>/SKILL.md`.
|
|
99
|
-
- **Maestro Frontier ON indicator (Codex only).** When
|
|
100
|
-
`maestro frontier status --scope codex-project` reports mode != off, the `maestro-frontier` skill
|
|
101
|
-
instructs Codex to lead its reply with `Maestro Frontier ON (<label>)` —
|
|
102
|
-
`single · <model>` or `fusion · <preset>`. When mode is off, no indicator line
|
|
103
|
-
appears. This is Codex-scoped only and has no effect on Claude Code.
|
|
104
|
-
- **Engine location.** Plugin installs run the bundled engine from the
|
|
105
|
-
installed plugin; portable/manual installs run `maestro frontier ...` (or
|
|
106
|
-
`node bin/maestro.cjs frontier ...`) from the repo root, so the engine must
|
|
107
|
-
have been copied in during install.
|
|
108
|
-
- **Windows + Gemini judge/synth.** `gemini` is fine as a panel member, but a poor
|
|
109
|
-
`--judge`/`--synth` on Windows (its arg-passing rejects the newline-bearing
|
|
110
|
-
judge/synth prompts, so the stage degrades). Use `opus` or `gpt-5.5` for
|
|
111
|
-
judge/synth on Windows.
|
|
1
|
+
# Maestro integrations — slash commands for other CLIs
|
|
2
|
+
|
|
3
|
+
The Claude Code plugin ships Maestro's slash commands (`/maestro:*`) plus
|
|
4
|
+
enforcement hooks and auto-run. Codex CLI/Desktop can install Maestro as a
|
|
5
|
+
native plugin from the repo marketplace; after the Maestro Codex plugin is
|
|
6
|
+
installed, enabled, and trusted, Frontier can auto-route normal Codex prompts
|
|
7
|
+
when you arm a project/workspace scope. Other agent CLIs mostly support
|
|
8
|
+
**custom slash commands** as prompt templates: they inject
|
|
9
|
+
instruction text, but do not run wrapper logic, gate tools, or auto-run every
|
|
10
|
+
prompt. Those ports are shortcuts around the portable `maestro frontier ...`
|
|
11
|
+
CLI, not plugin equivalents.
|
|
12
|
+
|
|
13
|
+
Portable integrations include `/frontier` and `/update`; Codex also installs
|
|
14
|
+
`maestro-frontier`, `maestro-settings`, `maestro-terse`, and `maestro-update`
|
|
15
|
+
skills. `/frontier` drives the portable engine (`maestro frontier ...`);
|
|
16
|
+
`/update` refreshes the install. `context-bar` is Claude Code-specific, while
|
|
17
|
+
settings and terse are available through Codex skills or the portable CLI. The
|
|
18
|
+
orchestration doctrine itself needs no command — it lives in `AGENTS.md` and
|
|
19
|
+
loads on demand.
|
|
20
|
+
|
|
21
|
+
## Placement
|
|
22
|
+
|
|
23
|
+
| Runtime | Source in this repo | Install to | Invoke |
|
|
24
|
+
|---|---|---|---|
|
|
25
|
+
| Cursor | `integrations/cursor/commands/frontier.md` | `.cursor/commands/frontier.md` (per-repo) or `~/.cursor/commands/` (global) | `/frontier` |
|
|
26
|
+
| Codex (CLI + Desktop) | `skills/maestro-frontier/SKILL.md` in the plugin; `integrations/codex/skills/` mirrors the same files for portable installs | bundled by the `maestro@maestro` Codex plugin; portable fallback copies to `.agents/skills/<name>/SKILL.md` | ask for the Maestro skill |
|
|
27
|
+
|
|
28
|
+
After adding a file, restart the tool or open a new chat so it loads.
|
|
29
|
+
|
|
30
|
+
Use an explicit `--scope` flag when the runtime cannot autodetect one. Codex
|
|
31
|
+
plugin contexts resolve a project/workspace scope automatically (`codex-<8hex>`),
|
|
32
|
+
which is the recommended default for repo installs. For manual Codex commands,
|
|
33
|
+
use `--scope codex-project` from the repo root to target that same active scope:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
maestro frontier status --scope codex-project
|
|
37
|
+
maestro frontier mode fusion --preset chatgpt-duo --scope codex-project
|
|
38
|
+
maestro frontier mode fusion --preset frontier-trio --judge chatgpt --synth chatgpt --scope codex-project
|
|
39
|
+
maestro frontier mode off --scope codex-project
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Global/user scope is optional and should be intentional. Cursor uses
|
|
43
|
+
`--scope cursor`, Cline uses `--scope cline`, Gemini uses `--scope gemini`, and
|
|
44
|
+
Windsurf/Devin use `--scope windsurf`.
|
|
45
|
+
|
|
46
|
+
## Updating portable installs
|
|
47
|
+
|
|
48
|
+
Portable installs have no plugin system. Update = refresh the copied files from
|
|
49
|
+
latest `main`.
|
|
50
|
+
|
|
51
|
+
**If you cloned the Maestro repo:**
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git -C <path-to-maestro-clone> pull
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Then re-copy `frontier/` and the integration command files into your project.
|
|
58
|
+
|
|
59
|
+
**If you copied files manually** (no clone), re-download from latest `main` and
|
|
60
|
+
overwrite the copies in your project:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/AGENTS.md
|
|
64
|
+
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/frontier/cli.cjs
|
|
65
|
+
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/bin/maestro.cjs
|
|
66
|
+
# Also re-copy the integration command file(s) you installed.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
A `/update` shortcut command ships for each runtime — install it once and future
|
|
70
|
+
updates are a single invocation:
|
|
71
|
+
|
|
72
|
+
| Runtime | Source in this repo | Install to | Invoke |
|
|
73
|
+
|---|---|---|---|
|
|
74
|
+
| Cursor | `integrations/cursor/commands/update.md` | `.cursor/commands/update.md` (per-repo) or `~/.cursor/commands/` (global) | `/update` |
|
|
75
|
+
| Codex (CLI + Desktop) | `integrations/codex/skills/maestro-update/SKILL.md` | `.agents/skills/maestro-update/SKILL.md` (project/workspace) or `~/.agents/skills/maestro-update/SKILL.md` (global/user) | ask for `maestro-update` |
|
|
76
|
+
|
|
77
|
+
**Version model:** Maestro pins no version for portable files. Fetching from
|
|
78
|
+
latest `main` always resolves the newest committed code — no manual version bump
|
|
79
|
+
needed per release.
|
|
80
|
+
|
|
81
|
+
## Caveats
|
|
82
|
+
|
|
83
|
+
- **Auto-run parity varies.** Claude Code and Codex can auto-route after a mode is
|
|
84
|
+
armed. Cursor, Gemini, Cline, and Windsurf/Devin command ports are manual
|
|
85
|
+
shortcuts unless those runtimes add an equivalent trusted hook surface. Use
|
|
86
|
+
`maestro frontier run "<prompt>" ...` there for one-off panels.
|
|
87
|
+
- **Codex uses plugin-bundled skills, not prompts.** Install the marketplace
|
|
88
|
+
once with `codex plugin marketplace add mbanderas/maestro`, then install
|
|
89
|
+
`maestro@maestro` with `codex plugin add maestro@maestro`. The portable
|
|
90
|
+
fallback `maestro install --target codex` still copies the
|
|
91
|
+
`maestro-frontier`, `maestro-terse`, `maestro-settings`, and
|
|
92
|
+
`maestro-update` skills to `.agents/skills/<name>/SKILL.md`
|
|
93
|
+
(project/workspace) or `~/.agents/skills/<name>/SKILL.md` (global/user).
|
|
94
|
+
Deprecated `~/.codex/prompts/*.md` prompt files remain compatibility bridges
|
|
95
|
+
only.
|
|
96
|
+
- **Codex per-repo skill path:** `.agents/skills/<name>/SKILL.md` is the
|
|
97
|
+
repo-scoped option for Codex skills. The global path is
|
|
98
|
+
`~/.agents/skills/<name>/SKILL.md`.
|
|
99
|
+
- **Maestro Frontier ON indicator (Codex only).** When
|
|
100
|
+
`maestro frontier status --scope codex-project` reports mode != off, the `maestro-frontier` skill
|
|
101
|
+
instructs Codex to lead its reply with `Maestro Frontier ON (<label>)` —
|
|
102
|
+
`single · <model>` or `fusion · <preset>`. When mode is off, no indicator line
|
|
103
|
+
appears. This is Codex-scoped only and has no effect on Claude Code.
|
|
104
|
+
- **Engine location.** Plugin installs run the bundled engine from the
|
|
105
|
+
installed plugin; portable/manual installs run `maestro frontier ...` (or
|
|
106
|
+
`node bin/maestro.cjs frontier ...`) from the repo root, so the engine must
|
|
107
|
+
have been copied in during install.
|
|
108
|
+
- **Windows + Gemini judge/synth.** `gemini` is fine as a panel member, but a poor
|
|
109
|
+
`--judge`/`--synth` on Windows (its arg-passing rejects the newline-bearing
|
|
110
|
+
judge/synth prompts, so the stage degrades). Use `opus` or `gpt-5.5` for
|
|
111
|
+
judge/synth on Windows.
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: frontier
|
|
3
|
-
description: Maestro Frontier local multi-CLI fusion engine — switch mode, or run a prompt through the panel
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Drive the **Maestro Frontier** engine — a zero-dependency local multi-CLI fusion
|
|
7
|
-
engine (a parallel panel of local CLIs → a judge model's analysis → a grounded
|
|
8
|
-
synthesis). It is the same engine the Claude Code plugin ships; here it runs
|
|
9
|
-
through the `maestro` CLI with `--scope cline`.
|
|
10
|
-
|
|
11
|
-
**Install path (pick one):**
|
|
12
|
-
|
|
13
|
-
- Project-scoped: `.cline/skills/frontier/SKILL.md`
|
|
14
|
-
- Global: `~/.cline/skills/frontier/SKILL.md`
|
|
15
|
-
|
|
16
|
-
**This is a typing shortcut, not the Claude Code plugin.** Cline has no prompt
|
|
17
|
-
hook, so arming a mode does **not** auto-run the engine on later prompts — it
|
|
18
|
-
only persists the mode. To actually fuse a prompt, invoke `run` explicitly
|
|
19
|
-
(step 3).
|
|
20
|
-
|
|
21
|
-
When the user invokes this skill, map their request to one engine CLI call and
|
|
22
|
-
run it in the terminal (Cline will request approval before executing). Do not
|
|
23
|
-
edit the engine's state file by hand.
|
|
24
|
-
|
|
25
|
-
## 1. Switch mode
|
|
26
|
-
|
|
27
|
-
Persists to `~/.config/maestro/frontier-state.cline.json`; default `off`.
|
|
28
|
-
`--scope cline` keeps Cline's armed mode independent from Claude Code, Codex,
|
|
29
|
-
Cursor, and Gemini on the same machine:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
maestro frontier mode off --scope cline
|
|
33
|
-
maestro frontier mode single --model <model> --scope cline
|
|
34
|
-
maestro frontier mode fusion --preset <preset> --scope cline
|
|
35
|
-
maestro frontier mode fusion --preset custom --models <a,b,c> --scope cline
|
|
36
|
-
maestro frontier mode fusion --preset <preset> --judge <model> --synth <model> --scope cline
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Models: `opus` (Claude Opus 4.8, needs `claude`), `gpt-5.5` (needs `codex`),
|
|
40
|
-
`gemini` (needs `gemini`). Presets: `opus-duo`, `opus-gpt`, `gpt-duo`,
|
|
41
|
-
`frontier-trio`, `custom`. Judge + synth default to Opus; `--judge`/`--synth`
|
|
42
|
-
override for any preset (e.g. `--judge opus --synth gpt-5.5`). `gpt-duo` runs
|
|
43
|
-
judge + synth on GPT-5.5 — a Codex-only fusion that needs no `claude`.
|
|
44
|
-
|
|
45
|
-
## 2. Show current mode/preset
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
maestro frontier status --scope cline
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## 3. Run a prompt through the current mode
|
|
52
|
-
|
|
53
|
-
This is the action that actually fuses, since nothing auto-runs here. Set a
|
|
54
|
-
mode first (step 1), then:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
maestro frontier run "<prompt>" --scope cline
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
- `off`: prints a notice, spawns nothing.
|
|
61
|
-
- `single`: dispatches the one selected CLI, prints its answer.
|
|
62
|
-
- `fusion`: runs the panel in parallel → judge → synthesizer; prints the final
|
|
63
|
-
answer (a one-line run meta goes to stderr). Report stdout verbatim.
|
|
64
|
-
|
|
65
|
-
On error the engine prints `ERROR [<reason>]: <detail>` to stderr and exits
|
|
66
|
-
non-zero — relay the reason.
|
|
67
|
-
|
|
68
|
-
## Notes
|
|
69
|
-
|
|
70
|
-
- Real `single`/`fusion` runs spawn local CLIs and cost tokens; use small prompts.
|
|
71
|
-
`off` is free.
|
|
72
|
-
- Each model's CLI must be on `PATH`, or point at a specific build with
|
|
73
|
-
`MAESTRO_CLAUDE_BIN` / `MAESTRO_CODEX_BIN` / `MAESTRO_GEMINI_BIN`.
|
|
74
|
-
- Requires `maestro` on `PATH` (installed during Maestro setup). If it is missing,
|
|
75
|
-
install Maestro first.
|
|
1
|
+
---
|
|
2
|
+
name: frontier
|
|
3
|
+
description: Maestro Frontier local multi-CLI fusion engine — switch mode, or run a prompt through the panel
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Drive the **Maestro Frontier** engine — a zero-dependency local multi-CLI fusion
|
|
7
|
+
engine (a parallel panel of local CLIs → a judge model's analysis → a grounded
|
|
8
|
+
synthesis). It is the same engine the Claude Code plugin ships; here it runs
|
|
9
|
+
through the `maestro` CLI with `--scope cline`.
|
|
10
|
+
|
|
11
|
+
**Install path (pick one):**
|
|
12
|
+
|
|
13
|
+
- Project-scoped: `.cline/skills/frontier/SKILL.md`
|
|
14
|
+
- Global: `~/.cline/skills/frontier/SKILL.md`
|
|
15
|
+
|
|
16
|
+
**This is a typing shortcut, not the Claude Code plugin.** Cline has no prompt
|
|
17
|
+
hook, so arming a mode does **not** auto-run the engine on later prompts — it
|
|
18
|
+
only persists the mode. To actually fuse a prompt, invoke `run` explicitly
|
|
19
|
+
(step 3).
|
|
20
|
+
|
|
21
|
+
When the user invokes this skill, map their request to one engine CLI call and
|
|
22
|
+
run it in the terminal (Cline will request approval before executing). Do not
|
|
23
|
+
edit the engine's state file by hand.
|
|
24
|
+
|
|
25
|
+
## 1. Switch mode
|
|
26
|
+
|
|
27
|
+
Persists to `~/.config/maestro/frontier-state.cline.json`; default `off`.
|
|
28
|
+
`--scope cline` keeps Cline's armed mode independent from Claude Code, Codex,
|
|
29
|
+
Cursor, and Gemini on the same machine:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
maestro frontier mode off --scope cline
|
|
33
|
+
maestro frontier mode single --model <model> --scope cline
|
|
34
|
+
maestro frontier mode fusion --preset <preset> --scope cline
|
|
35
|
+
maestro frontier mode fusion --preset custom --models <a,b,c> --scope cline
|
|
36
|
+
maestro frontier mode fusion --preset <preset> --judge <model> --synth <model> --scope cline
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Models: `opus` (Claude Opus 4.8, needs `claude`), `gpt-5.5` (needs `codex`),
|
|
40
|
+
`gemini` (needs `gemini`). Presets: `opus-duo`, `opus-gpt`, `gpt-duo`,
|
|
41
|
+
`frontier-trio`, `custom`. Judge + synth default to Opus; `--judge`/`--synth`
|
|
42
|
+
override for any preset (e.g. `--judge opus --synth gpt-5.5`). `gpt-duo` runs
|
|
43
|
+
judge + synth on GPT-5.5 — a Codex-only fusion that needs no `claude`.
|
|
44
|
+
|
|
45
|
+
## 2. Show current mode/preset
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
maestro frontier status --scope cline
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## 3. Run a prompt through the current mode
|
|
52
|
+
|
|
53
|
+
This is the action that actually fuses, since nothing auto-runs here. Set a
|
|
54
|
+
mode first (step 1), then:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
maestro frontier run "<prompt>" --scope cline
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
- `off`: prints a notice, spawns nothing.
|
|
61
|
+
- `single`: dispatches the one selected CLI, prints its answer.
|
|
62
|
+
- `fusion`: runs the panel in parallel → judge → synthesizer; prints the final
|
|
63
|
+
answer (a one-line run meta goes to stderr). Report stdout verbatim.
|
|
64
|
+
|
|
65
|
+
On error the engine prints `ERROR [<reason>]: <detail>` to stderr and exits
|
|
66
|
+
non-zero — relay the reason.
|
|
67
|
+
|
|
68
|
+
## Notes
|
|
69
|
+
|
|
70
|
+
- Real `single`/`fusion` runs spawn local CLIs and cost tokens; use small prompts.
|
|
71
|
+
`off` is free.
|
|
72
|
+
- Each model's CLI must be on `PATH`, or point at a specific build with
|
|
73
|
+
`MAESTRO_CLAUDE_BIN` / `MAESTRO_CODEX_BIN` / `MAESTRO_GEMINI_BIN`.
|
|
74
|
+
- Requires `maestro` on `PATH` (installed during Maestro setup). If it is missing,
|
|
75
|
+
install Maestro first.
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Maestro Frontier local multi-CLI fusion engine — arm, disarm, inspect, or debug-run the panel
|
|
3
|
-
argument-hint: "<off | single <model> | fusion <preset> | status | run <prompt>>"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Drive the **Maestro Frontier** engine — a zero-dependency local multi-CLI fusion
|
|
7
|
-
engine (a parallel panel of local CLIs → a judge model's analysis → a grounded
|
|
8
|
-
synthesis). It is the same engine the Claude Code plugin ships; here it runs
|
|
9
|
-
through the `maestro` CLI, installed into this repo during setup.
|
|
10
|
-
|
|
11
|
-
When the Maestro Codex plugin hook is installed, enabled, and trusted, arming a
|
|
12
|
-
non-`off` mode makes ordinary later Codex prompts auto-run through Frontier
|
|
13
|
-
until disabled. Manual `run` remains available for advanced/debug one-offs.
|
|
14
|
-
|
|
15
|
-
Requested action: `$ARGUMENTS`
|
|
16
|
-
|
|
17
|
-
Map it to one engine CLI call and run it from the repo root. Do not edit
|
|
18
|
-
the engine's state file by hand.
|
|
19
|
-
|
|
20
|
-
1. Switch mode. Project/workspace scope is the default recommendation. Run from
|
|
21
|
-
the repo root with `--scope codex-project`; the CLI expands it to the same
|
|
22
|
-
`codex-<8hex>` scope the trusted Codex hook uses:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
maestro frontier mode off --scope codex-project
|
|
26
|
-
maestro frontier mode single --model <model> --scope codex-project
|
|
27
|
-
maestro frontier mode fusion --preset chatgpt-duo --scope codex-project
|
|
28
|
-
maestro frontier mode fusion --preset frontier-trio --judge chatgpt --synth chatgpt --scope codex-project
|
|
29
|
-
maestro frontier mode fusion --preset custom --models <a,b,c> --scope codex-project
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Models: `opus` (Claude Opus 4.8, needs `claude`), `gpt-5.5` (needs `codex`),
|
|
33
|
-
`gemini` (needs `gemini`). Presets: `opus-duo`, `opus-gpt`, `gpt-duo`,
|
|
34
|
-
`frontier-trio`, `custom`. Judge + synth default to Opus; `--judge`/`--synth`
|
|
35
|
-
override for any preset (e.g. `--judge opus --synth gpt-5.5`). `gpt-duo` runs
|
|
36
|
-
judge + synth on GPT-5.5 — a Codex-only fusion that needs no `claude`.
|
|
37
|
-
Friendly aliases are accepted: `chatgpt` -> `gpt-5.5`, and `chatgpt-duo` ->
|
|
38
|
-
`gpt-duo`.
|
|
39
|
-
|
|
40
|
-
2. Show the current mode/preset:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
maestro frontier status --scope codex-project
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
3. Normal use after arming: type ordinary Codex prompts. The trusted hook
|
|
47
|
-
auto-runs Frontier and injects the synthesized answer as context.
|
|
48
|
-
|
|
49
|
-
4. Advanced/debug one-off run:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
maestro frontier run "<prompt>" --scope codex-project
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
- `off`: prints a notice, spawns nothing.
|
|
56
|
-
- `single`: dispatches the one selected CLI, prints its answer.
|
|
57
|
-
- `fusion`: runs the panel in parallel → judge → synthesizer; prints the final
|
|
58
|
-
answer (a one-line run meta goes to stderr). Report stdout verbatim.
|
|
59
|
-
|
|
60
|
-
On error the engine prints `ERROR [<reason>]: <detail>` to stderr and exits
|
|
61
|
-
non-zero — relay the reason.
|
|
62
|
-
|
|
63
|
-
Notes:
|
|
64
|
-
|
|
65
|
-
- Real `single`/`fusion` runs spawn local CLIs and cost tokens; use small prompts.
|
|
66
|
-
`off` is free.
|
|
67
|
-
- Each model's CLI must be on `PATH`, or point at a specific build with
|
|
68
|
-
`MAESTRO_CLAUDE_BIN` / `MAESTRO_CODEX_BIN` / `MAESTRO_GEMINI_BIN`.
|
|
69
|
-
- Requires `maestro` on `PATH` (installed during Maestro setup). If it is missing,
|
|
70
|
-
install Maestro first.
|
|
1
|
+
---
|
|
2
|
+
description: Maestro Frontier local multi-CLI fusion engine — arm, disarm, inspect, or debug-run the panel
|
|
3
|
+
argument-hint: "<off | single <model> | fusion <preset> | status | run <prompt>>"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Drive the **Maestro Frontier** engine — a zero-dependency local multi-CLI fusion
|
|
7
|
+
engine (a parallel panel of local CLIs → a judge model's analysis → a grounded
|
|
8
|
+
synthesis). It is the same engine the Claude Code plugin ships; here it runs
|
|
9
|
+
through the `maestro` CLI, installed into this repo during setup.
|
|
10
|
+
|
|
11
|
+
When the Maestro Codex plugin hook is installed, enabled, and trusted, arming a
|
|
12
|
+
non-`off` mode makes ordinary later Codex prompts auto-run through Frontier
|
|
13
|
+
until disabled. Manual `run` remains available for advanced/debug one-offs.
|
|
14
|
+
|
|
15
|
+
Requested action: `$ARGUMENTS`
|
|
16
|
+
|
|
17
|
+
Map it to one engine CLI call and run it from the repo root. Do not edit
|
|
18
|
+
the engine's state file by hand.
|
|
19
|
+
|
|
20
|
+
1. Switch mode. Project/workspace scope is the default recommendation. Run from
|
|
21
|
+
the repo root with `--scope codex-project`; the CLI expands it to the same
|
|
22
|
+
`codex-<8hex>` scope the trusted Codex hook uses:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
maestro frontier mode off --scope codex-project
|
|
26
|
+
maestro frontier mode single --model <model> --scope codex-project
|
|
27
|
+
maestro frontier mode fusion --preset chatgpt-duo --scope codex-project
|
|
28
|
+
maestro frontier mode fusion --preset frontier-trio --judge chatgpt --synth chatgpt --scope codex-project
|
|
29
|
+
maestro frontier mode fusion --preset custom --models <a,b,c> --scope codex-project
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Models: `opus` (Claude Opus 4.8, needs `claude`), `gpt-5.5` (needs `codex`),
|
|
33
|
+
`gemini` (needs `gemini`). Presets: `opus-duo`, `opus-gpt`, `gpt-duo`,
|
|
34
|
+
`frontier-trio`, `custom`. Judge + synth default to Opus; `--judge`/`--synth`
|
|
35
|
+
override for any preset (e.g. `--judge opus --synth gpt-5.5`). `gpt-duo` runs
|
|
36
|
+
judge + synth on GPT-5.5 — a Codex-only fusion that needs no `claude`.
|
|
37
|
+
Friendly aliases are accepted: `chatgpt` -> `gpt-5.5`, and `chatgpt-duo` ->
|
|
38
|
+
`gpt-duo`.
|
|
39
|
+
|
|
40
|
+
2. Show the current mode/preset:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
maestro frontier status --scope codex-project
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
3. Normal use after arming: type ordinary Codex prompts. The trusted hook
|
|
47
|
+
auto-runs Frontier and injects the synthesized answer as context.
|
|
48
|
+
|
|
49
|
+
4. Advanced/debug one-off run:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
maestro frontier run "<prompt>" --scope codex-project
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- `off`: prints a notice, spawns nothing.
|
|
56
|
+
- `single`: dispatches the one selected CLI, prints its answer.
|
|
57
|
+
- `fusion`: runs the panel in parallel → judge → synthesizer; prints the final
|
|
58
|
+
answer (a one-line run meta goes to stderr). Report stdout verbatim.
|
|
59
|
+
|
|
60
|
+
On error the engine prints `ERROR [<reason>]: <detail>` to stderr and exits
|
|
61
|
+
non-zero — relay the reason.
|
|
62
|
+
|
|
63
|
+
Notes:
|
|
64
|
+
|
|
65
|
+
- Real `single`/`fusion` runs spawn local CLIs and cost tokens; use small prompts.
|
|
66
|
+
`off` is free.
|
|
67
|
+
- Each model's CLI must be on `PATH`, or point at a specific build with
|
|
68
|
+
`MAESTRO_CLAUDE_BIN` / `MAESTRO_CODEX_BIN` / `MAESTRO_GEMINI_BIN`.
|
|
69
|
+
- Requires `maestro` on `PATH` (installed during Maestro setup). If it is missing,
|
|
70
|
+
install Maestro first.
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Update Maestro portable files to the latest committed code
|
|
3
|
-
argument-hint: ""
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Refresh the Maestro portable install in this repository to the latest committed
|
|
7
|
-
code from <https://github.com/mbanderas/maestro>.
|
|
8
|
-
|
|
9
|
-
Maestro has no version pin for portable installs — fetching the latest `main`
|
|
10
|
-
always resolves the newest committed code.
|
|
11
|
-
|
|
12
|
-
**If this repo contains a git clone of the Maestro source**, run:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
git -C <path-to-maestro-clone> pull
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Then re-copy `frontier/` and any integration command files you use into this project.
|
|
19
|
-
|
|
20
|
-
**If you downloaded and copied files manually** (no clone), re-fetch and re-copy
|
|
21
|
-
from latest `main`:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/AGENTS.md
|
|
25
|
-
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/frontier/cli.cjs
|
|
26
|
-
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/bin/maestro.cjs
|
|
27
|
-
# Re-copy any integration command files you installed:
|
|
28
|
-
# integrations/codex/prompts/frontier.md -> ~/.codex/prompts/frontier.md
|
|
29
|
-
# integrations/codex/prompts/update.md -> ~/.codex/prompts/update.md
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
After updating, run `node bin/maestro.cjs frontier status` to confirm the engine is present.
|
|
33
|
-
For Codex skills, managed Maestro copies refresh automatically, user-edited
|
|
34
|
-
copies are preserved with next-step output, and older exact unprefixed Maestro
|
|
35
|
-
skills may be migrated to compatibility shims.
|
|
36
|
-
|
|
37
|
-
Report what was refreshed and note any errors.
|
|
38
|
-
|
|
39
|
-
Do not edit any other files.
|
|
1
|
+
---
|
|
2
|
+
description: Update Maestro portable files to the latest committed code
|
|
3
|
+
argument-hint: ""
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Refresh the Maestro portable install in this repository to the latest committed
|
|
7
|
+
code from <https://github.com/mbanderas/maestro>.
|
|
8
|
+
|
|
9
|
+
Maestro has no version pin for portable installs — fetching the latest `main`
|
|
10
|
+
always resolves the newest committed code.
|
|
11
|
+
|
|
12
|
+
**If this repo contains a git clone of the Maestro source**, run:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
git -C <path-to-maestro-clone> pull
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Then re-copy `frontier/` and any integration command files you use into this project.
|
|
19
|
+
|
|
20
|
+
**If you downloaded and copied files manually** (no clone), re-fetch and re-copy
|
|
21
|
+
from latest `main`:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/AGENTS.md
|
|
25
|
+
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/frontier/cli.cjs
|
|
26
|
+
curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/bin/maestro.cjs
|
|
27
|
+
# Re-copy any integration command files you installed:
|
|
28
|
+
# integrations/codex/prompts/frontier.md -> ~/.codex/prompts/frontier.md
|
|
29
|
+
# integrations/codex/prompts/update.md -> ~/.codex/prompts/update.md
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
After updating, run `node bin/maestro.cjs frontier status` to confirm the engine is present.
|
|
33
|
+
For Codex skills, managed Maestro copies refresh automatically, user-edited
|
|
34
|
+
copies are preserved with next-step output, and older exact unprefixed Maestro
|
|
35
|
+
skills may be migrated to compatibility shims.
|
|
36
|
+
|
|
37
|
+
Report what was refreshed and note any errors.
|
|
38
|
+
|
|
39
|
+
Do not edit any other files.
|