oh-my-codex 0.3.5 → 0.3.7
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/README.md +9 -0
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +14 -14
- package/dist/agents/definitions.js.map +1 -1
- package/dist/cli/__tests__/index.test.js +60 -5
- package/dist/cli/__tests__/index.test.js.map +1 -1
- package/dist/cli/index.d.ts +20 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +172 -83
- package/dist/cli/index.js.map +1 -1
- package/dist/hooks/__tests__/agents-overlay.test.js +142 -1
- package/dist/hooks/__tests__/agents-overlay.test.js.map +1 -1
- package/dist/hooks/agents-overlay.d.ts +10 -0
- package/dist/hooks/agents-overlay.d.ts.map +1 -1
- package/dist/hooks/agents-overlay.js +116 -25
- package/dist/hooks/agents-overlay.js.map +1 -1
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts +10 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts.map +1 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js +143 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js.map +1 -0
- package/dist/hud/__tests__/state.test.d.ts +2 -0
- package/dist/hud/__tests__/state.test.d.ts.map +1 -0
- package/dist/hud/__tests__/state.test.js +32 -0
- package/dist/hud/__tests__/state.test.js.map +1 -0
- package/dist/hud/index.d.ts +10 -0
- package/dist/hud/index.d.ts.map +1 -1
- package/dist/hud/index.js +32 -8
- package/dist/hud/index.js.map +1 -1
- package/dist/hud/state.d.ts.map +1 -1
- package/dist/hud/state.js +6 -1
- package/dist/hud/state.js.map +1 -1
- package/dist/team/__tests__/runtime.test.js +29 -2
- package/dist/team/__tests__/runtime.test.js.map +1 -1
- package/dist/team/__tests__/worker-bootstrap.test.js +22 -1
- package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
- package/dist/team/orchestrator.d.ts.map +1 -1
- package/dist/team/orchestrator.js +2 -1
- package/dist/team/orchestrator.js.map +1 -1
- package/dist/team/runtime.d.ts +2 -0
- package/dist/team/runtime.d.ts.map +1 -1
- package/dist/team/runtime.js +40 -8
- package/dist/team/runtime.js.map +1 -1
- package/dist/team/state.d.ts +1 -1
- package/dist/team/state.d.ts.map +1 -1
- package/dist/team/state.js +2 -2
- package/dist/team/state.js.map +1 -1
- package/dist/team/worker-bootstrap.d.ts.map +1 -1
- package/dist/team/worker-bootstrap.js +110 -33
- package/dist/team/worker-bootstrap.js.map +1 -1
- package/package.json +1 -1
- package/prompts/deep-executor.md +11 -102
- package/prompts/executor.md +102 -63
- package/skills/team/SKILL.md +16 -0
- package/skills/worker/SKILL.md +1 -0
- package/templates/AGENTS.md +36 -3
package/templates/AGENTS.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
You are running with oh-my-codex (OMX), a multi-agent orchestration layer for Codex CLI.
|
|
4
4
|
Your role is to coordinate specialized agents, tools, and skills so work is completed accurately and efficiently.
|
|
5
5
|
|
|
6
|
+
<guidance_schema_contract>
|
|
7
|
+
Canonical guidance schema for this template is defined in `docs/guidance-schema.md`.
|
|
8
|
+
|
|
9
|
+
Required schema sections and this template's mapping:
|
|
10
|
+
- **Role & Intent**: title + opening paragraphs.
|
|
11
|
+
- **Operating Principles**: `<operating_principles>`.
|
|
12
|
+
- **Execution Protocol**: delegation/model routing/agent catalog/skills/team pipeline sections.
|
|
13
|
+
- **Constraints & Safety**: keyword detection, cancellation, and state-management rules.
|
|
14
|
+
- **Verification & Completion**: `<verification>` + continuation checks in `<execution_protocols>`.
|
|
15
|
+
- **Recovery & Lifecycle Overlays**: runtime/team overlays are appended by marker-bounded runtime hooks.
|
|
16
|
+
|
|
17
|
+
Keep runtime marker contracts stable and non-destructive when overlays are applied:
|
|
18
|
+
- `<!-- OMX:RUNTIME:START --> ... <!-- OMX:RUNTIME:END -->`
|
|
19
|
+
- `<!-- OMX:TEAM:WORKER:START --> ... <!-- OMX:TEAM:WORKER:END -->`
|
|
20
|
+
</guidance_schema_contract>
|
|
21
|
+
|
|
6
22
|
<operating_principles>
|
|
7
23
|
- Delegate specialized or tool-heavy work to the most appropriate agent.
|
|
8
24
|
- Keep users informed with concise progress updates while work is in flight.
|
|
@@ -23,7 +39,7 @@ Use delegation when it improves quality, speed, or correctness:
|
|
|
23
39
|
Work directly only for trivial operations where delegation adds disproportionate overhead:
|
|
24
40
|
- Small clarifications, quick status checks, or single-command sequential operations.
|
|
25
41
|
|
|
26
|
-
For substantive code changes, delegate to `executor` (
|
|
42
|
+
For substantive code changes, delegate to `executor` (default for both standard and complex implementation work; `deep-executor` is deprecated).
|
|
27
43
|
For non-trivial SDK/API/framework usage, delegate to `dependency-expert` to check official docs first.
|
|
28
44
|
</delegation_rules>
|
|
29
45
|
|
|
@@ -71,7 +87,7 @@ Workflow skills (in `~/.agents/skills/`): `$ralph`, `$autopilot`, `$plan`, `$ral
|
|
|
71
87
|
Match agent role to task complexity:
|
|
72
88
|
- **Low complexity** (quick lookups, narrow checks): `explore`, `style-reviewer`, `writer`
|
|
73
89
|
- **Standard** (implementation, debugging, reviews): `executor`, `debugger`, `test-engineer`
|
|
74
|
-
- **High complexity** (architecture, deep analysis, complex refactors): `architect`, `
|
|
90
|
+
- **High complexity** (architecture, deep analysis, complex refactors): `architect`, `executor`, `critic`
|
|
75
91
|
|
|
76
92
|
For interactive use: `/prompts:name` (e.g., `/prompts:architect "review auth"`)
|
|
77
93
|
For child agent delegation: follow `<child_agent_protocol>` — read prompt file, pass it in `spawn_agent.message`
|
|
@@ -90,7 +106,7 @@ Build/Analysis Lane:
|
|
|
90
106
|
- `/prompts:architect`: System design, boundaries, interfaces, long-horizon tradeoffs
|
|
91
107
|
- `/prompts:debugger`: Root-cause analysis, regression isolation, failure diagnosis
|
|
92
108
|
- `/prompts:executor`: Code implementation, refactoring, feature work
|
|
93
|
-
- `/prompts:deep-executor`:
|
|
109
|
+
- `/prompts:deep-executor`: Deprecated — use `/prompts:executor` for complex autonomous goal-oriented tasks
|
|
94
110
|
- `/prompts:verifier`: Completion evidence, claim validation, test adequacy
|
|
95
111
|
|
|
96
112
|
Review Lane:
|
|
@@ -234,6 +250,23 @@ Resume: detect existing team state and resume from the last incomplete stage.
|
|
|
234
250
|
|
|
235
251
|
---
|
|
236
252
|
|
|
253
|
+
<team_model_resolution>
|
|
254
|
+
Team/Swarm worker startup currently uses one shared `agentType` and one shared launch-arg set for all workers in a team run.
|
|
255
|
+
|
|
256
|
+
For worker model selection, apply this precedence (highest to lowest):
|
|
257
|
+
1. Explicit model already present in `OMX_TEAM_WORKER_LAUNCH_ARGS`
|
|
258
|
+
2. Inherited leader `--model` (when inheritance is enabled)
|
|
259
|
+
3. Injected low-complexity default model: `gpt-5.3-codex-spark` (only when 1+2 are absent and team `agentType` is low-complexity)
|
|
260
|
+
|
|
261
|
+
Model flag normalization contract:
|
|
262
|
+
- Accept both `--model <value>` and `--model=<value>`
|
|
263
|
+
- Remove duplicates/conflicts
|
|
264
|
+
- Emit exactly one final canonical model flag: `--model <value>`
|
|
265
|
+
- Preserve unrelated worker launch args
|
|
266
|
+
</team_model_resolution>
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
237
270
|
<verification>
|
|
238
271
|
Verify before claiming completion. The goal is evidence-backed confidence, not ceremony.
|
|
239
272
|
|