Skip to content

Operations · dev-environment

Dev Environment — Orca as the agent host ​

This page explains where agent sessions run. We use Orca Dev as the host for agent work; PhpStorm and VS Code stay the editors for reading, editing and debugging, opened on the worktree paths Orca creates.

Parallel work needs a checkout per unit of work, a terminal per agent and a way for the agent to create both. Orca exposes worktrees, terminals and supervised workers through a CLI, so /wave can create slices, dispatch a worker into each, wait for it to finish and clean up without a click sequence. Each terminal can run Claude Code, Codex or OpenCode, so the host stays independent of the runtime.

Orca is not an editor, a review gate or a security boundary. Worktrees isolate files, not Git refs; merge and review gates still decide correctness, and permissions.deny plus chmod 600 .env stay required.

Before your first session, follow Orca settings for devkit on your Mac and each paired server, including the separate Workspace Cleanup checklist.

Host comparison ​

CapabilityOrca DevClaude Code macOS appVS Code / PhpStorm
Worktreecard, terminal and diff per sliceautomatic under .claude/worktrees/second project window by hand
Parallel agentsterminal per sliceparallel worktree sessionsmanual window management
Parallel slices with a coordinatoryesnono
RuntimeClaude Code, Codex or OpenCodeClaude, model chosen per sessionany CLI in a plain terminal
Agent controlorca worktree, orca terminal, orca orchestrationsessions start in the UIno host CLI

Orca fits coordinated waves because an agent can create and supervise its own slices; the macOS app is the more convenient choice for a human-driven single session.

Choose the flow ​

  1. One approved spec: /spec-work <ID> in the current checkout. A single-slice /wave is available when explicitly requested; it uses an isolated worktree and reviewed landing.
  2. Several approved specs without file overlap: /wave, one routed worker per slice.
  3. No Orca host: /spec-work <ID> sequentially in the current checkout. This is a supported boundary, not a defect; --worktree stays opt-in because VS Code and PhpStorm do not switch their visible project.
  4. Edit a slice: open its worktree path as a normal PhpStorm or VS Code project. Orca owns the checkout, the editor owns the file.

Server work and progress ​

NeedAction
Hand work to a connected Orca serverdevkit offload start <spec-id>; fetch the result with devkit offload collect <spec-id>
Watch pending workdevkit progress --watch; resolve the worker's named action for PROGRESS_BLOCKED, or use the printed reply command for PROGRESS_QUESTION
Keep build output out of SpotlightmacOS worktrees link rust/target to target.noindex; devkit offload run keeps server checkouts under ~/.cache/devkit-offload-run.noindex/

Linux worker build caches ​

On each Spark, provide rustup's Cargo (pinned by rust-toolchain.toml), GCC 12.1+, mold 3.0.0, sccache 0.19.0 and cargo-sweep 0.8.0 in the user's PATH. Install architecture-matched Linux mold and sccache binaries in ~/.local/bin, or use Cargo:

sh
sh
cargo install sccache --version 0.19.0 --locked
cargo install cargo-sweep --version 0.8.0 --locked
ln -s mold ~/.local/bin/ld.mold

devkit worktree-setup enables available tools for Linux x86_64/aarch64 workers; SessionStart also runs it. The ignored rust/.cargo/worker-cache.toml preserves personal overrides. Sccache requires nonincremental dev/test compilation. Missing tools retain defaults.

The shared compiler store is ~/.cache/devkit-worker/sccache (default 10 GiB LRU); its server uses ~/.cache/devkit-worker/sccache.sock. Every worker keeps private rust/target artifacts and Cargo locks. Keep the default target or use --target-dir: exporting a unique CARGO_TARGET_DIR defeats Rust cache hits. Daily cleanup expires disposable state after 14 days and uses cargo-sweep (7 days / 50 GB) when installed.

Setup reports WORKTREE_RUNTIME=<path> for an exact-tree installed runtime; test-prep can reuse it for a clean checkout. Required integration binaries may still compile. macOS, client repos and the clean room retain their defaults; the host config/store never enters the clean room. Measurements and details: devkit/audit/83-linux-worker-build-cache-2026-11-17.md.

One task, one worktree ​

Start parallel work in its own Orca worktree, not another session in the same checkout:

sh
sh
ORCA_BIN="$(devkit orca-detect --print-bin)"
"$ORCA_BIN" worktree create --name fix-login --agent claude --prompt "Fix the login redirect"

devkit init seeds a missing .worktreeinclude with .env, .env.local and .claude/settings.local.json; an existing one is repo policy and only gains .agents/context/component-inventory.json. Orca copies only existing, gitignored literal paths; tracked or missing entries are skipped. Dependency directories are not shared: the first session in a fresh linked worktree starts devkit worktree-setup in the background, once per worktree. An installed worktree and the main checkout stay silent. A live peer in the same checkout triggers one hint per session.

When the session ends, devkit lands clean Orca worktree commits locally on its base branch through the delegate landing path, preserving unrelated staged and unstaged main-checkout work, then removes the worktree through Orca. It never pushes. Dirty trees, conflicts, an off-base main checkout, or another live session keep the worktree with WORKTREE_GC_KEPT; delegate and wave worktrees retain their own lifecycle. Recovery tips stay under refs/devkit/gc/; the landing line names the pre-landing ref for git reset --keep <ref>.

Internal docs — onedot-devkit · devkit

devkitdevkit syncdevkit statusdevkit doctordevkit helpInternal docs · ONEDOT digital crew