Factory SPEC A developer has built Factory, a macOS desktop app that runs all of a user's projects through AI agent harnesses such as Claude Code inside isolated virtual machines. Factory itself performs no agentic work; it acts as the interface, organizer and gatekeeper, with approval gates placed only where work leaves a machine, such as git remotes, app configuration and plugins. The app is built on Tauri with a Rust core, QuickJS-embedded JavaScript plugins, SQLite state and bundled local VMs, and is designed for a single user while staying clean enough to open source later. | | Factory | | | Factory is a desktop app for running all of one person's projects through AI agents. It does no agentic work itself: agent harnesses such as Claude Code do the work inside isolated machines, and Factory is the interface, the organiser and the gatekeeper around them. | | | "Factory" is a working name. | | | Principles | | | - The core is small. Every feature outside the core is a plugin, including the ones that ship with the app. | | | - Agents never run on the host by default. They run in machines. | | | - A machine is the agent's own. Factory does not restrict what an agent does inside it. | | | - Gates sit only where work leaves a machine: the user's git remotes, the app's configuration, plugins. | | | - Everything the app can do is an action. The user, flows and agents all call the same actions. | | | - The user decides which actions need their approval and which agents may perform alone. | | | - Configuration is plain files that the user and agents can read. Agents change them through actions. | | | - Version 1 is built for one user on macOS. It stays clean enough to open source later. | | | Trust model | | | Factory trusts agents to do their work. It guards against accidents, not against a hostile agent. | | | \| Inside a machine, an agent has \| Outside a machine, an agent has \| | | | \|---\|---\| | | | \| Root \| No access to the host's files or processes \| | | | \| Open outbound network \| Only actions, each decided by policy \| | | | \| The harness without permission prompts \| \| | | | \| The project code, the workspace's secrets and the harness credential \| \| | | | - Roles separate duties. Two sessions in one machine are not walled off from each other. | | | - Nothing stops an agent from sending what is in its machine over the network. | | | Stack | | | \| Part \| Choice \| | | | \|---\|---\| | | | \| Shell \| Tauri: Rust core, web UI \| | | | \| Plugin logic \| JavaScript in an engine embedded in the core QuickJS \| | | | \| Plugin UI \| Web views in frames that cannot reach the core directly \| | | | \| Runtime state \| SQLite \| | | | \| Configuration \| Files under ~/Factory \| | | | \| Local VMs \| Bundled svm , with its own SVM HOME , SVM CACHE and SVM RUNTIME \| | | | \| In each machine \| The guest agent, one Linux binary \| | | | \| Process model \| One process that stays in the menu bar \| | | | \| Outside control \| A local socket and a factory CLI on the host \| | | | Model | | | | | | Workspace | | | ├─ Projects git repos or plain folders | | | ├─ Image base machine for this workspace | | | ├─ Flows | | | ├─ Policy | | | ├─ Secrets | | | └─ Tasks | | | └─ Task one run of a task flow, in one machine | | | └─ Sessions | | | | | | \| Thing \| Meaning \| | | | \|---\|---\| | | | \| Workspace \| What the user maintains: a product, a client, an initiative. Workspaces do not know about each other. \| | | | \| Project \| One source inside a workspace: a git repo, a subpath of a repo, or a plain folder. A workspace has zero or more. \| | | | \| Image \| The prepared base machine of a workspace: tools, dependencies and harness binaries. \| | | | \| Task \| One unit of work. It is one run of a task flow. It sees all projects of its workspace unless narrowed. \| | | | \| Session \| One harness run inside a machine. \| | | | \| Machine \| Where sessions run. \| | | | \| Flow \| A file of steps. \| | | | \| Action \| A named operation, such as task.create or git.push . \| | | | \| Policy \| Rules that decide whether a caller may perform an action. \| | | | \| Secret \| A named value of a workspace, given to its machines as an environment variable. Agents in those machines can read it. \| | | | \| Plugin \| A folder that adds actions, adapters, providers, views, triggers or themes. \| | | | - The same repo can be added to several workspaces. Each workspace treats it as its own project. | | | - A subpath sets where the agent starts. It is not a boundary: the whole repo is in the machine. | | | - A workspace with one project shows as a single level in the UI. | | | Task states | | | \| State \| Meaning \| | | | \|---\|---\| | | | \| open \| Created, not started \| | | | \| queued \| Ready to start, waiting for a free machine \| | | | \| working \| At least one session is running \| | | | \| waiting \| No session is running and a session or an action waits for the user \| | | | \| review \| The work is fetched to the host and not yet approved \| | | | \| done \| The task flow finished \| | | | \| failed \| A step failed and the user has not retried or discarded \| | | | \| discarded \| Closed without delivery \| | | | - On svm , a task's machine is deleted at done and discarded . | | | - On svm , a task's machine is stopped in review , and in waiting after an idle timeout. Sessions resume when the machine starts again. | | | - A closed task can be reopened: a new machine from the image, the task branch from the mirror, and the saved harness state. | | | - Each task has an out folder on the host for results that are not code. It is kept after the machine is deleted. | | | Machines | | | \| Provider \| Machine \| Per task \| Agent can reach the user's Mac \| | | | \|---\|---\|---\|---\| | | | \| svm \| Local Linux VM \| A fresh machine from the workspace image \| No \| | | | \| ssh \| A remote host the user provides \| A directory on that host \| No \| | | | \| host \| The user's Mac \| A git worktree \| Yes \| | | | - svm guests are Linux only. Work that needs macOS, such as Xcode builds, uses the host provider or a remote Mac over ssh . | | | - An ssh machine is long-lived and shared by its tasks. Factory creates and deletes nothing on it except task directories. Images do not apply. | | | - On the host provider policy is not enforced: an agent on the Mac can act as the user. | | | - A workspace uses the host provider only when its workspace.toml says so. | | | - CPU, memory and disk per svm machine are set in workspace.toml . config.toml caps how many machines run at once. | | | Images | | | - A workspace image is built from a setup script in the workspace folder and saved with svm image save . | | | - An image is named by the hash of its setup script. A changed script builds a new image. | | | - A task keeps the image it started with. Images that no task uses are deleted. | | | - A task machine is created with svm create