delegation-layer 0.1.22 → 0.1.25

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 CHANGED
@@ -225,6 +225,26 @@ choices. Per-model effort metadata is independent of the harness-wide list.
225
225
  Discovery exits `0` for `available` or `partial`, `2` for `blocked` or
226
226
  `unavailable`, and `1` for `failed`.
227
227
 
228
+ For Codex's native read-only review command, select `codex:review` and make
229
+ the Git state explicit:
230
+
231
+ ```sh
232
+ delegate --root "$HOME/delegation-state" dispatch \
233
+ --provider codex:review \
234
+ --review-target uncommitted \
235
+ --brief "$PWD/review-brief.txt" \
236
+ --cwd "$HOME/delegation-workspace" \
237
+ --permission read-only \
238
+ --budget 30m \
239
+ --json
240
+ ```
241
+
242
+ Use `base:BRANCH` or `commit:SHA` for a different review target. Review tasks
243
+ are persisted as read-only tasks and do not support continuation or active-turn
244
+ interaction. The brief is retained in the task evidence; Codex's explicit
245
+ review target supplies the native review scope because the Codex CLI does not
246
+ accept a prompt together with these target flags.
247
+
228
248
  If a task reports `status: "timed_out"` and
229
249
  `continuation.resumable: true`, continue the exact session:
230
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delegation-layer",
3
- "version": "0.1.22",
3
+ "version": "0.1.25",
4
4
  "description": "Multi-provider AI agent delegation CLI and Agent Skill for running bounded coding tasks across provider CLIs.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "delegation-layer",
3
3
  "displayName": "Delegation Layer",
4
- "version": "0.1.22",
4
+ "version": "0.1.25",
5
5
  "description": "Consult external AI harnesses and CCR-configured models for reviews, research, implementation, and debate through the resumable Delegate CLI.",
