FR00 - Functional requirements
Purpose: What Wraith Box must do for the user. The problem these answer is in S03-requirementsS03-requirements: RequirementsThe problem Wraith Box solves, and where the requirements that answer it are..
Requirements
Section titled “Requirements”- FR01-drop-in: Drop-in for claude.
wbis the single entry point for everything, structured aswb [wb flags] <command> [command args].wb claude [args]is a drop-in replacement forclaude [args]in the current directory: every argument afterclaudereaches Claude Code unchanged, with interactive TTY, piped/non-interactive use, and exit code preserved. Known gaps in V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there., from the model API profile (S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., B60-model-credentialB60-model-credential: Can Claude Code in the guest hold only a placeholder while the proxy adds the real subscription token?Yes, for a long-lived token from claude setup-token.): no auto-update, since the image sets the Claude Code version (S06-08-projects-and-sessionsS06-08-projects-and-sessions: Projects and Sessions Inside a VMHow projects map onto guest users and sessions onto worktrees, and how Claude Code runs in the guest., “Claude Code in the guest”); no changelog notice at interactive start; and no plugins from the marketplace. - FR02-any-repo: Any git repository. Works in any git repository. The first run in a repository registers the project automatically. No setup step is needed per project.
- FR03-work-as-branch: Work returns as a branch. The agent never writes to the host working tree. Its work returns as a git branch the user reviews and merges.
- FR04-carry-in: Uncommitted changes carried in. Uncommitted host changes (staged, unstaged, untracked-not-ignored) are carried into the session at start. The exceptions, each listed in the session summary with its reason: a file over the size cap, a file the secret scan matches or can’t read, and anything other than a regular file or a symbolic link. With no secret scanner, or when it fails, nothing is carried in (S08-workspace-and-gitS08-workspace-and-git: Workspace and Git Round TripHow code gets into the guest and how the agent's work gets back out, without sharing the host filesystem.).
- FR05-parallel-sessions: Parallel sessions. Several sessions can run at once, in the same project and across projects.
- FR06-native-tools: Native guest tools. Agent tool calls run tools native to the guest operating system (on macOS guests: Homebrew packages, Xcode command line tools, optionally full Xcode).
- FR07-toolchain-manifest: Declared toolchain. A project’s toolchain is declared host-side (on macOS guests, a Brewfile) and reconciled automatically before a session starts.
- FR08-no-proxy-config: No per-tool proxy settings. Allowlisted network destinations work for every tool without per-tool proxy configuration. Known gap on macOS guests (decided on I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm:): clients that read only the guest’s system trust store, such as URLSession, don’t trust the VM’s CA and never reach a guarded host. S09-08-guest-trustS09-08-guest-trust: Guest TrustHow wb-guestd makes the guest's clients trust the VM's CAs., lists them and what they reach.
- FR09-approve-unknown: Approve unknown destinations. A request to an unknown destination is blocked and offered to the user for approval out-of-band (allow once, allow for project, deny). A name on the host-held list of the guest OS’s own background lookups is refused and logged without a prompt, and so is a host whose only rules are in a built-in profile part the user turned off (S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host.).
- FR10-learn-mode: Learn mode. A learn mode, available only to projects whose
placementiswork(S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command.), records the destinations a project needs and proposes an allowlist. Unknown destinations stay refused (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.), and learn mode collects them for one review instead of asking for each. - FR11-port-forward: Port forwarding. Dev servers listening in the guest are reachable on host loopback.
- FR12-clipboard: Opt-in clipboard. Text clipboard sharing is opt-in, per direction, with approval.
- FR13-claude-state: Claude Code state per project. Claude Code’s conversation history, and the state it keeps only in
the guest, persist per project, so
--resume/--continuework within a project. The settings carried in from the user’s~/.claude/come from the host at each session start (S14-claude-in-guestS14-claude-in-guest: Claude Code in the GuestHow Claude Code gets into the guest image, which of the user's Claude Code configuration goes with it, how it starts, and the agent interface that keeps Claude Code's specifics in one place (V1-02-claude-only).), so a change made to them in the guest lasts one session. - FR14-ephemeral: Ephemeral sessions. An ephemeral mode runs a session with no persisted state.
- FR15-inspect: Inspect what happened. The user can inspect what happened: per-session audit log, policy explanation, diff of returned work with risky changes flagged. Network events are attributed to a session only by a label the guest reports, and the log shows them as reported by the guest (T11-shared-vm-grantsT11-shared-vm-grants: Projects in one VM share network grantsThe host sees one guest address per VM, and can't tell which project user, session or program opened a connection.).
- FR16-wsl: WSL on Windows. On a Windows host,
wbrun inside a WSL 2 distribution works on repositories in that distribution, using the VMs and services of the Windows host. It does not start a second set of VMs inside WSL. - FR17-same-everywhere: Same on every host. The same
wbcommands, flags, policy files, and behavior on every host OS. Differences are limited to what S12-platformsS12-platforms: PlatformsWhich host and guest operating systems Wraith Box targets, how platform-specific code is isolated, what each platform uses, and how wb works inside WSL. lists.