@maestrofrontier/frontier 1.4.4 → 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.
Files changed (53) hide show
  1. package/.agents/plugins/marketplace.json +21 -0
  2. package/.codex-plugin/plugin.json +29 -0
  3. package/.cursorrules +197 -194
  4. package/AGENTS.md +214 -214
  5. package/CLAUDE.md +29 -29
  6. package/README.md +368 -278
  7. package/bin/maestro.cjs +75 -75
  8. package/commands/compress.md +36 -36
  9. package/commands/frontier.md +124 -124
  10. package/commands/terse.md +23 -23
  11. package/docs/codex.md +167 -98
  12. package/docs/orchestration.md +168 -168
  13. package/frontier/cli.cjs +279 -248
  14. package/frontier/config.cjs +468 -441
  15. package/frontier/dispatch.cjs +267 -255
  16. package/frontier/judge.cjs +92 -92
  17. package/frontier/run.cjs +201 -148
  18. package/frontier/schema.cjs +112 -112
  19. package/frontier/semaphore.cjs +49 -49
  20. package/frontier/synthesize.cjs +79 -79
  21. package/hooks/frontier-autorun.cjs +127 -124
  22. package/hooks/hooks.json +103 -103
  23. package/hooks/maestro-doctrine-guard.cjs +81 -81
  24. package/hooks/maestro-gate-reminder.cjs +22 -7
  25. package/hooks/maestro-gate-telemetry.cjs +79 -77
  26. package/hooks/maestro-phase-scope.cjs +118 -118
  27. package/hooks/maestro-statusline-sync.cjs +152 -152
  28. package/hooks/maestro-subagent-guard.cjs +148 -148
  29. package/hooks/maestro-terse-mode.cjs +189 -189
  30. package/hooks/maestro-toolbudget-advisory.cjs +127 -127
  31. package/integrations/README.md +111 -94
  32. package/integrations/cline/skills/frontier/SKILL.md +75 -75
  33. package/integrations/codex/prompts/frontier.md +70 -66
  34. package/integrations/codex/prompts/update.md +39 -36
  35. package/integrations/codex/skills/maestro-frontier/SKILL.md +122 -0
  36. package/integrations/codex/skills/{settings → maestro-settings}/SKILL.md +55 -46
  37. package/integrations/codex/skills/{terse → maestro-terse}/SKILL.md +58 -49
  38. package/integrations/codex/skills/maestro-update/SKILL.md +31 -0
  39. package/integrations/cursor/commands/frontier.md +63 -63
  40. package/integrations/cursor/commands/update.md +34 -34
  41. package/integrations/gemini/commands/frontier.toml +76 -76
  42. package/integrations/windsurf/workflows/frontier.md +70 -70
  43. package/package.json +58 -55
  44. package/scripts/install.cjs +1014 -605
  45. package/settings/cli.cjs +140 -140
  46. package/settings/config.cjs +309 -309
  47. package/skills/maestro-frontier/SKILL.md +122 -0
  48. package/skills/maestro-settings/SKILL.md +55 -0
  49. package/skills/maestro-terse/SKILL.md +58 -0
  50. package/skills/maestro-update/SKILL.md +31 -0
  51. package/skills/terse/SKILL.md +74 -0
  52. package/integrations/codex/skills/frontier/SKILL.md +0 -91
  53. package/integrations/codex/skills/update/SKILL.md +0 -29
