@mindfoldhq/trellis 0.5.0-rc.4 → 0.5.0-rc.5

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.5.0-rc.5",
3
+ "description": "Codex template enables multi_agent_v2 by default with an 8-minute wait floor. AGENTS.md adds wait tool rules. No new migrations.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Enhancements:**\n- feat(codex): `.codex/config.toml` template now writes `[features.multi_agent_v2] { enabled = true, max_concurrent_threads_per_session = 6, min_wait_timeout_ms = 480000 }`. `min_wait_timeout_ms = 480000` (8 min) is the `wait()` timeout floor, up from Codex's `10000` (10 s) default; forces the parent to wait through subagent runtime instead of cancelling. `enabled = true` is required inside the table — the table form alone does not enable the feature. Project-level `[features]` activates only when the project is trusted in `~/.codex/config.toml`.\n- fix(codex): drop the `[features].codex_hooks = true` line — `CodexHooks` is now `Stage::Stable` with `default_enabled: true` in Codex's feature registry, so hooks load automatically once the project is trusted. The legacy `codex_hooks` alias was redundant.\n- feat(agents): `AGENTS.md` Subagents section names Codex's `wait` tool and bans cancel/re-spawn before `wait` returns. Raise the timeout (default 30 s, max 1 h) before judging a subagent stuck.",
7
+ "migrations": [],
8
+ "notes": "RC install: `npm install -g @mindfoldhq/trellis@rc`. Codex users: trust this project (`[projects.\"<abs path>\"].trust_level = \"trusted\"` in `~/.codex/config.toml`) so hooks and the project-level [features] block activate."
9
+ }
@@ -1,15 +1,32 @@
1
1
  # Project-scoped Codex defaults for Trellis workflows.
2
- # Codex loads this after ~/.codex/config.toml when you work in this project.
2
+ # Codex merges this layer after the user-level config when the project
3
+ # is marked as a trusted project. To trust this project, add it under
4
+ # `[projects]` in ~/.codex/config.toml, e.g.:
5
+ #
6
+ # [projects."/abs/path/to/this/repo"]
7
+ # trust_level = "trusted"
8
+ #
9
+ # Without trust, the [features] block below is loaded but disabled.
3
10
 
4
11
  # Keep AGENTS.md as the primary project instruction file.
5
12
  project_doc_fallback_filenames = ["AGENTS.md"]
6
13
 
7
- # NOTE: Trellis's SessionStart + UserPromptSubmit hooks require opt-in.
8
- # Add the following to your USER-level config at ~/.codex/config.toml
9
- # (not this project file features.* must be enabled globally):
10
- #
11
- # [features]
12
- # codex_hooks = true
13
- #
14
- # Without this flag, hooks.json is ignored and Trellis context won't
15
- # be injected into Codex sessions.
14
+ # Codex hooks (`hooks.json` in this directory) load automatically once
15
+ # the project is trusted no feature flag needed. CodexHooks is Stable
16
+ # and default_enabled: true in codex's feature registry; the legacy
17
+ # `[features].codex_hooks = true` flag is no longer required.
18
+
19
+ # multi_agent_v2 forces structured subagent orchestration with the
20
+ # `wait` tool — parent must block on terminal status before acting,
21
+ # instead of cancelling / re-spawning. Incompatible with
22
+ # [agents].max_threads (codex will reject the combination).
23
+ # `enabled = true` is required inside the table — the table form does
24
+ # NOT auto-enable the feature without it.
25
+ # - max_concurrent_threads_per_session: bumps default 4 → 6.
26
+ # - min_wait_timeout_ms: 480000 ms = 8 min. Codex default is 10 s, too
27
+ # short for Trellis subagents that routinely take 2-10 min. Hard
28
+ # ceiling is 3,600,000 (1 h).
29
+ [features.multi_agent_v2]
30
+ enabled = true
31
+ max_concurrent_threads_per_session = 6
32
+ min_wait_timeout_ms = 480000
@@ -18,10 +18,13 @@ If you're using Codex or another agent-capable tool, additional project-scoped h
18
18
 
19
19
  ## Subagents
20
20
 
21
- - ALWAYS wait for all subagents to complete before yielding.
21
+ - ALWAYS wait for every spawned subagent to reach a terminal status before yielding, acting on partial results, or spawning followups.
22
+ - On Codex, this means calling the `wait` tool with the subagent's thread id (requires `multi_agent_v2`). Do NOT infer completion from elapsed time.
23
+ - On Claude Code / OpenCode, this means awaiting the Task/agent tool result before continuing.
24
+ - NEVER cancel or re-spawn a subagent that hasn't finished. If a subagent appears stuck, raise the wait timeout (Codex default 30s, max 1h) before judging it broken.
22
25
  - Spawn subagents automatically when:
23
26
  - Parallelizable work (e.g., install + verify, npm test + typecheck, multiple tasks from plan)
24
- - Long-running or blocking tasks where a worker can run independently.
27
+ - Long-running or blocking tasks where a worker can run independently
25
28
  - Isolation for risky changes or checks
26
29
 
27
30
  Managed by Trellis. Edits outside this block are preserved; edits inside may be overwritten by a future `trellis update`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindfoldhq/trellis",
3
- "version": "0.5.0-rc.4",
3
+ "version": "0.5.0-rc.5",
4
4
  "description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",