Bring your T3 Code setup to rysh

Some teams describe their project's scripts and worktree defaults in a t3.json file for T3 Code. If you want to run the same scripts in rysh, the agentic development environment, this page shows how to carry them over by hand: your setup script, your dev and test commands, and a worktree per task. rysh does not read t3.json, and nothing on this page changes your t3.json.

What a t3.json holds

In T3 Code's own words:

Check a t3.json file into your repository root to share project actions (setup, dev, test, and cleanup scripts), worktree defaults, icons, and multi-repo settings with everyone opening the repo in T3 Code.

(T3 Code docs, docs/user/t3-json.md, https://raw.githubusercontent.com/pingdotgg/t3code/main/docs/user/t3-json.md, read 26 November 2026.)

The fields this page uses, as that page describes them:

Field T3 Code's description
defaultThreadEnvMode ""local" or "worktree" — default workspace mode for new threads."
scripts[].command "Shell command run in a T3 terminal at the project root."
scripts[].runOnWorktreeCreate "Runs automatically when a new worktree is created."
scripts[].runOnSettle "Runs in the thread's worktree whenever the thread settles (skipped in main checkouts)."
scripts[].previewUrl "Opens this URL in the in-app browser when the script runs (desktop only)."

1. Install rysh

On macOS or Linux:

curl -fsSL https://rysh.ai/install.sh | sh

The installer checks the download against the release's published checksum and puts the command ry on your PATH. (The open-source build is a separate program named rysh. This page uses ry.) rysh does not support native Windows today; on Windows, use WSL2, where the Linux build runs unchanged.

Start a session in your repository:

cd ~/src/<repo>
ry

2. Your setup script: .rysh/workspace.yaml

##task start makes a task workspace: its worktrees, a pane, the setup script you name and the ignored files you list copied in; archive and restore it; the desktop board shows where each task stands.

rysh names a script file, not a command line. So put the command of your t3.json setup action (the one with "runOnWorktreeCreate": true) in a small script, commit it, and name it in .rysh/workspace.yaml:

# scripts/setup-worktree.sh   (commit it)
#!/bin/sh
set -e
pnpm install          # your setup action's "command"
# .rysh/workspace.yaml   (commit it)
setup: scripts/setup-worktree.sh      # typed into the new pane, in the worktree
archive: scripts/archive-worktree.sh  # optional: typed into the pane when you archive the task
copy: [.env.local]                    # optional: files git ignores, one path each, no globs

If you have a cleanup command you run when you are done with a worktree, you can put it in the archive script. rysh types it when you archive the task (##task archive), not when an agent finishes, so it does not replace runOnSettle.

.rysh/workspace.yaml and the scripts it names are part of workspace trust: after any change to them the workspace is untrusted, and runs and copies nothing, until you trust it again:

##workspace trust

3. A worktree per task

Where a t3.json says "defaultThreadEnvMode": "worktree", give each piece of work its own task in rysh:

##task add Fix the login redirect
##task claim <id>
##task start <id>

##task start makes a git worktree at <repo>/.rysh/worktrees/task-<id> on the branch task/<id>, opens a pane in it and types your setup script there (on the first start). When you are done:

##task archive <id>      # closes the pane, removes clean worktrees, keeps the branch task/<id>
##task restore <id>      # brings the worktree back from task/<id>

A task can span several repositories: ##task add <title> --repo <path> --repo <path>.

4. Dev and test commands as panes

For each other action in t3.json (dev server, tests, lint), add a pane and run the action's command in the task's worktree. In the task's pane, type:

##new pane

rysh adds a pane at the bottom of the same lane and leaves you in the pane you typed in. Move to the new pane, name it, and start the command there:

##pane name dev
cd ~/src/<repo>/.rysh/worktrees/task-<id>
pnpm dev              # your dev action's "command"

Do the same for your test command (##pane name test). If an action has a previewUrl, open that address in your browser once the dev server is up.

Close the terminal UI and the session keeps running: detaching quits only the UI.

5. What you set up by hand

These t3.json settings have no rysh field. If you rely on them, do the same in your setup script or by hand:

Help

Questions, or a setup that did not carry over? Write to info@rysh.ai. More on rysh: the docs.