@@ -1,94 +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. Other agent CLIs support **custom slash commands**
5
- too, but only as *prompt templates* they inject instruction text, they do not run
6
- wrapper logic, gate tools, or auto-run on every prompt. So these ports are typing
7
- shortcuts that tell the agent to shell out to the portable Frontier engine via
8
- `maestro frontier ...`; they are **not** a plugin equivalent.
9
-
10
- Only `/frontier` and `/update` are ported. `/frontier` drives the portable engine
11
- (`maestro frontier ...`); `/update` refreshes the install (git pull or re-download +
12
- re-copy `frontier/`, `bin/maestro.cjs`, and the command files). `terse`,
13
- `context-bar`, and `settings` depend on Claude Code hooks/status line and would only
14
- inject text elsewhere; `compress` operates on memory files and is partly portable.
15
- The orchestration doctrine itself needs no command it lives in `AGENTS.md` and
16
- loads on demand.
17
-
18
- ## Placement
19
-
20
- | Runtime | Source in this repo | Install to | Invoke |
21
- |---|---|---|---|
22
- | Cursor | `integrations/cursor/commands/frontier.md` | `.cursor/commands/frontier.md` (per-repo) or `~/.cursor/commands/` (global) | `/frontier` |
23
- | Codex (CLI + IDE/Desktop) | `integrations/codex/skills/frontier/SKILL.md` (and `terse`, `settings`, `update`) | `.agents/skills/<name>/SKILL.md` (per-repo) or `~/.agents/skills/<name>/SKILL.md` (global) | `/frontier` |
24
-
25
- After adding a file, restart the tool or open a new chat so it loads. Both runtimes
26
- expand `$ARGUMENTS` to the full argument string `/frontier fusion opus-gpt` passes
27
- `fusion opus-gpt`.
28
-
29
- Each runtime passes an explicit `--scope` flag so armed state is per-CLI and never
30
- leaks across runtimes on the same machine: Codex uses `--scope codex`, Cursor uses
31
- `--scope cursor`. Claude Code autodetects its scope and needs no flag. If you add a
32
- Gemini or Antigravity integration, pass `--scope gemini`.
33
-
34
- ## Updating portable installs
35
-
36
- Portable installs have no plugin system. Update = refresh the copied files from
37
- latest `main`.
38
-
39
- **If you cloned the Maestro repo:**
40
-
41
- ```bash
42
- git -C <path-to-maestro-clone> pull
43
- ```
44
-
45
- Then re-copy `frontier/` and the integration command files into your project.
46
-
47
- **If you copied files manually** (no clone), re-download from latest `main` and
48
- overwrite the copies in your project:
49
-
50
- ```bash
51
- curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/AGENTS.md
52
- curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/frontier/cli.cjs
53
- curl -O https://raw.githubusercontent.com/mbanderas/maestro/main/bin/maestro.cjs
54
- # Also re-copy the integration command file(s) you installed.
55
- ```
56
-
57
- A `/update` shortcut command ships for each runtime install it once and future
58
- updates are a single invocation:
59
-
60
- | Runtime | Source in this repo | Install to | Invoke |
61
- |---|---|---|---|
62
- | Cursor | `integrations/cursor/commands/update.md` | `.cursor/commands/update.md` (per-repo) or `~/.cursor/commands/` (global) | `/update` |
63
- | Codex (CLI + IDE/Desktop) | `integrations/codex/skills/update/SKILL.md` | `.agents/skills/update/SKILL.md` (per-repo) or `~/.agents/skills/update/SKILL.md` (global) | `/update` |
64
-
65
- **Version model:** Maestro pins no version for portable files. Fetching from
66
- latest `main` always resolves the newest committed code no manual version bump
67
- needed per release.
68
-
69
- ## Caveats
70
-
71
- - **No auto-run.** Neither runtime has a `UserPromptSubmit` hook, so arming a mode
72
- (`mode fusion`) only persists state nothing fuses later prompts automatically.
73
- Use `/frontier run "<prompt>"` to actually run the panel.
74
- - **Codex uses skills, not prompts.** `maestro install --target codex` installs the
75
- `frontier`, `terse`, `settings`, and `update` skills as Codex skills
76
- (no-clobber) to `.agents/skills/<name>/SKILL.md` (per-repo) or
77
- `~/.agents/skills/<name>/SKILL.md` (global). The deprecated
78
- `~/.codex/prompts/frontier.md` prompt file remains as a compatibility bridge but
79
- the canonical path is the skill.
80
- - **Codex per-repo skill path:** `.agents/skills/<name>/SKILL.md` is the
81
- repo-scoped option for Codex skills. The global path is
82
- `~/.agents/skills/<name>/SKILL.md`.
83
- - **Maestro Frontier ON indicator (Codex only).** When
84
- `maestro frontier status --scope codex` reports mode != off, the `frontier` skill
85
- instructs Codex to lead its reply with `Maestro Frontier ON (<label>)` —
86
- `single · <model>` or `fusion · <preset>`. When mode is off, no indicator line
87
- appears. This is Codex-scoped only and has no effect on Claude Code.
88
- - **Requires `frontier/` and `bin/maestro.cjs` in the project.** The command runs
89
- `maestro frontier ...` (or `node bin/maestro.cjs frontier ...`) from the repo root,
90
- so the engine must have been copied in during install.
91
- - **Windows + Gemini judge/synth.** `gemini` is fine as a panel member, but a poor
92
- `--judge`/`--synth` on Windows (its arg-passing rejects the newline-bearing
93
- judge/synth prompts, so the stage degrades). Use `opus` or `gpt-5.5` for
94
- 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,66 +1,70 @@
1
- ---
2
- description: Maestro Frontier local multi-CLI fusion engine — switch mode, or run a prompt through 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 through
9
- the `maestro` CLI, installed into this repo during setup.
10
-
11
- **This is a typing shortcut, not the Claude Code plugin.** Codex has no
12
- prompt hook, so arming a mode does **not** auto-run the engine on later prompts —
13
- it only persists the mode. To actually fuse a prompt, invoke `run` explicitly
14
- (step 3).
15
-
16
- Requested action: `$ARGUMENTS`
17
-
18
- Map it to one engine CLI call and run it from the repo root. Do not edit
19
- the engine's state file by hand.
20
-
21
- 1. Switch mode (persists to `~/.config/maestro/frontier-state.codex.json`; default `off`).
22
- `--scope codex` keeps Codex's armed mode independent from Claude Code and Cursor on the same machine:
23
-
24
- ```bash
25
- maestro frontier mode off --scope codex
26
- maestro frontier mode single --model <model> --scope codex
27
- maestro frontier mode fusion --preset <preset> --scope codex
28
- maestro frontier mode fusion --preset custom --models <a,b,c> --scope codex
29
- maestro frontier mode fusion --preset <preset> --judge <model> --synth <model> --scope codex
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
-
38
- 2. Show the current mode/preset:
39
-
40
- ```bash
41
- maestro frontier status --scope codex
42
- ```
43
-
44
- 3. Run a prompt through the current mode — **this is the action that actually
45
- fuses**, since nothing auto-runs here. Set a mode first (step 1), then:
46
-
47
- ```bash
48
- maestro frontier run "<prompt>" --scope codex
49
- ```
50
-
51
- - `off`: prints a notice, spawns nothing.
52
- - `single`: dispatches the one selected CLI, prints its answer.
53
- - `fusion`: runs the panel in parallel → judge → synthesizer; prints the final
54
- answer (a one-line run meta goes to stderr). Report stdout verbatim.
55
-
56
- On error the engine prints `ERROR [<reason>]: <detail>` to stderr and exits
57
- non-zero relay the reason.
58
-
59
- Notes:
60
-
61
- - Real `single`/`fusion` runs spawn local CLIs and cost tokens; use small prompts.
62
- `off` is free.
63
- - Each model's CLI must be on `PATH`, or point at a specific build with
64
- `MAESTRO_CLAUDE_BIN` / `MAESTRO_CODEX_BIN` / `MAESTRO_GEMINI_BIN`.
65
- - Requires `maestro` on `PATH` (installed during Maestro setup). If it is missing,
66
- 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,36 +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
-
34
- Report what was refreshed and note any errors.
35
-
36
- 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.