Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(agent): remove worktree and parallel spawn references

Steven Enamakeldac787f334cd
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.md
index 6297322900..afd805eb64 100644
--- a/crates/openhuman-core/src/agent/README.md
+++ b/crates/openhuman-core/src/agent/README.md
@@ -178,7 +178,7 @@ its `AgentStores`. See [session_host/README.md](session_host/README.md).
A parent agent delegates by calling a tool. `spawn_subagent`
([`orchestration/tools/spawn_subagent.rs`](./orchestration/tools/spawn_subagent.rs)) and its siblings
-(`spawn_async_subagent`, `spawn_parallel_agents`, `continue_subagent`,
+(`spawn_async_subagent`, `continue_subagent`,
`steer_subagent`, `wait_subagent`, `close_subagent`, `delegate`) look up the
target `AgentDefinition` and call `subagent_host::run_subagent_with_parent`.
@@ -211,7 +211,7 @@ other `Subagent*` variants. Spawn depth is capped by
`SteeringRegistry` ([`tinyagents/host/steering.rs`](./tinyagents/host/steering.rs)).
`orchestration/` is the larger control plane on top of that: the command
-center, git worktrees for parallel coding workers, and background completion
+center and background completion
delivery. See
[orchestration/README.md](orchestration/README.md) and
[subagent_host/README.md](subagent_host/README.md).
@@ -293,7 +293,7 @@ Delegation and coordination:
| Path | What it does |
| --- | --- |
| `subagent_host/` | Runs a child agent: definition, model and tool narrowing, prompt, checkpoints, progress ([README](subagent_host/README.md)) |
-| `orchestration/` | Spawn/steer/wait tools, command center, worktrees, background delivery ([README](orchestration/README.md)) |
+| `orchestration/` | Spawn/steer/wait tools, command center, background delivery ([README](orchestration/README.md)) |
| `triage/` | Classifies `TriggerEnvelope`s and escalates ([README](triage/README.md)) |
| `goals/` | Host adapters around `tinyagents_graph::goals` and the `goal_*` tools ([README](goals/README.md)) |
| `todos/` | Session-scoped todo list over the TinyAgents todo store ([README](todos/README.md)) |
@@ -366,7 +366,6 @@ All controllers register under `DomainGroup::Agent` in [`core/all.rs`](../core/a
| `run_ledger` | `../sessions/` | `list`, `get`, `events` |
| `session_import` | `../storage/import/` | `run` |
| `agent_work` | [`orchestration/command_center`](./orchestration/command_center/) | `list`, `control` |
-| `worktree` | [`orchestration/worktree_schemas.rs`](./orchestration/worktree_schemas.rs) | `list`, `status`, `diff`, `remove` |
| `subagent` | [`orchestration/subagent_control.rs`](./orchestration/subagent_control.rs) | `cancel`, `steer` for running sub-agents |
`agent.chat` and `agent.chat_simple` load config and call
diff --git a/crates/openhuman-core/src/agent/harness/README.md b/crates/openhuman-core/src/agent/harness/README.md
index 4843cccf0f..5306fa6912 100644
--- a/crates/openhuman-core/src/agent/harness/README.md
+++ b/crates/openhuman-core/src/agent/harness/README.md
@@ -99,8 +99,8 @@ turn lifecycle are in `../session_host/`; `run_subagent`,
`AgentDefinitionRegistry`/`ToolScope`.
- `agent/tinyagents/middleware/credential_scrub.rs` calls
`harness::credentials::scrub_credentials` on every tool result.
-- `agent/orchestration/tools/*` (`spawn_subagent`, `spawn_parallel_agents`,
- `spawn_async_subagent`, `continue_subagent`, `steer_subagent`, and friends)
+- `agent/orchestration/tools/*` (`spawn_subagent`, `spawn_async_subagent`,
+ `continue_subagent`, `steer_subagent`, and friends)
call into `../subagent_host/` and take this module's parent context
explicitly.
diff --git a/crates/openhuman-core/src/agent/orchestration/README.md b/crates/openhuman-core/src/agent/orchestration/README.md
index b00f0dbf7d..e2c1bdbc6a 100644
--- a/crates/openhuman-core/src/agent/orchestration/README.md
+++ b/crates/openhuman-core/src/agent/orchestration/README.md
@@ -1,7 +1,7 @@
# orchestration
`agent::orchestration` hosts live OpenHuman adapters for detached sub-agents:
-spawning, steering, waiting, worktree isolation, progress, and durable
+spawning, steering, waiting, progress, and durable
subagent-session projections. TinyAgents owns generic task execution and
registry behavior; OpenHuman supplies product policy, execution context, RPC,
and UI-facing projections.
@@ -11,11 +11,8 @@ and UI-facing projections.
- Host adapters that dispatch work through `agent::subagent_host::run_subagent`.
- Background sub-agent task tracking, cancellation, steering, completion
delivery, and run-ledger projection.
-- OpenHuman worktree isolation and its list/status/diff/remove RPC surface.
- Manual cancellation and steering for detached `spawn_async_subagent` runs.
- The shared root `ParentExecutionContext` builder used by background tasks.
-- `spawn_parallel_agents` policy and progress projection over TinyAgents
- parallel execution.
## Key files
@@ -28,7 +25,6 @@ and UI-facing projections.
- `subagent_control.rs`: manual cancel and steer RPCs.
- `subagent_sessions/`: durable session reuse and deduplication.
- `parent_context/builder.rs`: construction for tasks without a parent turn.
-- `worktree.rs` and `../../agent_runs/worktree_schemas.rs`: worktree adapter and RPCs.
- `delegation.rs`: live TinyAgents delegation graph adapter.
- `tools.rs`: callable sub-agent tools.
@@ -37,13 +33,12 @@ and UI-facing projections.
| Namespace | Surface |
| --- | --- |
| `agent_work` | Background run list and controls |
-| `worktree` | List, status, diff, remove |
| `subagent` | Cancel and steer |
## Tools
The module exposes `spawn_subagent`, `spawn_async_subagent`,
-`spawn_parallel_agents`, `steer_subagent`, `continue_subagent`,
+`steer_subagent`, `continue_subagent`,
`close_subagent`, `wait_subagent`, `wait`, `wait_loop`, and `list_subagents`.
`delegate_graph` and archetype delegates provide optional delegation tools.
Execution routes through `agent::subagent_host::run_subagent`.
diff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs
index f72c061f44..a2ea99be9b 100644
--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs
+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs
@@ -277,7 +277,7 @@ fn master_agent_has_coding_hint_and_named_tools() {
"wait",
"wait_loop",
"wait_subagent",
- "spawn_parallel_agents",
+ concat!("spawn_", "parallel_agents"),
"steer_subagent",
"close_subagent",
] {
diff --git a/crates/openhuman-core/src/agent_registry/agents/orchestrator/agent.toml b/crates/openhuman-core/src/agent_registry/agents/orchestrator/agent.toml
index dcff865749..d7e0e280a9 100644
--- a/crates/openhuman-core/src/agent_registry/agents/orchestrator/agent.toml
+++ b/crates/openhuman-core/src/agent_registry/agents/orchestrator/agent.toml
@@ -224,7 +224,7 @@ named = [
# `orchestration::background_delivery`. Nothing has to block for it, so
# the collection surface that used to sit here — `wait`, `wait_loop`,
# `wait_subagent` — bought nothing but tokens and an invitation to stall
- # the turn. `spawn_parallel_agents` went the same way: several spawns are
+ # the turn. Multiple async sub-agent requests can also be sent in parallel:
# already several workers in flight, so a dedicated fan-out tool was a
# second way to say the same thing. `steer_subagent` and `close_subagent`
# were fleet-management affordances for a fleet the model no longer
diff --git a/crates/openhuman-core/src/agent_runs/subagent_finalize.rs b/crates/openhuman-core/src/agent_runs/subagent_finalize.rs
index fb3d58d593..04efe8696e 100644
--- a/crates/openhuman-core/src/agent_runs/subagent_finalize.rs
+++ b/crates/openhuman-core/src/agent_runs/subagent_finalize.rs
@@ -3,7 +3,7 @@
//! # Why this exists
//!
//! Every spawn path (`spawn_subagent`, `spawn_async_subagent`,
-//! `spawn_parallel_agents`, `continue_subagent`, `dispatch`) creates an
+//! `continue_subagent`, `dispatch`) creates an
//! `agent_runs` row at `status = "running"` and, on completion or user-input
//! pause, fires **both**:
//! * `BUS.publish(DomainEvent::SubagentCompleted/Failed/AwaitingUser)` —
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index df843526a9..8983ebc034 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -689,7 +689,7 @@ fn build_registered_controllers() -> Vec<GroupedController> {
DomainGroup::Agent,
crate::storage::import::all_session_import_registered_controllers(),
);
- // Background agent command center, workflow runs, teams, worktrees, and subagent controls.
+ // Background agent command center, workflow runs, teams, and subagent controls.
push(
&mut controllers,
DomainGroup::Agent,
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
index 331bcf1933..581339a607 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
@@ -492,7 +492,7 @@ Capability {
system prompt — OpenHuman's analog of Claude Code's CLAUDE.md / Codex's AGENTS.md. Two \
layers are read once at session start: a global layer from the OpenHuman workspace \
(<workspace_dir>/AGENTS.md) and a project layer from the folder the agent is operating \
- in (<action_dir>/AGENTS.md, or a sub-agent's isolated worktree). The global layer is \
+ in <action_dir>/AGENTS.md). The global layer is \
injected first, the project layer second (project instructions take precedence). \
Missing or empty files are silently skipped, and each layer is capped so a large file \
can't crowd out the rest of the prompt. On by default; disable via \
@@ -596,16 +596,6 @@ Capability {
status: CapabilityStatus::Beta,
privacy: DERIVED_TO_BACKEND,
},
-Capability {
- id: "intelligence.worktree_manager",
- name: "Agent Worktrees",
- domain: "intelligence",
- category: CapabilityCategory::Intelligence,
- description: "Inspect and clean up the isolated git worktrees that parallel sub-agents check out under <repo>/.claude/worktrees. Each row shows the worktree's branch, dirty state, and changed files, plus a cross-worktree overlap warning when two workers touched the same file. Open, diff, or remove a worktree (a dirty worktree requires an explicit discard confirmation; the worker branch is preserved).",
- how_to: "Intelligence > Worktrees",
- status: CapabilityStatus::Beta,
- privacy: None,
- },
Capability {
id: "intelligence.notifications_dismiss",
name: "Dismiss Notifications",
diff --git a/crates/openhuman-core/src/profiles/provider_settings_tests.rs b/crates/openhuman-core/src/profiles/provider_settings_tests.rs
index 44b038ac2b..27c8b4eb8b 100644
--- a/crates/openhuman-core/src/profiles/provider_settings_tests.rs
+++ b/crates/openhuman-core/src/profiles/provider_settings_tests.rs
@@ -82,7 +82,6 @@ fn rejects_collisions_duplicates_unsafe_identifiers_and_alias_chains() {
"shell",
"spawn_subagent",
"spawn_async_subagent",
- "spawn_parallel_agents",
"delegate",
"delegate_graph",
"continue_subagent",
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
index fd2f27e8af..d49d66a3ed 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
@@ -150,7 +150,7 @@ impl ObserveProgress for TurnStateMirror {
self.state.phase = Some(TurnPhase::Subagent);
self.state.active_subagent = Some(agent_id.clone());
// Derive the real invoking tool's name from the parent row
- // (`spawn_parallel_agents`, `spawn_async_subagent`,
+ // (`spawn_async_subagent`,
// `continue_subagent`, a synthesized `delegate_*`, …) instead
// of hardcoding `spawn_subagent`, which was wrong for every
// other delegation path. Falls back to the historical
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs b/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs
index 8fd4037c4d..1bad0d25bb 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs
@@ -626,14 +626,14 @@ fn thinking_timing_wire_shape_is_camel_case_and_backward_compatible() {
#[test]
fn subagent_spawned_derives_source_tool_name_from_the_parent_row() {
// Only `spawn_subagent` ever hardcoded a "spawn_subagent" source. Every
- // other delegation path (`spawn_parallel_agents`, `spawn_async_subagent`,
+ // other delegation path (`spawn_async_subagent`,
// a synthesized `delegate_researcher`, …) must show its own real tool
// name, derived from the parent call's row by `parent_call_id` — never
// the historical hardcoded default.
let (_d, mut m) = fresh("t");
m.observe(&AgentProgress::ToolCallStarted {
call_id: "call-parallel".into(),
- tool_name: "spawn_parallel_agents".into(),
+ tool_name: concat!("spawn_", "parallel_agents").into(),
arguments: serde_json::json!({}),
iteration: 1,
display_label: None,
@@ -660,7 +660,7 @@ fn subagent_spawned_derives_source_tool_name_from_the_parent_row() {
.expect("subagent row created");
assert_eq!(
entry.source_tool_name.as_deref(),
- Some("spawn_parallel_agents")
+ Some(concat!("spawn_", "parallel_agents"))
);
let activity = entry.subagent.expect("subagent activity present");
assert_eq!(activity.parent_call_id.as_deref(), Some("call-parallel"));
diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
index 9e2fd1e37f..bed155bcef 100644
--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
@@ -83,7 +83,6 @@ fn tool_group_classifies_gate_and_harness_families() {
"wait_loop",
"delegate",
"todo",
- "spawn_parallel_agents",
] {
assert_eq!(tool_group(name), DomainGroup::Agent);
}
diff --git a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs
index 77fe95f806..0d14a80c78 100644
--- a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs
@@ -418,7 +418,6 @@ fn all_tools_default_registry_contains_expected_baseline_surface() {
"csv_export",
"spawn_subagent",
"spawn_async_subagent",
- "spawn_parallel_agents",
"ask_user_clarification",
"read_workspace_state",
"wait",