t3-workflows
Skill83k starsChanged 4 days agoMITView on GitHub
Author, edit, run, and debug durable T3 Code workflows (`~/.t3/workflows/*.ts`). Use when asked to build or change a multi-step T3 Code automation tying together agent threads, code steps, schedules, webhooks, issue/PR trackers, or human approvals, or to inspect, resume, signal, or cancel workflow runs.
2 other projects use a version of this; 2 new projects in the last 4 weeks, against 0 the 4 before.
Adopted by
Surging: 2 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- GitJarno/Stemcellsword for word, first seen Nov 29, 2026
- AlekDob/quack-appword for word, first seen Nov 29, 2026
Who's talking about pingdotgg/t3code
- Nimrod“T3 Code tutorial: my whole setup, every agent on every computer”YouTube · Nov 7, 2026 · 40k views
- Matt Feroz“Why T3 Code is suddenly everywhere”YouTube · Nov 9, 2026 · 6.8k views
- Thomas Bekkers“T3 Code After a Month: My Honest Review”YouTube · Nov 9, 2026 · 4.4k views
- Batraz Botsiti“Why you need to try T3 Code”YouTube · Oct 23, 2026 · 1.6k views
- Weights Unlocked“T3 Code: one open-source app for Claude Code, Codex and Cursor (and the catch)”YouTube · Nov 2, 2026 · 1.2k views
The biggest 5 of 108 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 108
Talked about on GitHub, Bluesky, YouTube, Hacker News and the web (108 times).
On GitHub · 50
- Nov 13, 2026[FEATURE] Support Code Mode in Agent SDK sessions — anthropics/claude-code24 reactions · 4 comments
- Aug 28, 2026Add theme support for T3 Code — omacom/omarchy9 reactions · 2 comments
- Oct 26, 2026feat(adapters): add t3code_local adapter for T3 Code threads — paperclipai/paperclip6 reactions · 7 comments
- Mar 7, 2026t3-code 0.0.4 (new cask) — Homebrew/homebrew-cask6 reactions · 3 comments
- Oct 26, 2026fix(claude): put the rate-limit reset in 429 error messages — router-for-me/CLIProxyAPI3 reactions · 7 comments
45 more on GitHub
- Nov 21, 2026[Bug]: agy acp (mode=adc / agent-platform) fails all OAuth token refreshes after 60 minutes with "context canceled" and silently returns empty end_turn — google-antigravity/antigravity-cli2 reactions · 3 comments
- Nov 7, 2026gpt-6.1-terra ends turns early when a client starts the turn through app-server; the same task completes via `codex exec` and as a `spawn_agent` child — openai/codex2 reactions · 7 comments
- Oct 30, 2026Update Request: t3code 0.1.0 → 0.1.5 — NixOS/nixpkgs2 reactions · 1 comment
- Oct 5, 2026エージェント指示に surface 確認と用語集を加え、出荷済み migration と応答性テストを固定する — dahlia-org/dahlia2 reactions · 2 comments
- Sep 9, 2026Retry missed daily releases with scheduled polling — scope-vcs/scope-vcs2 reactions · 1 comment
- Mar 14, 2026[Feature Request] Optimize performance for loading sessions — openchamber/openchamber2 reactions · 2 comments
- Mar 7, 2026feat: add Claude Code adapter — Shahfarzane/t3code-ccc2 reactions · 1 comment
- Nov 27, 2026Sync upstream (six-hourly): t3code-nightly-bin 0.1.13_nightly.20261126.5305-1 — omacom/omarchy-pkgs1 reaction · 2 comments
- Nov 27, 2026Sync upstream (six-hourly): t3code-bin 0.1.13-1 — omacom/omarchy-pkgs1 reaction · 2 comments
- Nov 26, 2026Update T3 Code nightly to 0.1.13-nightly.20261125.5258 — kylescudder/dotfiles1 reaction · 1 comment
- Nov 26, 2026Sync upstream (six-hourly): t3code-nightly-bin 0.1.13_nightly.20261125.5258-1 — omacom/omarchy-pkgs1 reaction · 2 comments
- Nov 25, 2026Near-term plan: native agent integration, own agent kernel and conversation UX — WhiteTowerAI/ohmygame1 reaction
- Nov 24, 2026t3code: opt out of telemetry by default — NixOS/nixpkgs1 reaction · 2 comments
- Nov 24, 2026Update T3 Code nightly to 0.1.12-nightly.20261124.5178 — kylescudder/dotfiles1 reaction · 1 comment
- Nov 23, 2026Update T3 Code nightly to 0.1.12-nightly.20261123.5138 — kylescudder/dotfiles1 reaction · 1 comment
- Nov 17, 2026docs(positioning): Linux-first positioning, sourced multi-agent alternatives and first-run feedback — kamanager2012/dsh-community1 reaction · 1 comment
- Nov 16, 2026feat(fork): preselect Später and offer release notes in the restart question — KLIEBHAN/t3code1 reaction · 4 comments
- Nov 16, 2026t3code: 0.1.8 -> 0.1.13 — NixOS/nixpkgs1 reaction · 11 comments
- Nov 16, 2026feat(mobile): setting to open pull request links in the GitHub app — RishabhTayal/t3code1 reaction · 1 comment
- Nov 13, 2026feat(web): choose where settling the open thread goes — e-kotov/t3code1 reaction · 1 comment
- Nov 12, 2026docs(t3-code): verify tool discovery after updates — escoffier-labs/skillet1 reaction · 4 comments
- Nov 9, 2026[Add App] T3 Code — beclab/apps1 reaction
- Nov 9, 2026docs(skills): explain T3 command installation prompts — escoffier-labs/skillet1 reaction · 4 comments
- Nov 9, 2026feat(desktop): confirm quit while agent turns are active — prov3ntus/t3code1 reaction
- Nov 6, 2026chore(agents): watch the pr again after every push — zoonk/zoonk1 reaction · 1 comment
- Nov 4, 2026fix(web): keep selected atoms selected when showing Markdown source — shivamhwp/t3code1 reaction · 2 comments
- Nov 4, 2026fix(web): respect backslash parity beside composer markers — shivamhwp/t3code1 reaction · 2 comments
- Oct 31, 2026Update Request: t3code 0.1.5 → 0.1.6 — NixOS/nixpkgs1 reaction · 2 comments
- Oct 31, 2026docs(t3-code): cover project pinning and archival — escoffier-labs/skillet1 reaction · 4 comments
- Oct 27, 2026fix: 5h window claude sub usage limit — openclaw/openclaw1 reaction · 5 comments
- Oct 27, 2026fix: 5h window claude sub usage limit — paperclipai/paperclip1 reaction · 2 comments
- Oct 27, 2026fix: 5h window claude sub usage limit — thedotmack/claude-mem1 reaction · 2 comments
- Oct 27, 2026fix: 5h window claude sub usage limit — aaif-goose/goose1 reaction · 2 comments
- Oct 26, 2026Recover corrupted checkpoints before fetching worktree bases — swarajbachu/zuse1 reaction · 3 comments
- Oct 23, 2026Mention another Chat with @ so the agent reads it as context — the-ptf/milagre1 reaction
- Oct 22, 2026chore: 同步上游 pingdotgg/t3code main 至 49e97d48f9 — Hylouis233/opent3code1 reaction · 2 comments
- Oct 17, 2026[Bug]: Ctrl+Arrow jumps to line boundaries instead of words on Windows and Linux — pierrecomputer/pierre1 reaction · 1 comment
- Oct 11, 2026App request: T3 Code — getumbrel/umbrel-apps1 reaction · 2 comments
- Oct 8, 2026chore(sync): merge upstream main and fix orchestration lifecycle races — issuelt/t3code1 reaction · 1 comment
- Oct 7, 2026test(server): avoid worker PID collisions in process-tree fixture — lastobelus/lastCode1 reaction · 3 comments
- Oct 4, 2026feat(mobile): transcribe voice input with a cloud service set up in Settings — roprgm/t3code1 reaction · 1 comment
- Oct 3, 2026Bug report — agentclientprotocol/kotlin-sdk — agentclientprotocol/kotlin-sdk1 reaction
- Oct 3, 2026fix(provider): allow new directories through workspace aliases — lastobelus/lastCode1 reaction · 3 comments
- Oct 1, 2026t3code: 0.0.42 -> 0.0.44 — NixOS/nixpkgs1 reaction · 2 comments
- Sep 30, 2026harnesses: preserve Claude OAuth during maintenance — LPFchan/setup1 reaction · 1 comment
On Bluesky · 31
- Nov 25, 2026Claude CodeなどのAIコーディングエージェントをスマホやPCから一元管理できるコントロールプレーンらしい 移動中でも操作できて作業効率がめちゃくちゃ上がりそうかも yug1224 starred pingdotgg/t3code… — @yug1224.com5 likes and reposts · 2 replies
- Nov 17, 2026Control Claude Code, Codex and Cursor on your machine straight from your phone, fully open source. 🔗 github.com/pingdotgg/t3code #t3code… — @prosperflowio.bsky.social3 likes and reposts
- Jul 13, 2026📦 pingdotgg / t3code ⭐ 13,632 (+79) 🗒 TypeScript — @github-trending-js.bsky.social3 likes and reposts
- Nov 1, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 pingdotgg / t3code ⭐ 33,951 (+1,148) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Oct 30, 2026Cool websites for coders github.com/cursor/plugins - Free AI coding plugins github.com/pingdotgg/t... - Open-source AI agent dashboard… — @csaba.bsky.social2 likes and reposts · 1 reply
26 more on Bluesky
- Oct 7, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 26,005 (+364) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts
- Oct 3, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 24,427 (+251) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts
- Aug 9, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 17,325 (+211) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts · 2 replies
- Jul 24, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 pingdotgg / t3code ⭐ 14,563 (+136) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts
- May 28, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 pingdotgg / t3code ⭐ 12,103 (+109) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts
- Apr 17, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 9,274 (+229) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Nov 25, 2026github.com/pingdotgg/t3... - Orchestrate any (or multiple) #AI #Agents running locally or in the cloud, coordinate from a PC or phone via… — @robrich.bsky.social1 likes and repost
- Nov 19, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 pingdotgg / t3code ⭐ 64,730 (+1,264) 🗒 TypeScript The best way to control Claude Code, Codex and… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Nov 6, 2026I believe you can do the work. I just think it's worth emphasizing how much work there is to be done :) If you want a fresh start, this… — @theo-mirr.selfhosted.social1 likes and repost
- Nov 5, 2026t3 code (https://github.com/pingdotgg/t3code) je docela zajimavy priklad vyvoje s AI. Je to ciste AI vytvorena aplikace, jsou za ni opravdu… — @mwenisch.mastodon.cesko.digital.ap.brid.gy1 likes and repost
- Aug 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 pingdotgg / t3code ⭐ 17,477 (+182) 🗒 TypeScript — @github-trending.bsky.social1 likes and repost
- Aug 3, 2026https://github.com/pingdotgg/t3code bmann (/bmann) starred pingdotgg/t3code (/pingdotgg/t3code) · August 3, 2026 01:13 pingdotgg/t3code… — @bmannconsulting.com1 likes and repost
- Jul 29, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 pingdotgg / t3code ⭐ 15,538 (+176) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- Jul 26, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 14,920 (+202) 🗒 TypeScript — @github-trending.bsky.social1 likes and repost · 1 reply
- Jul 12, 2026📦 pingdotgg / t3code ⭐ 13,632 (+79) 🗒 TypeScript — @github-trending.bsky.social1 likes and repost
- May 15, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 pingdotgg / t3code ⭐ 11,482 (+160) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- Apr 17, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 9,274 (+229) 🗒 TypeScript — @github-trending.bsky.social1 likes and repost · 1 reply
- Nov 7, 2026You picked the worst possible person to say this to lmao https://github.com/pingdotgg/t3code Here's a repo where 3 people are outshipping… — @theo-mirr.selfhosted.social0 likes and reposts · 2 replies
- Nov 5, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 pingdotgg / t3code ⭐ 47,401 (+1,983) 🗒 TypeScript — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Oct 30, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 pingdotgg / t3code ⭐ 32,290 (+920) 🗒 TypeScript — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 29, 2026Wow this vibe coder Theo guy is so stupid. He'll never make any money on this. He forgot to close source the codebase!… — @theo-mirr.selfhosted.social0 likes and reposts · 1 reply
- Oct 27, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 30,661 (+348) 🗒 TypeScript — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Oct 19, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 28,506 (+292) 🗒 TypeScript — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Sep 12, 2026okay wait github.com/pingdotgg/t3... 's first commit is f194c9661 Sat Feb 7 17:28:14 2026 -0800 Monorepo electron init… — @refinement.systems0 likes and reposts · 1 reply
- Aug 19, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 19,482 (+222) 🗒 TypeScript — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Apr 22, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pingdotgg / t3code ⭐ 10,202 (+380) 🗒 TypeScript — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On YouTube · 23
- Nov 7, 2026T3 Code tutorial: my whole setup, every agent on every computer — Nimrod40k views · 74 comments
- Nov 9, 2026Why T3 Code is suddenly everywhere — Matt Feroz6.8k views · 23 comments
- Nov 9, 2026T3 Code After a Month: My Honest Review — Thomas Bekkers4.4k views · 22 comments
- Oct 23, 2026Why you need to try T3 Code — Batraz Botsiti1.6k views
- Nov 2, 2026T3 Code: one open-source app for Claude Code, Codex and Cursor (and the catch) — Weights Unlocked1.2k views
18 more on YouTube
- Jul 30, 2026T3Code GitHub Tutorial: Turn Raw CLI Agent Chaos Into Safe Sandboxed Pull Requests — Alex Hitt951 views
- Oct 31, 2026T3 Code: Control Claude Code From Your Phone — Fork This.898 views · 1 comment
- Nov 8, 2026T3 Code Is AWESOME - One App To Control Claude Code + Codex (I Tested It) — Prompt Engineer 48says it tested it591 views · 2 comments
- Nov 8, 2026Control Claude Code From Your Phone?! 🤯 (Free Tool) #aitools #t3code #ai #github #opensource — Bro It's Binary444 views
- Nov 7, 2026T3 Code runs Claude Code, Codex and Cursor from one free app — Productosh AI302 views · 1 comment
- Nov 6, 2026T3 Code - Control Claude Code, Codex and Cursor from your phone — AI by Ritik290 views · 1 comment
- Nov 3, 2026pingdotgg/t3code - Your AI coders, from your phone. — Git Hype188 views
- Oct 19, 2026t3code: Control AI agents from one app — Daily Finds Dev | Repos, Tools, Sites169 views
- Apr 18, 2026pingdotgg/t3code - Gource visualisation — Gourcer142 views
- Nov 9, 2026T3 Code lets you control Claude Code and Codex from your phone — IGNwav 112 views
- Nov 3, 2026Run Every Coding Agent From Your Phone — T3 Code — Dev Tools daily92 views · 1 comment
- Nov 1, 2026Use T3 Code to Control Your Coding Agents — Today in AI77 views
- May 27, 2026GitHub - pingdotgg/t3code — GitHub Daily Trend AI Podcast45 views
- Oct 5, 2026pingdotgg/t3code — Top Github43 views
- Nov 7, 2026One Free App to Control Claude Code, Codex and Cursor (T3 Code Explained) — GitHub AI Repo29 views
- Nov 2, 2026T3 Code scheduled tasks can now run Once, at a date and time you pick — The AI Rundown29 views
- Nov 9, 2026T3 Code vs SpecWithCode on agent handoffs — Anton Abyzov: AI Power18 views
- Nov 1, 2026pingdotgg/t3code — Git Loco2 views
On Hacker News · 3
- Mar 7, 2026T3 Code: A Minimal Web GUI/Desktop App for Coding Agents6 points
- Oct 13, 2026T3 Code5 points · 1 comment
- Nov 21, 2026T3 Code now supports multi-repo projects3 points · 1 comment
On the web · 1
- Nov 1, 2026t3code codebase overview: 3.8M lines, mostly TypeScript — repowise.dev
Other versions2 projects use a version of this.
Word for word · 2
- AlekDob/quack-app★ 4100% same
- GitJarno/Stemcells★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/cursor-cloud.mdcCursor rule
- contribution-triageSkill
- launch-videoSkill
- test-t3-appSkill
- test-t3-mobileSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use a workflow for multi-stage work that must not be lost or repeated (triage → fix → verify, nightly reports, webhook reactions).
- Very specific: line 58
Only T3, Effect, Schema, Option, Duration and Schedule are globals.
- Very specific: line 130
Call these directly in the workflow body with yield*.
- Very specific: line 152
Concurrency: Run steps or agents in parallel with Effect.all([agent("a", …), agent("b", …)], { concurrency: 2 }).
- Very specific: line 153
Strict options: Every call refuses an option it does not take, naming the ones it does, since workflow files are not type-checked.
- Very specific: line 173
Worktrees: Use a worktree workspace whenever two agents can edit the same repo at once (concurrent runs or parallel agent calls).
- Very specific: line 288
Transactions: Use entry.update or store.transaction whenever a write depends on a read, or when a step might fail after writing.
- Very specific: line 308
Keep one comment or mutation per step so a retry does not post twice.
- Very specific: line 359
Start any workflow manually with t3 workflow start <name> --input '<json>' --key <key>.
- Very specific: line 390
Resuming: Check the failing step and error with show, fix the cause, then resume (only the failed step re-runs).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
T3 Code workflows
A workflow is a TypeScript function the T3 Code server runs durably on Effect v4 (effect/workflow). Every step's result is stored, so restarts replay to where the run left off and a failing step pauses the run instead of losing it. Runs can sleep for days, wait on signals or pull requests, ask a person a question, and launch agents in ordinary threads.
Use a workflow for multi-stage work that must not be lost or repeated (triage → fix → verify, nightly reports, webhook reactions). For a single prompt on a timer, use a scheduled task instead.
Quick start
Workflows are a Labs feature, off by default. If t3 workflow says workflows are off, ask the user to turn them on in Settings → Labs → Workflows; do not edit their settings yourself.
Put a .ts file in ~/.t3/workflows/ (the workflows folder of T3 home, or the path in T3CODE_WORKFLOWS). Once workflows are on, the server watches the folder and reloads files automatically—nothing to restart. A file name with a space or other unusual character (fix issue.ts) is skipped with a warning in the server log: use letters, digits, -, _ and .. Files run with Node's type stripping, so only erasable TypeScript works: no enum, namespace or parameter properties.
Workflow files import nothing from T3 or Effect. T3, Effect, Schema, Option, Duration, and Schedule are injected as globals. Never import from effect (that loads a second runtime copy the engine cannot run). Node built-ins (node:fs, node:crypto) can be imported normally.
const { workflow, agent, ask, stop, title, every, Tick } = T3;
workflow(
"dependency-report",
{ version: 1, payload: Tick, triggers: [every("1 day")] },
Effect.fn(function* (tick) {
yield* title(`Dependencies ${tick.scheduledAt.slice(0, 10)}`);
const audit = yield* agent("audit", {
project: "/home/me/app", // the project's folder, or its id
brief: "List this repository's outdated dependencies. Do not change any file.",
returns: Schema.Struct({
outdated: Schema.Array(Schema.Struct({ name: Schema.String, latest: Schema.String })),
}),
});
if (audit.value.outdated.length === 0) return yield* stop("nothing is outdated");
const answer = yield* ask("approve-upgrade", {
title: `Upgrade ${audit.value.outdated.length} dependencies?`,
choices: ["upgrade", "skip"],
data: audit.value,
timeout: "2 days",
});
if (Option.isNone(answer) || answer.value.choice === "skip") {
return yield* stop("not approved");
}
yield* agent("upgrade", {
thread: audit.thread,
brief: "Upgrade the dependencies you listed, run the tests, and say what changed.",
});
}),
);What T3 holds
Only T3, Effect, Schema, Option, Duration and Schedule are globals. Everything below is a
property of T3: take what you use at the top of the file, as the quick start does
(const { workflow, step, daily } = T3;), or write T3.step(…) in full. A bare daily(…) or
step(…) without that line is a ReferenceError.
- Definitions & body:
workflow,step,agent,ask,wait,sleep,title,stop,skip,invoke,within - Inside
step/onEndonly:store,signal,signalAll,start,runs,cancel - Trackers & hosts:
issues,pullRequests(triggers, step calls, andpullRequests.waitin the body) - Triggers:
every,daily,webhook - Schemas:
Tick,WebhookRequest,Issue,IssueDetail,PullRequest,PullRequestStanding
Effect v4 Schema cheatsheet
Schema.String;
Schema.Number;
Schema.Boolean;
Schema.Void;
Schema.Null;
Schema.Struct({ name: Schema.String, count: Schema.optional(Schema.Number) });
Schema.Array(Schema.String);
Schema.Literals(["open", "closed"]);
Schema.NullOr(Schema.String);
Schema.Record(Schema.String, Schema.Number); // two arguments, not an objectDefining a workflow
workflow(name, options, body) registers a workflow and returns a handle you can pass to invoke, start, runs, or signal. Each (name, version) pair must be unique across all files.
| Option | Required | Meaning |
version | Yes | Integer version. Raise it whenever the body changes (see rules below). |
payload | Yes | Schema of the run's input. |
returns | No | Schema of the body's return value. If omitted, any JSON value (or undefined) is accepted. |
triggers | No | Array of triggers that start runs automatically. |
resumeAfter | No | Durations to wait before auto-resuming a paused run. Defaults to ["5 minutes", "20 minutes", "80 minutes"]. The server checks about every 15 seconds, so shorter waits act as 15 seconds. |
asks | No | The kinds of question it asks, each with a label: { feature: "Feature wanted?" }. An ask names one as its kind; a question of a kind not listed here shows under Other. |
concurrency | No | At most this many runs of the workflow at once; later ones queue (see Pools and limits). |
onEnd | No | (payload, { id, outcome, reason }) => Effect: cleanup hook run once when the run ends. |
The body is Effect.fn(function* (payload, run) { … }), where run.id is the run's id. Use yield* on every primitive.
Cleanup with onEnd
onEnd runs once when a run completes, stops, is skipped, or is cancelled—not when it pauses. It runs with step services (store, signal, issues, etc.), receives (payload, { id, outcome, reason }), and cannot see local variables from the body. Name external resources after run.id, and make onEnd safe if the run was cancelled before acquiring anything.
const { workflow, step, agent, Issue } = T3;
workflow(
"fix",
{
version: 1,
payload: Issue,
onEnd: (issue, end) => exec("machines.sh", ["delete", `fix-${end.id}`]),
},
Effect.fn(function* (issue, run) {
const environment = yield* step(
"machine",
{ returns: Schema.String },
exec("machines.sh", ["create-and-link", `fix-${run.id}`]),
);
yield* agent("fix", { environment, project: "/home/user/app", brief: issue.title });
}),
);(exec above is your own Effect helper, not part of T3.) On normal end, onEnd retries 3 times before pausing at the onEnd step; on cancel, it waits for any in-flight step to finish, then tries up to 5 times, 5 minutes, 20 minutes, 80 minutes and 5 hours apart. The workflow version stays required until one try succeeds; after the last failed try the onEnd step stays failed on the run and nothing retries it, so make cleanup something a person can redo by hand.
Body primitives
Call these directly in the workflow body with yield*. Every named primitive stores its result under name, which must be unique across all primitives in the run (an ask("fix", …) and agent("fix", …) collide).
| Call | Behavior | Returns |
step(name, { returns, retry? }, effect) | Runs code once per run and journals the result. Failure pauses the run. | A |
step.try(name, { returns, retry? }, effect) | Same as step, but returns failure as data instead of pausing. | { outcome: "done", value } or { outcome: "failed", reason } |
agent(name, { brief, project? | thread?, returns?, … }) | Runs an agent in a thread. Failure pauses the run for a person. | { value, thread } (value matches returns, or last reply string) |
agent.try(name, { brief, project? | thread?, returns?, … }) | Same as agent, but returns failure as data instead of pausing. | { outcome: "done", value, thread } or { outcome: "failed", reason, thread? } |
ask(name, { title, choices, kind?, data?, timeout? }) | Puts a multiple-choice question to a person. kind is one of the workflow's asks, which people filter their questions by. | Option<{ choice, reason? }> (None on timeout) |
wait(name, { returns, timeout?, channel? }) | Sleeps until signalled by { runId, wait } or { workflow, channel }. | Option<A> (None on timeout) |
pullRequests.wait(name, pr, { until, timeout? }) | Sleeps until PR checks settle, or the PR merges or closes. | Option<PullRequestStanding> (None on timeout) |
sleep(name, duration) | Durable sleep across restarts (e.g. "1 hour", "2 days"). | void |
invoke(name, workflow, payload, { key? }) | Runs another workflow as a child run and waits for it to end. | { outcome: "completed", value } or { outcome: "stopped" | "skipped" | "cancelled", reason } |
title(text) | Sets the run's display title in lists (cut to 200 characters). Takes no step name. | void |
tags(["pr", "backlog"]) | Tags the run, replacing earlier tags, for t3 workflow list --tag and runs({ tag }). Takes no step name. | void |
subject(issue) | Names the one thing the run is about, replacing an earlier subject: an Issue or PullRequest row (with its projectId and host), { threadId }, or a web address; not a project. Lists link it; runs({ subject }) and t3 workflow list --subject find the run by it. Takes no step name. | void |
stop(reason) | Ends the run on purpose as stopped (not a failure). Body only: inside a step it fails the step and pauses the run, and so does skip. | never |
skip(reason) | Ends the run as skipped, which run lists leave out unless asked (runs() includes them). | never |
- Retries and failures: A
stepruns once by default. For idempotent work, passretry: { times: 3, schedule: Schedule.exponential("2 seconds") }. Nothing in the body can catch a failedsteporagentbecause the engine pauses the run—usestep.tryoragent.trywhenever the workflow should branch on failure. - Timeouts are checked about every 15 seconds: a
waitorasktimeout can end up to 15 seconds late, and a signal that arrives before the check still wins. Optionresults:wait,askandpullRequests.waitalways give anOption, with or without atimeout. CheckOption.isNone(result)first, then readresult.value. Never put theOptionitself into a string or a return value.- Concurrency: Run steps or agents in parallel with
Effect.all([agent("a", …), agent("b", …)], { concurrency: 2 }). - Strict options: Every call refuses an option it does not take, naming the ones it does, since workflow files are not type-checked. So does
everyunder a minute and adailytime it cannot read.
Agents (agent and agent.try)
| Option | Applies to | Meaning |
brief | All | Full task instructions. The agent sees only this brief and its project. |
project | New thread | Project id (from t3_project_list) or absolute folder path. |
thread | Continue | thread returned by an earlier agent step. Continues it as it started, so the New thread options are refused alongside it. |
returns | All | Optional Schema. Completes only when the agent submits valid data (up to 2 correction prompts). |
model | New thread | { instanceId, model, options? }; options is [{ id, value }] (e.g. [{ id: "reasoningEffort", value: "high" }]). Defaults to project default. |
workspace | New thread | { type: "root" } (default) or { type: "worktree", baseRef: "origin/main", startFromOrigin: true }. |
runtimeMode | New thread | "full-access" | "auto" | "auto-accept-edits" | "approval-required" (waits on thread approvals). Project default if omitted. |
interactionMode | New thread | "default" | "plan". |
title | New thread | Thread title. Defaults to <workflow>: <step>. |
environment | New thread | Linked environment id (t3 environment list). Folder paths not yet registered there are registered automatically. |
issue | Local only | Issue or { project, url }. Links the thread to that issue (not applied in linked environments). |
timeout | All | Time limit for each attempt (e.g. "2 hours"); an automatic retry or a resume starts a new one. Past it, the turn is stopped and the step fails. |
quiet | All | Idle grace period (e.g. "45 minutes") for agents that wait across turns before submitting returns. |
- Worktrees: Use a
worktreeworkspace whenever two agents can edit the same repo at once (concurrent runs or parallelagentcalls). - Waiting across turns (
quiet): If an agent watches PR checks or background work and ends its turn while waiting to be woken, setquiet: "45 minutes"and tell it inbriefto end waiting turns without submitting. The step prompts for the result only after the thread has been idle forquiet. Withoutquiet, it prompts as soon as a turn ends without output. Always set atimeoutalongsidequiet. - Retries and pauses: If a turn dies (crashes or is cut off),
agentautomatically tries once more (on a fresh thread, or the same thread if continuingthread). An agent that finishes its turn without validreturnsis asked to correct it twice in the same thread, and then gives up without starting the job again. A timeout or manual stop does not auto-retry. A run paused by an agent that ran and gave up or timed out waits for a person—resumeAfterdoes not auto-resume it (t3 workflow resumestarts a fresh attempt). An agent that could not be started at all (no project at that folder, linked environment unreachable) pauses like a failedstepand resumes on its own;agent.tryreturns that failure as data instead. - Fallback with
agent.try:
Effect.fn(function* () {
let fix = yield* agent.try("fix", { project, brief, returns: Fix, timeout: "2 hours" });
if (fix.outcome === "failed") {
fix = yield* agent.try("fix-again", { project, brief, returns: Fix, model: stronger });
}
if (fix.outcome === "failed") return yield* stop(`no fix: ${fix.reason}`);
});- Linked environments: Enable Settings → Labs → Linked environments. The run stays on this server; only the thread runs remotely, bounded by the link's paired access. For a machine per run, create and link it in a
step(t3 auth pairing create --jsonon the remote,t3 environment link <url> --pairing-code <code> --access <access>here), return its id, and delete it inonEnd.
Other workflows
Define caller and callee in the same file and keep the callee in a variable so its payload and return type flow through:
const { workflow, invoke, stop } = T3;
const review = workflow("review", { version: 1, payload: Change, returns: Verdict }, reviewBody);
workflow(
"fix",
{ version: 1, payload: Issue },
Effect.fn(function* (issue) {
const ended = yield* invoke("review", review, { branch: `fix/${issue.key}` });
if (ended.outcome !== "completed") {
return yield* stop(`review ${ended.outcome}: ${ended.reason}`);
}
return ended.value; // Verdict
}),
);| Call | Where | Behavior |
invoke(name, workflow, payload, { key? }) | Body | Starts a child run and waits for it (including while it is paused). Listed and resumed independently; cancelling the parent cancels the child. Pass the definition workflow(…) returned, not its name. key names the child run; one already started under that key by something else is refused. |
start(workflow, payload, { key, subject? }) | step / onEnd | Fire-and-forget. Returns { runId }. Same key returns the same run. Use for fan-out. subject is what a new run is about, as subject(…) takes it. |
runs({ workflow?, status?, keyPrefix?, kind?, tag?, subject? }) | step / onEnd | Lists up to 500 matching runs (skipped runs included), newest first: { id, workflow, key, title, status, detail, tags, subject, startedAt, endedAt }. workflow is a definition or its name; tag is one of the run's tags; subject takes what subject(…) does; kind matches runs with an open question of that kind. |
cancel(runId, reason) | step / onEnd | Cancels another run (stops agents, withdraws questions, cancels invoked children, runs onEnd). Cannot cancel self—use stop. |
To find the runs about an issue or pull request, give them a subject and use runs({ subject: issue }). When matching on keys instead, end them with a separator (e.g. issue/412/), so runs({ workflow: fix, keyPrefix: "issue/412/" }) does not match issue/4120.
Pools and limits
within(pool, { limit }, body) runs body (one call, or an Effect.gen of several) holding one of limit places in the named pool, and returns what body returns. A pool is shared by every run of every workflow on the server. When all places are taken, the call waits in arrival order and its run shows as queued (waiting, detail queue <pool>). The place is given back when body ends or fails, and when the run ends, is cancelled or pauses. A resumed run goes ahead of the queue and takes back every place it held, in every pool, all at once; until they are all free it holds none and shows as queued.
limit: 1 is a lock. When calls on one pool name ask for different limits, a call goes in only while the pool holds fewer than its own limit and fewer than the smallest limit of those already inside, and nobody who asked later goes in ahead of it. So a limit: 1 call always runs alone, but it waits for whoever is inside, two limit: 2 calls included. Prefer one limit per pool name.
A run holds several places in one pool only by calling within side by side (Effect.all over several within calls). Never call within for a pool from inside that same pool, or for the workflow's own name when it has a concurrency: the run could wait for itself, so it pauses with an error instead. A run that invokes another while holding a place the other needs is not caught and waits forever; keep invoke outside such a within. Step and wait names starting with @pool: are reserved for the queue steps (@pool:<pool>, then @pool:<pool>#2 for a second call in the same run) and pause the run if you use one. A queue step cannot be signalled: signal to it is refused.
concurrency: N in the workflow's options does the same for whole runs: its runs, across versions, share a pool named after the workflow, and each keeps its place until it ends, onEnd included.
const { workflow, within, agent, step } = T3;
workflow(
"release",
{ version: 1, payload: Schema.Struct({ branch: Schema.String }), concurrency: 8 },
Effect.fn(function* (payload) {
const built = yield* within(
"builders",
{ limit: 2 },
agent("build", { project: "/home/me/app", brief: `Build ${payload.branch}.` }),
);
yield* within(
"deploy",
{ limit: 1 },
step("deploy", { returns: Schema.Void }, deploy(built.value)),
);
}),
);(deploy is your own Effect helper.)
A paused or cancelled run gives its place back at once, so anything of it still finishing, such as the other calls of an Effect.all inside the within, can overlap with the next holder.
Store and signals
store holds durable key-value state shared across all workflows on the server (cursors, switches, counters, queues). Call store, signal, and signalAll only inside step or onEnd—never directly in the body.
| Call | Behavior |
store.entry(key, Schema) | Handle for one key: .get (Option<A>), .set(value), .delete. |
entry.update((current) => next) | Atomic read-modify-write; current is Option<A>. Return undefined to delete. Returns Option<A>. |
store.entries(prefix, Schema) | Every { key, value } starting with prefix, in key order. Fails if any matching row does not fit Schema. |
store.transaction(effect) | Runs all store reads and writes in effect atomically (all or nothing). |
signal(address, value, { id?, ttl? }) | Wakes one wait at { runId, wait } or { workflow, channel }. Buffered until a wait opens or ttl (default 7 days) expires. Returns "delivered" | "buffered". "buffered" checks neither the address nor the shape: a wrong workflow or wait name, or a run that has ended, also buffers. A value that does not fit an open wait fails the sending step. |
signalAll({ channel, workflow? }, value) | Wakes every run currently waiting on channel (one workflow or all). Returns count woken. Buffers nothing. |
const { step, store, Issue } = T3;
const seen = store.entry("issues/seen", Schema.String);
Effect.fn(function* () {
const fresh = yield* step(
"fetch",
{ returns: Schema.Array(Issue) },
Effect.gen(function* () {
const since = yield* seen.get;
const batch = yield* fetchIssuesAfter(Option.getOrUndefined(since));
if (batch[0]) yield* seen.set(batch[0].createdAt);
return batch;
}),
);
});- Shared gate pattern (
signalAll): BecausesignalAllkeeps nothing for late arrivals, check the switch in astep, then while it is on callwaitwith{ channel: "main-green", timeout: "10 minutes", returns: Schema.Null }and re-check in a loop. Number step names per iteration (switch/1,released/1,switch/2,released/2). Whoever clears the switch callssignalAll({ channel: "main-green" }, null). - Transactions: Use
entry.updateorstore.transactionwhenever a write depends on a read, or when a step might fail after writing. - CLI access: Inspect or flip keys with
t3 workflow store list [prefix],store set <key> '<json>', andstore delete <key>.
Issues and pull requests
Reads and writes the project's configured tracker (GitHub, GitLab, Linear, etc.) and git host using the project's credentials. Pass an issue/PR object from a trigger or list, or { project, url } (useful when an agent returns a URL).
| Call | Where | Returns |
issues.list({ project, state?, labels?, query?, assignee?, sort?, limit? }) | step / onEnd | Issue[] (state defaults to "open") |
issues.read(issue) | step / onEnd | IssueDetail (body, comments, valid states) |
issues.comment(issue, body) | step / onEnd | void |
issues.setState(issue, name) | step / onEnd | void (name from issues.read(issue).states) |
issues.create({ project, title, body?, labels?, assignees? }) | step / onEnd | { key, displayKey, url } |
pullRequests.list({ project, state?, query?, limit? }) | step / onEnd | PullRequest[] (state defaults to "open") |
pullRequests.read(pr) | step / onEnd | State, checks, reviews, mergeability |
pullRequests.comment(pr, body) | step / onEnd | void |
pullRequests.act(pr, action, { mergeMethod? }) | step / onEnd | void (merge, close, ready, update-branch, etc.) |
pullRequests.wait(name, pr, { until, timeout? }) | Body | Option<PullRequestStanding> ({ state, checks, mergeability, url }) |
Keep one comment or mutation per step so a retry does not post twice.
const { workflow, title, agent, step, issues, Issue } = T3;
workflow(
"triage",
{ version: 1, payload: Issue, triggers: [issues.opened({ project: "/home/me/app" })] },
Effect.fn(function* (issue) {
yield* title(`${issue.displayKey} ${issue.title}`);
const found = yield* agent("reproduce", {
project: "/home/me/app",
issue,
brief: `Reproduce this on main. Change nothing.\n\n${issue.url}`,
returns: Schema.Struct({ reproduced: Schema.Boolean, summary: Schema.String }),
});
yield* step("report", { returns: Schema.Void }, issues.comment(issue, found.value.summary));
}),
);pullRequests.wait polls about once a minute. until is "checks" (no checks still pending), "merged", or "closed". Merging or closing ends any wait, so always check state before checks ("passing" | "failing" | "pending" | "none"):
Effect.fn(function* () {
const at = yield* pullRequests.wait(
"checks",
{ project, url },
{ until: "checks", timeout: "2 hours" },
);
if (Option.isNone(at) || at.value.state !== "open" || at.value.checks !== "passing") {
return yield* stop("not ready to merge");
}
yield* step("merge", { returns: Schema.Void }, pullRequests.act({ project, url }, "merge"));
});Triggers
A workflow's payload schema must match what its triggers emit.
| Trigger | Payload | Notes |
every("1 hour") | Tick | { scheduledAt }. Minimum 1 minute. The first run comes one interval after the file loads, not at load. Downtime collapses into one run, not one per missed interval. |
daily("09:00", { weekdays?: [1, 2, 3, 4, 5] }) | Tick | Server local time; 0 is Sunday. Missed by more than 10 minutes is skipped. |
webhook("name", { key? }) | WebhookRequest | { method, headers, query, body } (lowercase header names, text query/body). Set payload: WebhookRequest, taken from T3; never write its shape out yourself. t3 workflow hooks prints URL paths (includes secret). A retry that repeats a delivery header (X-GitHub-Delivery, Idempotency-Key, webhook-id, and the Gitea, GitLab and Linear ones) starts no second run; for other senders, key: (r) => … names the run from the request. Bodies over 1 MiB are refused. |
issues.opened({ project, labels?, query? }) | Issue | Polls ~once a minute. Only issues opened after the workflow first loaded. Issue must carry all labels. |
pullRequests.opened({ project, query? }) | PullRequest | Polls ~once a minute. Only pull requests opened after the workflow first loaded. |
Filter unwanted deliveries in the body with skip("not a push to main") so they stay out of run lists. Verify webhook signatures inside a step.
Start any workflow manually with t3 workflow start <name> --input '<json>' --key <key>. A key identifies one run of that workflow across all versions.
Rules you must not break
- The body is replayed from the top. After every wait or restart, the body runs again and completed primitives return their stored values. Put all side effects, I/O, clock reads, randomness, and
store/API reads insidesteporagent. Code between calls must be deterministic givenpayloadand earlier results. - Names are journal keys. Every named primitive (
step,agent,ask,wait,sleep,invoke,pullRequests.wait) must have a unique name within the run, across all kinds. Loops need distinct names (step(`check-${i}`, …)). Never name a body step"onEnd"(reserved for cleanup).invoke("x", …)also takesx/start,title(…)takestitle/0,title/1, …,tags(…)takestags/0,tags/1, …, andsubject(…)takessubject/0,subject/1, …. - Bump
versionwhen changing a live workflow. Do not reorder, rename, or change the stored schema of steps in a version that still has unfinished runs. Register the updated body under a higherversionand keep the old version in the file until its runs finish. Runs started by the CLI, a trigger or a webhook use the highest version;startandinvokerun the version of the definition you pass them, so point callers at the new definition when you bump. Keys still deduplicate across versions. - Never import
effect, and take everyT3name you use. The globals areT3,Effect,Schema,Option,DurationandSchedule;step,daily,WebhookRequestand the rest come fromconst { … } = T3;at the top of the file, and one left out of that line is aReferenceError. Shared helpers go in a subfolder (dotfiles and folders are ignored by the loader), and changing an imported helper requires a server restart. - Payloads and step results must fit their
Schema. Everything journaled is serialized as JSON; a value that fails encoding fails the step. - Steps can run more than once. A crash mid-step, a retry, or a manual resume re-runs the step. Make external side effects idempotent (derive idempotency keys from
payloadorrun.id, keep one comment/post per step, wrap dependent store writes instore.transaction).
Files, reloading, and CLI
If an edited file fails to load, its last good version keeps running and the server logs A workflow definitions file was not loaded with the reason. A change that defines the same (name, version) twice or removes a version with unfinished runs is rejected. The Workflows page shows these errors, and its Definitions view validates files on save.
t3 workflow start <name> --input '<json>' --key <key>
t3 workflow list [--status paused] [--tag <tag>] [--subject <url or id>]
t3 workflow show <run> [--json]
t3 workflow resume <run>
t3 workflow cancel <run> [--reason '<why>']
t3 workflow questions [--kind <kind>]
t3 workflow signal '{"choice":"upgrade"}' --run <run> --wait approve-upgrade
t3 workflow signal '<json>' --workflow <name> --channel <channel>
t3 workflow hooks
t3 workflow store list [prefix]
t3 workflow store set <key> '<json>'
t3 workflow store delete <key>- Run states:
running,waiting(agent, signal, question, PR wait, or sleep),paused(step failed),completed,stopped,skipped,cancelled. - Resuming: Check the failing step and error with
show, fix the cause, thenresume(only the failed step re-runs). A paused run also resumes by itself onresumeAfter(default 5, 20, 80 minutes), unless it paused because its agent gave up. - Retired runs: A run whose version was removed shows
"retired": trueinshow --jsonand cannot continue until that version is restored. - Stuck agents: An agent step's thread is an ordinary thread—open it to inspect or steer the agent. The step finishes as soon as the agent submits its result.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

