You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(ce-work-beta): move config to .compound-engineering/config.local.toml
Migrates delegation settings from .claude/compound-engineering.local.md
(YAML frontmatter) to .compound-engineering/config.local.toml (plain TOML).
The new path is platform-agnostic and aligns with the planned config
storage redesign. TOML is a better fit for flat key-value config —
supports comments, no whitespace traps, no implicit type coercion.
Copy file name to clipboardExpand all lines: plugins/compound-engineering/skills/ce-work-beta/SKILL.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Parse `$ARGUMENTS` for the following optional tokens. Strip each recognized toke
26
26
| Token | Example | Effect |
27
27
|-------|---------|--------|
28
28
|`delegate:codex`|`delegate:codex`| Activate Codex delegation mode for plan execution |
29
-
|`delegate:local`|`delegate:local`| Deactivate delegation even if enabled in local.md|
29
+
|`delegate:local`|`delegate:local`| Deactivate delegation even if enabled in config|
30
30
31
31
All tokens are optional. When absent, fall back to the resolution chain below.
32
32
@@ -39,25 +39,25 @@ All tokens are optional. When absent, fall back to the resolution chain below.
39
39
After extracting tokens from arguments, resolve the delegation state using this precedence chain:
40
40
41
41
1.**Argument flag** -- `delegate:codex` or `delegate:local` from the current invocation (highest priority)
42
-
2.**local.md setting** -- Read `.claude/compound-engineering.local.md` and extract `work_delegate` from YAML frontmatter. Value `codex` activates delegation; `false` deactivates.
42
+
2.**Config file** -- Read `.compound-engineering/config.local.toml` in the repo root. Extract `work_delegate` from the TOML keys. Value `"codex"` activates delegation; `false` deactivates.
43
43
3.**Hard default** -- `false` (delegation off)
44
44
45
-
To read local.md: open the file, extract content between the opening and closing `---` delimiters (YAML frontmatter), and interpret the keys. If the file is missing, empty, has malformed frontmatter, or any setting has an unrecognized value, fall through to the hard default for that setting.
45
+
To read the config file: open `.compound-engineering/config.local.toml`and parse it as TOML. If the file is missing, empty, malformed, or any setting has an unrecognized value, fall through to the hard default for that setting.
46
46
47
-
Also read from local.md when present:
47
+
Also read from the config file when present:
48
48
-`work_delegate_consent` -- `true` or default `false`
49
-
-`work_delegate_sandbox` -- `yolo` (default) or `full-auto`
50
-
-`work_delegate_decision` -- `auto` (default) or `ask`
51
-
-`work_delegate_model` -- Codex model to use (default `gpt-5.4`). Passthrough — any valid model name accepted.
52
-
-`work_delegate_effort` -- `minimal`, `low`, `medium`, `high` (default), or `xhigh`
49
+
-`work_delegate_sandbox` -- `"yolo"` (default) or `"full-auto"`
50
+
-`work_delegate_decision` -- `"auto"` (default) or `"ask"`
51
+
-`work_delegate_model` -- Codex model to use (default `"gpt-5.4"`). Passthrough — any valid model name accepted.
52
+
-`work_delegate_effort` -- `"minimal"`, `"low"`, `"medium"`, `"high"` (default), or `"xhigh"`
53
53
54
54
Store the resolved state for downstream consumption:
55
55
-`delegation_active` -- boolean, whether delegation mode is on
56
-
-`delegation_source` -- `argument` or `local.md` or `default` -- how delegation was resolved (used by environment guard to decide notification verbosity)
57
-
-`sandbox_mode` -- `yolo` or `full-auto` (from local.md or default `yolo`)
-`delegate_model` -- string (from local.md or default `gpt-5.4`)
60
-
-`delegate_effort` -- string (from local.md or default `high`)
56
+
-`delegation_source` -- `argument` or `config` or `default` -- how delegation was resolved (used by environment guard to decide notification verbosity)
57
+
-`sandbox_mode` -- `yolo` or `full-auto` (from config or default `yolo`)
Copy file name to clipboardExpand all lines: plugins/compound-engineering/skills/ce-work-beta/references/codex-delegation-workflow.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ fi
49
49
If `inside_sandbox` is true, delegation would recurse or fail.
50
50
51
51
- If `delegation_source` is `argument`: emit "Already inside Codex sandbox -- using standard mode." and set `delegation_active` to false.
52
-
- If `delegation_source` is `local.md` or `default`: set `delegation_active` to false silently.
52
+
- If `delegation_source` is `config` or `default`: set `delegation_active` to false silently.
53
53
54
54
**2. Availability Check**
55
55
@@ -61,7 +61,7 @@ If the Codex CLI is not on PATH: emit "Codex CLI not found -- using standard mod
61
61
62
62
**3. Consent Flow**
63
63
64
-
If `consent_granted` is not true (from local.md`work_delegate_consent`):
64
+
If `consent_granted` is not true (from config`work_delegate_consent`):
65
65
66
66
Present a one-time consent warning using the platform's blocking question tool (AskUserQuestion in Claude Code). The consent warning explains:
67
67
- Delegation sends implementation units to `codex exec` as a structured prompt
@@ -71,16 +71,16 @@ Present a one-time consent warning using the platform's blocking question tool (
71
71
Present the sandbox mode choice: (1) yolo (recommended), (2) full-auto.
72
72
73
73
On acceptance:
74
-
- Write `work_delegate_consent: true` and `work_delegate_sandbox: <chosen-mode>` to `.claude/compound-engineering.local.md` YAML frontmatter
75
-
- To write local.md: (1) if file does not exist, create it with YAML frontmatter wrapper; (2) if file exists with valid frontmatter, merge new keys preserving existing keys; (3) if file exists without frontmatter or with malformed frontmatter, prepend a valid frontmatter block and preserve existing body content below the closing `---`
74
+
- Write `work_delegate_consent = true` and `work_delegate_sandbox = "<chosen-mode>"` to `.compound-engineering/config.local.toml`
75
+
- To write: (1) if file or directory does not exist, create `.compound-engineering/` and write the TOML file; (2) if file exists, merge new keys preserving existing keys
76
76
- Update `consent_granted` and `sandbox_mode` in the resolved state
77
77
78
78
On decline:
79
79
- Ask whether to disable delegation entirely for this project
80
-
- If yes: write `work_delegate: false` to local.md, set `delegation_active` to false, proceed in standard mode
80
+
- If yes: write `work_delegate = false` to `.compound-engineering/config.local.toml`, set `delegation_active` to false, proceed in standard mode
81
81
- If no: set `delegation_active` to false for this invocation only, proceed in standard mode
82
82
83
-
**Headless consent:** If running in a headless or non-interactive context, delegation proceeds only if `work_delegate_consent` is already `true` in local.md. If consent is not recorded, set `delegation_active` to false silently.
83
+
**Headless consent:** If running in a headless or non-interactive context, delegation proceeds only if `work_delegate_consent` is already `true` in the config file. If consent is not recorded, set `delegation_active` to false silently.
0 commit comments