---
title: "Authoring surface: Effects"
description: Work a Machine does outside itself, as an actor slot (ADR-0067, ADR-0068, ADR-0071, ADR-0079), and what an author writes between a pick and that work.
---

# Authoring surface: Effects

This page is one group of the names that `@jr2/orchestrator` exports from its root, on the [Authoring surface](../authoring-surface.md) page. It gives each name its kind and the first sentence of its TSDoc. Each name has a page of its own, in this folder.

Work a Machine does outside itself, as an actor slot ([ADR-0067](../decisions/0067-an-effect-is-an-actor-slot-and-runs-at-most-once-unless-marked-idempotent.md), [ADR-0068](../decisions/0068-an-effector-holds-an-effects-secrets-and-signs-its-wire.md), [ADR-0071](../decisions/0071-a-run-starts-a-run-through-a-dispatch-effect.md), [ADR-0079](../decisions/0079-an-agent-holds-mcp-tools-a-machine-calls-them-as-an-effect-and-the-machine-is-the-approval.md)), and what an author writes between a pick and that work.

- [`arg`](arg.md) (constant): Mark one argv entry of a `command` that the input of the Effect fills.
- [`CommandOutput`](type-commandoutput.md) (type): The output of a `command` Effect: what the `onDone` of its state gets as `event.output`.
- [`LaterOutcome`](type-lateroutcome.md) (type): A value of `outcome` that this kit does not give.
- [`command`](command.md) (function): Make a `command` Effect: an actor slot that runs one program in the Workspace's Sandbox when a state invokes it.
- [`basic`](basic.md) (function): Make the `auth` of an `http` Effect that sends `Authorization: Basic <value>`, where the value is the base64 of `user:password`.
- [`bearer`](bearer.md) (function): Make the `auth` of an `http` Effect that sends `Authorization: Bearer <value>`, with the value of an Effect secret.
- [`file`](file.md) (function): Make a Worktree file the body of an `http` Effect: `body: file("dist/report.pdf")`.
- [`http`](http.md) (function): Make an `http` Effect: a call to a URL, with Effect secrets that the Agent never reads.
- [`secret`](secret.md) (function): Name an Effect secret: `secret("jira")`.
- [`text`](text.md) (function): Make a string from literal text and Effect secrets, as a tagged template: `` text`Token ${secret("x")}` ``.
- [`HttpOutput`](type-httpoutput.md) (type): The output of an `http` Effect: what the `onDone` of its state gets as `event.output`.
- [`push`](push.md) (function): Make a `push` Effect: it pushes the branch of a Worktree to the Binding of its Repo Slot.
- [`PushOutput`](type-pushoutput.md) (type): The output of a `push` Effect: what the `onDone` of its state gets as `event.output`.
- [`branchName`](branchname.md) (constant): A kit schema for a pick param that names a branch.
- [`isReady`](isready.md) (constant): Is it `ready`?
- [`readyOf`](readyof.md) (function): The `ready` output of an `onDone` arm that `isReady` guards.
- [`worktree`](worktree.md) (function): Make a `worktree` Effect: it cuts a Worktree of a Repo Slot, or reads the one that is there.
- [`handoff`](handoff.md) (constant): The schema of a `Handoff`, for a door's input or a pick's param: `z.object({ handoff })`.
- [`Handoff`](type-handoff.md) (type): A Handoff: the commit of a `ready` cut of an enclosing Workspace, which a nested Workspace takes at its own cut (ADR-0080).
- [`AnyFramePath`](type-anyframepath.md) (type): A Turn's Frame: a Worktree, or `/work`, stated.
- [`AnyWorktreePath`](type-anyworktreepath.md) (type): A Worktree of any Repo Slot: what a kit factory states, before `jr2Setup` narrows it to the slots of the body.
- [`FramePath`](type-framepath.md) (type): A Turn's Frame in a Workspace with the Repo Slots `S`.
- [`WorktreeFound`](type-worktreefound.md) (type): What a cut found.
- [`WorktreeInput`](type-worktreeinput.md) (type): The input of a `worktree()`: a branch Worktree, a detached one, or a branch Worktree at a `Handoff`.
- [`WorktreeOptions`](type-worktreeoptions.md) (type): The options of `worktree()`.
- [`WorktreeOutput`](type-worktreeoutput.md) (type): The output of a `worktree()`.
- [`WorktreePath`](type-worktreepath.md) (type): A Worktree of the Repo Slots `S`.
- [`WorktreeReady`](type-worktreeready.md) (type)
- [`WorktreeRefused`](type-worktreerefused.md) (type): No Worktree, and nothing changed.
- [`dispatch`](dispatch.md) (function): Make a `dispatch` Effect: it starts a run of a Workflow.
- [`DispatchOutput`](type-dispatchoutput.md) (type): The output of a `dispatch` Effect.
- [`mcp`](mcp.md) (constant): The `mcp` Effects (ADR-0067, ADR-0079): `mcp.call(server, tool, { input })` calls a tool, `mcp.read(server, uri)` reads a resource, and `mcp.prompt(server, name, { input })` gets a prompt.
- [`McpOptions`](type-mcpoptions.md) (type): The options of an `mcp` Effect.
- [`McpCallOutput`](type-mcpcalloutput.md) (type): The output of an `mcp.call` Effect: what the `onDone` of its state gets as `event.output`.
- [`McpOutput`](type-mcpoutput.md) (type): The output of any `mcp` Effect: a call's, a read's or a prompt's.
- [`McpReadOutput`](type-mcpreadoutput.md) (type): The output of an `mcp.read` or an `mcp.prompt` Effect.
- [`answer`](answer.md) (function): Set what the Agent reads when jr2 answers its pick.
- [`fromPick`](frompick.md) (function): Make the `input` of the invoke of a state that a pick enters: the params of the pick go to the input of the invoked actor by name.
- [`paramsOf`](paramsof.md) (function): Read the params of a pick from the event that entered the state.
