@maestria/codex 0.3.2 → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestria",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Maestria methodology for Codex CLI: specialist workflow skills, orchestration, and review contracts",
5
5
  "author": {
6
6
  "name": "agustinusnathaniel"
@@ -12,7 +12,7 @@
12
12
  "interface": {
13
13
  "displayName": "Maestria",
14
14
  "shortDescription": "Specialist workflow skills for Codex CLI",
15
- "longDescription": "A skills-only projection of Maestria's canonical agent methodology for Codex CLI. It provides specialist workflows, orchestration guidance, handoffs, bounded repair, and review contracts without claiming runtime enforcement.",
15
+ "longDescription": "Maestria's Codex CLI integration: namespaced specialist skills, native custom-agent roles, automatic orchestration guidance, handoffs, bounded repair, and review contracts. The host retains runtime and permission enforcement.",
16
16
  "developerName": "agustinusnathaniel",
17
17
  "category": "Developer Tools",
18
18
  "capabilities": ["Skills"],
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @maestria/codex
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#248](https://github.com/agustinusnathaniel/maestria/pull/248) [`93ff292`](https://github.com/agustinusnathaniel/maestria/commit/93ff292b83f5659b67af4889848de454d1661206) Thanks [@agustinusnathaniel](https://github.com/agustinusnathaniel)! - Add native Codex custom-agent templates, direct native marketplace installation, automatic primary-session orchestration guidance, CLI-managed model configuration, and safe update/uninstall handling.
8
+
9
+ ## Unreleased
10
+
11
+ - Add seven native `maestria-*` custom-agent TOML templates. The Maestria CLI installs them into Codex's native agents directory and preserves user model, reasoning, and service-tier settings across updates.
12
+ - Add an idempotent, marker-managed global Codex instruction block so the host-owned primary session activates the Maestria orchestrator and delegates through native roles automatically.
13
+ - Align the orchestrator guidance with Codex's native `agent_type` role selection.
14
+
3
15
  ## 0.3.2
4
16
 
5
17
  ### Patch Changes
package/INSTALL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Installing @maestria/codex
2
2
 
3
- > This package is a provisional projection spike, not a production support promise. It was verified against `codex 0.145.0` on 2026-08-13.
3
+ > Codex CLI support was verified against `codex 0.145.0` on 2026-08-26. This package targets Codex CLI plugin skills and native CLI installation; Codex desktop parity and runtime tool enforcement remain outside its scope.
4
4
 
5
5
  ## Prerequisites
6
6
 
@@ -27,7 +27,7 @@ Install the published projection and register it with Codex's native plugin mana
27
27
  npx maestria install codex
28
28
  ```
29
29
 
30
- The CLI downloads `@maestria/codex` from npm, creates a local marketplace under `~/.cache/maestria/codex-marketplace`, and runs `codex plugin add maestria@maestria`. Codex owns the installed plugin cache and enabled state.
30
+ The CLI downloads `@maestria/codex` from npm, creates a local marketplace under `~/.cache/maestria/codex-marketplace`, and runs `codex plugin add maestria@maestria`. Codex owns the installed plugin cache and enabled state. The CLI also installs the bundled native custom agents as `maestria-*.toml` under `$CODEX_HOME/agents/` (normally `~/.codex/agents/`) and adds a marked orchestration block to the active global `$CODEX_HOME/AGENTS.md` or `$CODEX_HOME/AGENTS.override.md` file. Existing instructions remain intact.
31
31
 
32
32
  Update or remove it with:
33
33
 
@@ -36,7 +36,22 @@ npx maestria update codex
36
36
  npx maestria uninstall codex
37
37
  ```
38
38
 
39
- The update path refreshes the npm package and reinstalls it because Codex CLI does not expose a separate plugin update command. Exact version pinning is not supported for this adapter.
39
+ The update path refreshes the npm package and reinstalls it because Codex CLI does not expose a separate plugin update command. It also refreshes the native agent TOMLs while preserving configured model, reasoning, and service-tier settings. Exact version pinning is not supported for this adapter.
40
+
41
+ ## Direct installation through Codex
42
+
43
+ The repository also publishes a Codex marketplace entry whose plugin source is the npm package. Install it with Codex's native marketplace and plugin commands:
44
+
45
+ ```bash
46
+ codex plugin marketplace add agustinusnathaniel/maestria
47
+ codex plugin add maestria@maestria
48
+ ```
49
+
50
+ This direct path installs the published plugin and its skills. `codex plugin add` consumes a `PLUGIN@MARKETPLACE` selector; it does not accept `@maestria/codex` as a bare npm argument. The Maestria CLI remains the full setup path because it additionally copies the bundled native agent TOMLs into `$CODEX_HOME/agents/` and manages the global orchestration instruction block. A direct Codex uninstall removes only the plugin:
51
+
52
+ ```bash
53
+ codex plugin remove maestria@maestria
54
+ ```
40
55
 
41
56
  ## Loading and testing
42
57
 
@@ -49,9 +64,28 @@ Codex loads plugins through a configured marketplace. Install the package from t
49
64
 
50
65
  These skills are advisory. The Codex runtime may still expose write-capable tools while a read-only specialist skill is active; do not treat the skill as a permission boundary.
51
66
 
67
+ 5. **Use native specialist agents**
68
+
69
+ The CLI-installed native roles are `maestria-adventurer`, `maestria-architect`, `maestria-builder`, `maestria-diagnose`, `maestria-planner`, `maestria-reviewer`, and `maestria-writer`. Ask Codex to delegate with the matching `agent_type`, for example `agent_type: "maestria-builder"`. Read-only roles use Codex's native `sandbox_mode = "read-only"`.
70
+
71
+ 6. **Automatic primary-session routing**
72
+
73
+ After `maestria install codex`, start a new Codex session. The managed global instruction block tells Codex's host-owned primary agent to use `$maestria:orchestrator`, load `$maestria:global-rules`, and delegate to the native `maestria-*` roles when appropriate. You can still invoke `$maestria:orchestrator` explicitly for a visible route, or use `$maestria:fein`, `$maestria:sonar`, and `$maestria:blitz` for workflow modes.
74
+
75
+ ## Native model configuration
76
+
77
+ The plugin manifest declares skills, while the Maestria CLI configures the native custom-agent model files and managed global orchestration instructions it installs:
78
+
79
+ ```bash
80
+ npx maestria configure codex --global --set builder=gpt-5.6-terra
81
+ npx maestria configure codex --project --set reviewer=gpt-5.6-luna
82
+ ```
83
+
84
+ Global files are written under `~/.codex/agents/`; project files are written under `.codex/agents/`. Existing TOML is edited surgically. Read-only roles also receive Codex's native `sandbox_mode = "read-only"` when a new custom-agent file is created.
85
+
52
86
  ## Scope deliberately excluded
53
87
 
54
- This projection does not write Codex configuration, register a model, add MCP, or ship lifecycle hooks. It also does not claim Codex desktop parity.
88
+ The plugin manifest does not itself declare agents, write `config.toml`, register a model, add MCP, or ship lifecycle hooks. The CLI installs native agent files, manages a marked block in Codex's global instruction file, and exposes model configuration as an explicit separate operation. The package also does not claim Codex desktop parity.
55
89
 
56
90
  ## Updating generated content
57
91
 
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @maestria/codex
2
2
 
3
- A provisional Codex CLI package that ships Maestria's agent methodology as namespaced `$maestria:*` skills.
3
+ A Codex CLI package that ships Maestria's agent methodology as namespaced `$maestria:*` skills and native custom-agent roles.
4
4
 
5
5
  > This package is part of the Maestria project. See [VISION.md](https://github.com/agustinusnathaniel/maestria/blob/main/VISION.md) for the project vision, motivation, and scope.
6
6
 
7
7
  ## Status / Support Boundary
8
8
 
9
- `Provisional` - verified against Codex CLI 0.145.0 on 2026-08-13; not a production support promise, and no Codex desktop parity is claimed. Reverify host marketplace and skills behavior when upgrading Codex.
9
+ Verified against Codex CLI 0.145.0 on 2026-08-26. This package targets Codex CLI plugin skills and native CLI installation. Codex desktop parity and runtime tool enforcement remain outside this package.
10
10
 
11
11
  ## Installation
12
12
 
@@ -20,17 +20,29 @@ npx maestria uninstall codex
20
20
 
21
21
  The CLI installs and updates the plugin through Codex's `plugin add` flow. Codex CLI exposes no plugin update command, so `maestria update codex` removes and re-adds the plugin. Exact version pinning is not available. See [INSTALL.md](https://github.com/agustinusnathaniel/maestria/blob/main/packages/codex/INSTALL.md) for the full checklist and verification.
22
22
 
23
+ The published package is also available through the repository's native Codex marketplace:
24
+
25
+ ```bash
26
+ codex plugin marketplace add agustinusnathaniel/maestria
27
+ codex plugin add maestria@maestria
28
+ ```
29
+
30
+ That direct path installs the plugin and skills. Use `npx maestria install codex` when you also want the native agent TOMLs and automatic global orchestration setup.
31
+
23
32
  ## What It Provides
24
33
 
25
34
  - **14 namespaced skills** - `$maestria:global-rules`, `$maestria:orchestrator`, the 7 specialists (adventurer, architect, builder, diagnose, planner, reviewer, writer), `$maestria:handoff`, `$maestria:iteration-limits`, and the workflow modes `$maestria:fein`, `$maestria:sonar`, `$maestria:blitz`.
35
+ - **7 native custom agents** - the Maestria CLI installs `maestria-*` agent TOMLs into Codex's native `$CODEX_HOME/agents/` directory, with read-only sandbox settings for reconnaissance, architecture, planning, and review roles.
36
+ - **Automatic orchestration** - the Maestria CLI installs a marked global Codex instruction block that activates the orchestrator workflow in the primary session and routes specialist work to the native roles.
26
37
  - **Maestria CLI compatibility** - install, status, check, update, and uninstall through the CLI.
38
+ - **Native model configuration** - `maestria configure codex` can create or update Codex custom-agent TOML files without overwriting unrelated agent settings.
27
39
 
28
40
  ## Support / Platform Notes
29
41
 
30
42
  - Workflow modes ship as skills, not slash commands.
31
43
  - Read-only specialist boundaries are documented guidance, not tool enforcement; Codex's own sandbox, approvals, and hook trust controls remain the host boundary.
32
- - Ships no hooks, MCP servers, model configuration, or `AGENTS.md` writer.
33
- - Support remains provisional until the pinned Codex CLI behavior and the marketplace/plugin install flow are reverified.
44
+ - The plugin manifest declares skills; the companion CLI installs native agent TOMLs and a marked global instruction block, preserves model/reasoning/service-tier settings across updates, and removes only Maestria-owned content on uninstall.
45
+ - `maestria install codex` provides automatic routing for normal sessions. Direct plugin installation still supports explicit `$maestria:orchestrator` activation but does not modify global instructions.
34
46
 
35
47
  ## Documentation and Changelog
36
48
 
@@ -0,0 +1,7 @@
1
+ name = "maestria-adventurer"
2
+ description = "Maestria codebase reconnaissance specialist for mapping unfamiliar code and tracing execution paths."
3
+ developer_instructions = """
4
+ Load the $maestria:adventurer skill before acting.
5
+ Stay in exploration mode: gather verified context, trace the real execution path, and return a concise evidence-backed handoff to the parent agent. Do not implement or edit files.
6
+ """
7
+ sandbox_mode = "read-only"
@@ -0,0 +1,7 @@
1
+ name = "maestria-architect"
2
+ description = "Maestria architecture specialist for comparing approaches, boundaries, and trade-offs."
3
+ developer_instructions = """
4
+ Load the $maestria:architect skill before acting.
5
+ Evaluate viable approaches with explicit trade-offs and record the decision inputs. Return a concise recommendation and implementation handoff. Do not implement or edit files.
6
+ """
7
+ sandbox_mode = "read-only"
@@ -0,0 +1,6 @@
1
+ name = "maestria-builder"
2
+ description = "Maestria focused implementation specialist for one atomic, verifiable unit of work."
3
+ developer_instructions = """
4
+ Load the $maestria:builder skill before acting.
5
+ Implement the requested atomic change, keep unrelated files untouched, validate the changed behavior, and return a concise evidence-backed handoff.
6
+ """
@@ -0,0 +1,6 @@
1
+ name = "maestria-diagnose"
2
+ description = "Maestria diagnosis specialist for tracing regressions from symptoms to root cause and prevention."
3
+ developer_instructions = """
4
+ Load the $maestria:diagnose skill before acting.
5
+ Reproduce and minimize the failure, trace the owning path, identify the root cause, and add or describe regression evidence before proposing a bounded repair.
6
+ """
@@ -0,0 +1,7 @@
1
+ name = "maestria-planner"
2
+ description = "Maestria planning specialist for sequencing complex work with verification and rollback criteria."
3
+ developer_instructions = """
4
+ Load the $maestria:planner skill before acting.
5
+ Produce a phased, implementation-ready plan with dependencies, acceptance evidence, and rollback points. Do not implement or edit files.
6
+ """
7
+ sandbox_mode = "read-only"
@@ -0,0 +1,7 @@
1
+ name = "maestria-reviewer"
2
+ description = "Maestria independent reviewer for correctness, security, performance, and missing-test risks."
3
+ developer_instructions = """
4
+ Load the $maestria:reviewer skill before acting.
5
+ Review independently after implementation, lead with concrete material findings, and return a verdict with evidence. Do not fix issues or edit files.
6
+ """
7
+ sandbox_mode = "read-only"
@@ -0,0 +1,6 @@
1
+ name = "maestria-writer"
2
+ description = "Maestria documentation specialist for READMEs, API docs, architecture records, and changelogs."
3
+ developer_instructions = """
4
+ Load the $maestria:writer skill before acting.
5
+ Write clear, structured documentation grounded in the code and project conventions, then return a concise handoff with the files and validation performed.
6
+ """
@@ -0,0 +1,18 @@
1
+ <!-- maestria:codex-orchestrator:start -->
2
+
3
+ ## Maestria orchestration
4
+
5
+ For software-engineering tasks, use `$maestria:orchestrator` as the workflow dispatcher. Treat this Codex session as the orchestrator: load `$maestria:global-rules` once, choose the smallest safe route, and delegate specialist work when another perspective or parallel work materially improves the result.
6
+
7
+ Use the native Maestria custom agents when they are installed. Delegate with the matching `agent_type`:
8
+
9
+ - `maestria-adventurer`: codebase reconnaissance
10
+ - `maestria-architect`: architecture and boundary decisions
11
+ - `maestria-builder`: atomic implementation
12
+ - `maestria-diagnose`: root-cause analysis
13
+ - `maestria-planner`: phased implementation planning
14
+ - `maestria-reviewer`: independent review after meaningful implementation
15
+ - `maestria-writer`: documentation
16
+
17
+ Keep maker/checker separation explicit. Route simple, low-risk requests directly, and do not add ceremony when it does not improve the outcome. User instructions and repository-local instructions take precedence over this workflow.
18
+ <!-- maestria:codex-orchestrator:end -->
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@maestria/codex",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
- "description": "Provisional Maestria skills projection for Codex CLI",
5
+ "description": "Maestria skills and native agent integration for Codex CLI",
6
6
  "keywords": [
7
7
  "ai",
8
8
  "codex",
@@ -24,6 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  ".codex-plugin",
27
+ "agents",
28
+ "instructions",
27
29
  "skills",
28
30
  "CHANGELOG.md",
29
31
  "INSTALL.md",
@@ -101,7 +101,11 @@ Use the namespaced skills below as the specialist workflow profiles:
101
101
  | `$maestria:reviewer` | Independent quality review | post-implementation validation or explicit review |
102
102
  | `$maestria:writer` | Documentation | README, changelog, API docs, or structured prose |
103
103
 
104
- Codex supports subagent workflows, but a skill does not create or enforce a custom subagent role. Ask Codex to delegate when parallel or independent work benefits from it, and keep the maker/checker boundary explicit in the prompts.
104
+ Codex supports subagent workflows. Skills provide the methodology, while the companion native agent pack provides role definitions with the `agent_type` names below. Keep the maker/checker boundary explicit in every handoff.
105
+
106
+ ### Native custom agents
107
+
108
+ The Maestria CLI installs the bundled native agent TOMLs into `$CODEX_HOME/agents/` using collision-resistant names: `maestria-adventurer`, `maestria-architect`, `maestria-builder`, `maestria-diagnose`, `maestria-planner`, `maestria-reviewer`, and `maestria-writer`. Use the corresponding `agent_type` when spawning a specialist, for example `agent_type: "maestria-builder"`. `maestria configure codex` updates their model settings without changing the role instructions. If the native pack is not installed, use the namespaced skills with Codex's built-in agents or explicit delegation prompts.
105
109
 
106
110
  ### Workflow-mode skills
107
111
 
@@ -109,4 +113,4 @@ Use `$maestria:fein` for the full route, `$maestria:sonar` for research-only wor
109
113
 
110
114
  ### Platform boundary
111
115
 
112
- This package contains no hooks, MCP server, installer, model configuration, or AGENTS.md writer. Skills and plugin loading are advisory capabilities, not security enforcement. Do not claim that this projection makes a role read-only, guarantees delegation, or enforces the Maestria methodology.
116
+ The Codex plugin manifest declares skills only; the companion Maestria CLI installs the package's native custom-agent TOML files, manages their model settings, and adds a marked global orchestration block to Codex's active AGENTS.md instructions. The package contains no hooks or MCP server. Skills and instruction guidance are advisory capabilities, not security enforcement; native custom-agent sandbox settings are the host's boundary. Do not claim that this integration overrides Codex's primary agent or enforces the Maestria methodology.