pwd on your Mac and on a Reason cloud computer. The steps are generic for any ACP client, and the T3 Code example shows where each value goes.
What you will have
- An ACP app with one Reason provider.
- A thread that runs
pwdon this Mac and on a Reason cloud computer, with both results in the reply. - That thread visible in the Reason app, and continuable with
reason send.
Prerequisites
Run these in a terminal:reason whoami must name the intended Workspace. reason login --pair CODE chooses it. Use plain reason login to pick one in the browser.
For cloud work on a project’s repository, install the Reason GitHub App on that repository. Without it, a cloud Session has no checkout of that repository.
Configure the provider (T3 Code example)
Find the absolute path toreason, because a Finder-launched app gets a bare PATH, and T3 starts the agent without a shell:
~/.t3/userdata/settings.json:
commandPathis the absolute path fromcommand -v reason.commandArgsis hidden in T3’s settings screen. It is--workspace SLUG acp -y:--workspacenames the Workspace slug (check it withreason whoami), and-yaccepts the defaults so a thread does not stop to ask.- The
REASON_WORKSPACEenvironment variable does the same job. It arrives in the next CLI release; until then, use the--workspaceargument above.
Test it
The standard self-test for anyone building on Reason, human or coding agent. Send these two messages to any coding agent, Reason included, in the same session:- Build:
Fork T3 Code (github.com/pingdotgg/t3code) and make it use the Reason runtime (reasonmachines.com). - Verify (same session, afterwards):
Show that one thread in your T3 Code fork runs pwd on this computer and on a Reason cloud computer, with both outputs and the Session ID.
/home/runner/.reason/workspace/sessions/<id>/...), run through the fork’s T3 thread. A reply that shows only one path is not a pass.
Run the check through the fork
Run the check through the fork itself, not a separate script that spawnsreason acp. A script that spawns reason acp skips the fork, so it does not count. For T3 Code, run these from the fork’s checkout:
--home-dir /tmp/t3-test) and use that same dir as --base-dir. Never point the check at an installed app’s data (~/.t3, ~/.t3-<name>) or an already-running T3 server: that tests the installed app, not your fork, and changes the user’s real app.
Pass: that one thread’s reply has a path under your home folder and a /home/runner/.reason/workspace/sessions/<id>/... path.
Does not count: a standalone script that spawns reason acp, a reply with only one path, or a thread that never ran through the fork’s reason provider.
Verify
- Start one thread and send: Run pwd on this Mac and on a Reason cloud computer. Report both results.
- The reply shows two paths: one from this Mac, one from a cloud computer.
- The Session appears in the Reason app.
- Continue it from a terminal:
reason send SESSION_ID "Run whoami."The reply appears in the thread after you reopen it.
When a thread moves to another computer
The agent can move its Session to another computer during a turn, for example from your Mac to a Reason cloud computer. The turn on the new computer streams into the same ACP prompt. The editor does not send a new prompt. While the new turn waits to start, the thread shows this message:Reason continues this Session with a queued turn; waiting for it to start. The wait lasts up to 10 minutes.
Which computer a thread runs on
Each thread’ssession_info_update carries the computer it runs on in _meta under the key com.reasonmachines/computer:
- Cloud:
{ "kind": "cloud", "name": "Reason cloud" }. - Mac or headless:
{ "kind": "mac" | "headless", "name": ..., "device_id": ..., "root_id": ... }.nameisnullwhen the device name cannot be read.
initialize advertises support in agentCapabilities._meta["com.reasonmachines/computer"] as true. A client that does not read this key can ignore it.
Optional: your own fork identity
A fork of T3 Code can ship under its own name without colliding with the original app. Give it its own:- bundle identifier,
- data directory,
- Electron profile,
- and no update feed, so it never installs the upstream build over itself.
Reference fork
A working fork with the Reason provider wired in:- Repository: svemyh/t3code, branch
reason-provider. - The Reason-specific code is in
seedReasonInstancesinapps/server/src/provider/ProviderInstanceRegistryHydration.ts. Everything else is upstream T3 Code.
ACP Registry
When Reason is listed in the ACP Registry, choose Reason as the first option in the registry picker.The ACP Registry entry is pending. Until it is listed, add the provider with the settings above.