6
6
  "author": {
7
7
  "name": "Hesham Karam",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delegation-layer",
3
- "version": "0.1.22",
3
+ "version": "0.1.25",
4
4
  "description": "Consult external AI harnesses and CCR-configured models for reviews, research, implementation, and debate through the resumable Delegate CLI.",
5
5
  "author": {
6
6
  "name": "Hesham Karam",
@@ -96,15 +96,25 @@ tasks may proceed; the failed attempt must remain reported as failed or blocked.
96
96
  9. Never put credentials, tokens, or unrestricted provider output in a brief,
97
97
  option, receipt, or agent message.
98
98
  10. Permission modes select provider-native behavior, not an independent sandbox.
99
- Providers load their own configuration and extensions. If a task is rejected,
100
- report delegate's evidence; do not assume the user's configuration is faulty
101
- or remove MCP servers, plugins, settings, or credentials to make it pass.
99
+ Providers load their own configuration and extensions. If a task is rejected,
100
+ report delegate's evidence; do not assume the user's configuration is faulty
101
+ or remove MCP servers, plugins, settings, or credentials to make it pass.
102
102
  11. The model chooses ordinary-task fan-out by issuing independent `dispatch`
103
103
  commands concurrently. The private supervisor does not impose a task-count
104
104
  or CPU-based limit. Use this for independent investigation, debate, review,
105
105
  or provider comparison. Concurrent write tasks must use separate workspaces
106
106
  or explicit coordination to avoid file conflicts.
107
107
 
108
+ For an explicit Codex code review, use the discoverable `codex:review` profile
109
+ with one persisted target: `--review-target uncommitted`,
110
+ `--review-target base:BRANCH`, or `--review-target commit:SHA`. It is read-only
111
+ and does not support `--interactive`, continuation, or workspace-write. Use
112
+ ordinary `codex:exec` when the request is a general investigation or asks the
113
+ provider to edit files; the review profile is for Codex's native review
114
+ operation and keeps the reviewed Git state explicit. The brief is retained as
115
+ task evidence; the review target supplies Codex's review scope because its
116
+ native command does not accept a prompt with the target flag.
117
+
108
118
  ## Operating procedure
109
119
 
110
120
  ### 1. Verify the control CLI
@@ -5,7 +5,7 @@
5
5
  "name": "codex-review",
6
6
  "prompt": "Ask Codex to review pricing.py for correctness. Return the finding without editing files.",
7
7
  "external": true,
8
- "provider": "codex:exec",
8
+ "provider": "codex:review",
9
9
  "split": "development",
10
10
  "native_alternative_for": "codex"
11
11
  },
@@ -27,12 +27,15 @@ provider’s own responsibility and is never performed by this skill.
27
27
 
28
28
  Dispatch flags:
29
29
 
30
- - `--brief FILE`: bounded task instructions;
30
+ - `--brief FILE`: bounded task instructions; for `codex:review`, the brief is
31
+ retained as task evidence and the explicit review target supplies Codex's
32
+ native scope;
31
33
  - `--cwd ABS`: workspace for the delegated turn;
32
34
  - `--permission read-only|workspace-write`: read-only investigation or authorized unattended write execution, including commands (not independent containment);
33
35
  - `--budget DURATION`: finite turn budget;
34
36
  - `--auto`: let the CLI select a ready provider;
35
37
  - `--provider ID`: preserve the caller’s named harness or provider, resolved through the catalog;
38
+ - `--review-target uncommitted|base:BRANCH|commit:SHA`: select the explicit Git state for `codex:review`; it is required for that read-only profile and unsupported by other profiles;
36
39
  - `--model MODEL` and `--effort VALUE`: provider-advertised choices (CCR requires a model alias);
37
40
  Codex maps effort to TOML `model_reasoning_effort` for ordinary turns or a native
38
41
  turn parameter for interactive turns, while Claude and AGY
@@ -96,15 +96,25 @@ tasks may proceed; the failed attempt must remain reported as failed or blocked.
96
96
  9. Never put credentials, tokens, or unrestricted provider output in a brief,
97
97
  option, receipt, or agent message.
98
98
  10. Permission modes select provider-native behavior, not an independent sandbox.
99
- Providers load their own configuration and extensions. If a task is rejected,
100
- report delegate's evidence; do not assume the user's configuration is faulty
101
- or remove MCP servers, plugins, settings, or credentials to make it pass.
99
+ Providers load their own configuration and extensions. If a task is rejected,
100
+ report delegate's evidence; do not assume the user's configuration is faulty
101
+ or remove MCP servers, plugins, settings, or credentials to make it pass.
102
102
  11. The model chooses ordinary-task fan-out by issuing independent `dispatch`
103
103
  commands concurrently. The private supervisor does not impose a task-count
104
104
  or CPU-based limit. Use this for independent investigation, debate, review,
105
105
  or provider comparison. Concurrent write tasks must use separate workspaces
106
106
  or explicit coordination to avoid file conflicts.
107
107
 
108
+ For an explicit Codex code review, use the discoverable `codex:review` profile
109
+ with one persisted target: `--review-target uncommitted`,
110
+ `--review-target base:BRANCH`, or `--review-target commit:SHA`. It is read-only
111
+ and does not support `--interactive`, continuation, or workspace-write. Use
112
+ ordinary `codex:exec` when the request is a general investigation or asks the
113
+ provider to edit files; the review profile is for Codex's native review
114
+ operation and keeps the reviewed Git state explicit. The brief is retained as
115
+ task evidence; the review target supplies Codex's review scope because its
116
+ native command does not accept a prompt with the target flag.
117
+
108
118
  ## Operating procedure
109
119
 
110
120
  ### 1. Verify the control CLI
@@ -5,7 +5,7 @@
5
5
  "name": "codex-review",
6
6
  "prompt": "Ask Codex to review pricing.py for correctness. Return the finding without editing files.",
7
7
  "external": true,
8
- "provider": "codex:exec",
8
+ "provider": "codex:review",
9
9
  "split": "development",
10
10
  "native_alternative_for": "codex"
11
11
  },
@@ -27,12 +27,15 @@ provider’s own responsibility and is never performed by this skill.
27
27
 
28
28
  Dispatch flags:
29
29
 
30
- - `--brief FILE`: bounded task instructions;
30
+ - `--brief FILE`: bounded task instructions; for `codex:review`, the brief is
31
+ retained as task evidence and the explicit review target supplies Codex's
32
+ native scope;
31
33
  - `--cwd ABS`: workspace for the delegated turn;
32
34
  - `--permission read-only|workspace-write`: read-only investigation or authorized unattended write execution, including commands (not independent containment);
33
35
  - `--budget DURATION`: finite turn budget;
34
36
  - `--auto`: let the CLI select a ready provider;
35
37
  - `--provider ID`: preserve the caller’s named harness or provider, resolved through the catalog;
38
+ - `--review-target uncommitted|base:BRANCH|commit:SHA`: select the explicit Git state for `codex:review`; it is required for that read-only profile and unsupported by other profiles;
36
39
  - `--model MODEL` and `--effort VALUE`: provider-advertised choices (CCR requires a model alias);
37
40
  Codex maps effort to TOML `model_reasoning_effort` for ordinary turns or a native
38
41
  turn parameter for interactive turns, while Claude and AGY