propose_plan: a Markdown summary and its steps, each with the files it touches and the requirements it advances. The Plan approval card shows them in the chat. Approving it moves the workspace into Code and loads the agent's todo list from the steps; each step is marked done as the agent completes it. Rejecting it sends your note back. A new proposal revises the plan, and steps with the same ID keep their progress.code_search use the cloud-owned working copy. Shell commands, grep, ast_grep, and lifecycle execution need an attached machine.machines tool, on machines whose Agents may attach switch is on (the default) under Settings › Machines. It receives a notice when an attached machine goes offline for more than a minute, comes back, fails setup, or has a sync conflict.AGENTS.md, .agents/ and .omp/ instructions. Personal preferences from Settings › Agent preferences arrive on the turns their person starts..gitspace/, the built-in workspace-lifecycle skill inspects the repository and CI, proposes the lifecycle split, and asks permission before editing. Execution needs separate human approval of the final content. Agents use the environment tool for authorized runs and logs; they cannot grant content approval or recover uncertain runs. See Workspace lifecycle.agents with op: 'spawn' and a complete task. agent selects a granted agent definition by name or path, and role a model role (Default, Deep, Fast, Taste, or one the profile adds). Without either, the child is a worker on the Fast role. Optional name sets the child's address, not its model or definition. Set background: true when the child must outlive the foreground turn.1{ "op": "spawn", "agent": "Reviewer", "task": "Review the changed API for compatibility." }
read, find, code_search, grep, ast_grep, history_search, history_read, web_search, web_fetch, todo, the headless browser, and agent messaging. code_search searches the cloud working copy through its index with no machine; grep is exact ripgrep and needs an attached machine. Children cannot access the user's relay browser. A definition's tool list can narrow this, or add bash, proc and the project's MCP tools; children never get file edit tools or nested spawning. Children can message their parent and siblings; they cannot spawn or stop agents.agents wait returns, and wakes an idle parent.agents with { "op": "send", "to": "Reviewer", "message": "Focus on removed fields." }. Addresses can be names or conversation IDs; children can use parent. list and status show the conversation family. Messages enter durable history with the sender's name and ID.{ "op": "wait", "timeoutMs": 30000 } returns the first pending event, a timeout, or a stopped result. It does not wait for every child. Messages, command completions, and process exits can each wake a wait.bash for finite commands. cwd defaults to the repository root. A background command returns a durable job handle immediately and delivers its completion automatically.1{ "command": "bun run build", "background": true }
bash tool with op: 'list' to discover this conversation's background commands. Pass the returned job object unchanged to status, wait, logs, or cancel. wait accepts timeoutMs; logs accepts lines, head, and cursor. There is no separate jobs tool.proc for services and interactive programs. A start request takes a typed spec with name and application; put arguments in spec.args, not in a shell command string.123456789{ "op": "start", "spec": { "name": "web", "application": "bun", "args": ["run", "dev"], "ready": { "port": 5173, "timeoutMs": 30000 } } }
cwd, pty: true, empty args and env, restart: 'no', persist: true, and detached: false. Readiness can check log, port, and optional host. A readiness timeout leaves the process alive; inspect timedOut and matched before claiming it is ready.proc operations by name. Use list, status, and describe to inspect processes; wait accepts for: 'ready' or 'exit', an optional pattern, and timeoutMs. logs supports lines, head, grep, cursor, follow, and timeoutMs.op: 'send', text, and optional enter (default true) or keys. The same operation accepts signal, or cols and rows for resizing. Use stop or restart to change process state. Exits of agent-started processes produce durable notifications.0 6 * * *), when you start it with Run now, on GitHub events on the project's repository (a pull request opened, a check suite completed, a comment, …), or when a gitspace:plan, gitspace:code, gitspace:review or gitspace:ship label is added to an issue or pull request. Conditions filter the event: base or head branch, author, draft, labels, changed files, conclusion, review state, whether it is linked, whether it mentions your bot. It then messages the project agent or a workspace, starts a workspace for the pull request, issue or branch (in Plan, Code, Review or Ship, linked to it), or sends the event to the workspace linked to it. Its instruction may name {{automation.name}}, {{scheduled_for}} on a schedule, {{requested_by}} when started by hand, and the event's fields on GitHub triggers ({{pull_request.html_url}}, {{subject.url}}, …); a field the trigger does not have is refused when you save. Runs execute in the cloud: a run is the workspace agent's next turn, and that agent attaches a machine only when its work needs one.@gitspace-<handle>; without a link, to the project agent) and a notice when it is merged or closed. Test with a past event in the editor shows what an automation would do with a delivery GitHub sent earlier, with its checks and its first message; Run it acts on that delivery once.space_* tools from a codemode script, as tools.space_workspace(args), not through a CLI or a JavaScript space namespace. space_workspace with args: { method: 'list' } returns the workspace definitions in the current project, including closed workspaces, each with its status: what its agents are doing (working, waiting on you and on what, idle or failed), its linked pull request and since when. Method board returns the same as one line per workspace. Both read stored rows once and wake no workspace. Method status with a workspaceId reads one workspace's last report. Method current reads the current workspace.space_workspace read fails, the agent gets the reason and says it could not read the current state instead of answering from memory. A tool call cut off by a restart of the project's object says so, and points to Monitoring for the likely cause, often its memory limit.space_workspace with args: { method: 'create', name, branch, sourceKind, sourceRef } to create a workspace. Optional fields include phase, dependsOn, goal, workflow, and rubric. Check the returned ready field. If an instruction write fails after creation, the result includes the created workspace identity and completed writes so the agent can repair that workspace instead of creating a duplicate.phase is omitted. The browser creation dialog also defaults to Plan; selecting another phase explicitly (including creation from a board column) keeps that choice, subject to the phase rule. Existing and restored workspace phases are unchanged. Initial Goal and Workflow drafts remain separate typed instructions and are not rewritten by the workspace phase default.sourceKind: 'branch' with a reference such as origin/develop or refs/remotes/origin/develop. GitSpace fetches that source with the project's repository credentials; it does not require a cached tracking reference or an open base checkout.sourceKind: 'workspace' and its workspace ID as sourceRef. The new workspace starts from the source's latest committed state, not its uncommitted changes. Creation does not open or transfer the source or change its branch. The new workspace is stacked on the source, so its phase can't be later than the source's.space_phase changes the current workspace's phase. The space_workspace tool also supports setRelations, open, and restore under the workspace lifecycle and checkpoint rules. Keep the revision and placement generation from the latest read; stale changes reject. An agent cannot close or archive its own workspace from a running tool. Use the browser for that action.space_workspace method start, with a workspaceId and an instruction, sends that workspace's agent an instruction, so workspaces start working without you opening each. when: 'steer' (the default) reaches a running turn at its next tool call, or starts one; when: 'queue' runs it after the current turn. The turn's report, when it finishes, fails or asks something, comes back to the sender. The started agent attaches its own machine when it needs one, and a workspace in Plan still proposes its plan for your approval.questions lists the questions a workspace's agents are waiting on, from the main agent and its subagents, and why any of them can't be answered for you.answer proposes answers to plain questions. One approval card in the sender's conversation lists them and says who answers; nothing is sent until you approve it. The asking agent then continues as it would after your answer, is told who answered, and its card shows who answered for you. Plan approvals, lifecycle approvals and take-over requests are always yours.start, questions or answer.workspaceId inside args to space_goal, space_workflow, or space_rubric to edit another workspace in the same project. Use method get to read, describe with operation: 'put' for the input schema, and put to write. Closed workspaces stay closed. Writes require the record's expectedRevision; use zero only when creating an absent record.drive://workspace/<path> and drive://base/<path> (the project's drive). Workspace agents can read the project drive but write only their workspace's. Project agents can write the project drive. Any agent can read another workspace's drive in the same project, archived ones included, as drive://workspaces/<workspaceId>/<path>. Published edits refresh open views; evidence references still point to their recorded version. An image a message shows stays as it was when the message was written.review-guide-narrator skill, with a diagram for most sections and a narrated walkthrough. A guide without a walkthrough plays one built from its sections.plan, code, review, and ship. Phases are lanes: moving a workspace into Ship pushes nothing, and GitSpace doesn't start, wait for or block on CI when a workspace changes phase. Archive it only after the operational state agrees with the completion claim.ghost_ask, including about their own conversation from before a compaction.