quack-app
AGENTS.md4 starsChanged 5 days agoMITView on GitHub
T3 Code is a minimal GUI for coding agents. A Node WebSocket server wraps provider CLIs and agents (Codex, Claude Code, Cursor, Grok, OpenCode, Antigravity, Kiro, Pi, Muse Code, fx) and serves web, desktop, and mobile clients. You can think of T3 Code as an open source "bring-your-own-subscription" alternative to apps like Claude Desktop, Codex App, Cursor Glass and Conductor. We have over 500,000 users who love T3 Code. It's important we maintain the things they love as we continue…
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 22, 2026
- pingdotgg/t3codeword for word, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 2
- pingdotgg/t3code★ 83k100% 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.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/cursor-cloud.mdcCursor rule
- contribution-triageSkill
- launch-videoSkill
- test-t3-appSkill
- test-t3-mobileSkill
- t3-workflowsSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
18 rules. About 0 are common, 9 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- Very specific: line 52
Baking in origins: Never set VITE_HTTP_URL or VITE_WS_URL for dev.
- Distinctive: line 60
Providers: Every provider adapter needs a decision, even if the decision is "not supported here".
- Distinctive: line 63
Reverse states: Every way in needs a way out and a way to see it (snooze/unsnooze, close/reopen).
- Distinctive: line 66
Docs: Check whether the change makes existing guidance inaccurate.
- Very specific: line 72
Worktree setup: Wait while .t3/setup-running names a live PID.
- Very specific: line 74
Sharing (
vp run dev --share): Wait for pairingUrl: and hand the full URL to the user. - Very specific: line 75
Test data: Always copy in (never symlink) and refresh statev2.sqlite, not state.sqlite.
- Very specific: line 76
Extra checkouts: Put git worktree add next to this worktree, not in /tmp, and remove it when done.
- Very specific: line 80
Before you push, run vp run check:changed.
- Very specific: line 82
Follow 15_testing.md for what to test, bug-fix proof, draining async work (no sleeps/polling), web browser tests (await using screen = …
- Distinctive: line 91
Never make a PR unless the developer explicitly asks you to do so.
- Very specific: line 97
When babysitting: call watch_pull_request and end your turn.
- Distinctive: line 106
When a documented decision or constraint changes, rewrite or remove the affected text.
- Distinctive: line 112
Do not commit implementation plans, research notes, or agent scratch files (keep temporary material outside the worktree).
- Distinctive: line 126
Read the matching doc before changing code in that area.
- Very specific: line 153
Default to no comment. Write one only for a constraint, external quirk, or invariant the code can't show (1–4 lines max.
- Distinctive: line 155
No continuously repainting animations.
- Distinctive: line 157
If a rule here fights the task in front of you, say so loudly and get a human sign-off before breaking it.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
T3 Code is a minimal GUI for coding agents. A Node WebSocket server wraps provider CLIs and agents (Codex, Claude Code, Cursor, Grok, OpenCode, Antigravity, Kiro, Pi, Muse Code, fx) and serves web, desktop, and mobile clients.
You can think of T3 Code as an open source "bring-your-own-subscription" alternative to apps like Claude Desktop, Codex App, Cursor Glass and Conductor.
What makes T3 Code special?
We have over 500,000 users who love T3 Code. It's important we maintain the things they love as we continue to iterate on the product. Here's a brief list of the things we can never compromise on.
1. Open at the core
T3 Code is truly open. We share our roadmap, we share how we think about things, and of course we share all our code. A large number of our users run forks (our MIT license covers source code only, not T3 Code's trademarks or branding; see TRADEMARK.md). We work in the open, and should strive to stay that way.
2. Performance without compromise
Lots of apps have gotten bogged down with bad tech decisions and "slop". We have not, and we're proud of the performance of T3 Code. We regularly audit for performance regressions, often caused by sending too much data over websockets, css animations causing gpu spikes, lists being hard to render, and more. Make sure all changes are considerate of performance impact.
3. Remote ready
The architecture of T3 Code's websocket layer (t3) enables a lot of awesome remote features. These have become core to the product. Whether users are connecting directly over their local network, using Tailscale, or leaning in fully with T3 Connect (our tunnel solution, also in this repo), we need to make sure new features are properly supported.
4. Multi-surface
T3 Code has 3 key app surfaces: web, desktop, and mobile.
Web is kind of two surfaces, as we have the public facing "app.t3.codes" as well as locally hosting the web app through the t3 command. Both need to be supported by all new features where reasonable.
Desktop is the main surface most users install first. It's a full Electron app that bundles the server runner as well. The desktop app can also be used as the host server, allowing remote connections from app.t3.codes or the mobile app.
Mobile is a React Native app for both iOS and Android, available on the App Store and Google Play. The mobile app allows for connecting to any T3 Code server to control work remotely.
A note from Theo
I like ambitious ideas, simple systems, and software that feels obvious. Do not preserve complexity just because it already exists. Do not introduce machinery because it looks architecturally impressive. Understand the real constraint, then fight for the smallest model that makes the correct behavior unsurprising.
Channel both "measure twice, cut once" and "yagni". Fight scope creep. Try to honor the dev's intent in both a minimal and realistic fashion.
The rest of this document is meant to help you navigate the codebase and make changes effectively. Think of these instructions less as "hard rules", more as "good defaults". The developer's preferences should be able to override anything here.
Of note: Most T3 Code contributions will come from T3 Code itself, often controlled remotely. This means you should be careful about accessing data, killing dev servers, and other things that may damage the T3 Code instance that the contributor is using.
Terminology
- you = the agent reading this file. we / us / maintainers = Theo, Julius, and the people building T3 Code. user = person driving coding agents in T3 Code. agent = coding agent running inside T3 Code.
- Domain terms (environment, project, thread, turn, provider, checkpoint, etc.): 00_glossary.md.
The three ways to hurt yourself
- Killing by pattern. Never
pkill -f,pgrep | kill, orkilla PID you found by matching a name, path, or worktree string. Your own agent process has this worktree's path in its argv, and this machine runs several other dev servers at once. Kill only a PID you captured at spawn, or the owner of your port fromss -H -ltnpafter confirming/proc/<pid>/cwdis your worktree. - Writing to the live install.
~/.t3/userdatais the developer's real T3 Code database, in use while you work. Reading or copying from it is fine. Never start a server against it, never open it read-write, never clean it up. - Baking in origins. Never set
VITE_HTTP_URLorVITE_WS_URLfor dev. Dev is single-origin and Vite proxies/api,/ws,/oauth, and/.well-known. Setting them bakes localhost into the bundle and silently breaks every remote browser.
Hit every surface
The most common defect in this repo is a change that works on the path you tested and is missing everywhere else. Before calling frontend work done, walk this list and say which entries applied:
- Entry points. Chat view, Settings, command palette, and keybindings. Fixing one is not fixing the feature.
- Clients. Web, desktop (Electron shell/IPC), and mobile (React Native). Shared logic lives in
packages/client-runtime. - Providers. Every provider adapter needs a decision, even if the decision is "not supported here".
- Agents. Capabilities a user triggers should be service methods reachable by MCP tools and scheduled tasks, not inline handler code.
- Contracts. Wire changes go in
packages/contractsso server, web, mobile, and desktop follow. - Reverse states. Every way in needs a way out and a way to see it (snooze/unsnooze, close/reopen). A one-way door is a bug.
- Connection modes. Local, remote/relay, and tunnel; multi-device and multi-environment.
- Languages. Translate user-facing copy in
apps/{web,mobile}/src/i18n/translations(vp run i18n:generate/vp run i18n:check) andapps/marketing/src/i18n. See 14_i18n.md. - Docs. Check whether the change makes existing guidance inaccurate. Follow Documentation.
Dev servers and test data
See 00_development.md for setup, ports, seeding (vp run migrate-dev-db), and reusable dev auth. Agent-specific rules:
- Worktree setup: Wait while
.t3/setup-runningnames a live PID; do not runvp iconcurrently. If no.t3/setup-*marker exists, runvp iyourself. - Process lifecycle: Start dev servers, Metro, and builds from your own shell so they exit with your session—never detach with
systemd-run,nohup,setsid, ortmuxunless asked. Stop background tasks with your harness's own stop (vpdoes not forward SIGTERM to child Vite/server processes). - Sharing (
vp run dev --share): Wait forpairingUrl:and hand the full URL to the user. Never wiretailscale serveby hand, open the URL yourself, or consume the user's one-time pairing link. Mint another withnode apps/server/src/bin.ts pairif needed. - Test data: Always copy in (never symlink) and refresh
statev2.sqlite, notstate.sqlite. Bringsecrets/settings.jsononly if the flow under test needs them. - Extra checkouts: Put
git worktree addnext to this worktree, not in/tmp, and remove it when done.
Verifying
- Before you push, run
vp run check:changed. Do not run repo-wide checks (vp check,vp run -r test,vp run -r typecheck) unless asked—CI owns the full suite. - Iterate with
vp test run <files>(add-t "<name>"for large files) andvp run typecheck(effect-tsgo tsrs --noEmit). Runnode -esnippets from the owning package (effectdoes not resolve from repo root). - Follow 15_testing.md for what to test, bug-fix proof, draining async work (no sleeps/polling), web browser tests (
await using screen = await render(...)), and real-app Scenarios (vp run scenarios:prove). - Give user-visible frontend changes one integrated pass in a real client:
test-t3-appfor web,test-t3-mobilefor mobile (primary agent only; subagents do not launch dev servers). Inspect the rendered result and walk the flow as a user using the feature—checking layout, visual hierarchy, and ergonomics—and fix anything rough until you are satisfied before handing back. Use the freeReplay (dev)provider unless the change depends on a real provider (then pick its cheapest model, e.g. Haiku or Luna). On mobile, runvp run mobile:install <ios|android> [device-id]before Metro rather than rebuilding from scratch.
Evals
evals/ checks how real models behave with T3 Code's model-facing text: agent instructions, MCP tool descriptions and schemas, and generated titles. Before changing that text, read evals/README.md and run the evals it names. When fixing a model behavior bug, add a case that fails before the fix.
Pull requests
- Never make a PR unless the developer explicitly asks you to do so.
originis not always GitHub. Checkgit remote get-url originbefore your first forge command and use that forge's CLI and skill. See Forge mirror.- Conventional commit titles, plain language:
fix(web): new threads no longer spike CPU. - Body: the problem in a sentence or two, then how you fixed it. End with the model and harness that did the work.
- UI changes need before/after images; motion or timing needs a short video. Upload PR evidence to GitHub—never commit PR-only screenshots or assets.
- One request is one PR. Split only when asked. Outside contributions follow CONTRIBUTING.md.
- When babysitting: call
watch_pull_requestand end your turn. Do not poll or sleep. Verify each bot finding against the source, fix real ones, dismiss false positives with a written reason. Stay quiet when nothing is new; stop when bots are green on the latest commit.
Documentation
Most code changes do not need an internal documentation change. Agents can read the code.
docs/internals/is for architectural decisions and their reasons, constraints that span components, and implementation traps that are hard to discover from the source. Before adding a paragraph, ask what a maintainer would get wrong without it. If reading the relevant code answers the question, leave it out.- Do not document every feature, enumerate fields, methods, constants, timeouts, or migration numbers, narrate control flow, maintain file catalogs, or append PR summaries. Anything that can drift will drift; types, tests, and code already record the implementation. The glossary defines shared vocabulary; it is not a feature index.
- A local reason the code can't show goes in a short nearby code comment. Use an internal doc when the reasoning crosses boundaries or needs context the code cannot carry well. Link to the relevant source instead of copying it.
- When a documented decision or constraint changes, rewrite or remove the affected text. Do not append another account of the new behavior. A new internal page needs a distinct, durable reason to exist.
docs/user/helps users accomplish tasks in the shipped product's voice, without implementation details or contributor tooling. Focus on what a feature does, how to start, and anything unintuitive—not descriptions of buttons, layouts, or UI tweaks.docs/operations/holds maintainer setup, release, and debugging runbooks. Keep end-user server instructions indocs/user/.
Plans and work artifacts
- Do not commit implementation plans, research notes, or agent scratch files (keep temporary material outside the worktree).
- Track active maintainer work in its GitHub issue or project item; external proposals belong in Ideas discussions. A merged PR is the implementation record.
Where code lives
apps/server- WebSocket, event-sourced orchestration (Orchestrator→EventSink→EffectWorker), providers, checkpointing. Read 02_effect-services.md and.repos/effect/LLMS.md.apps/web- React/Vite UI.apps/desktopwraps it;apps/mobileis React Native;apps/marketingis the site.packages/contracts- Effect/Schema wire contracts plus small derived helpers. No heavy runtime logic.packages/shared- shared runtime utils, subpath exports, no barrel.packages/client-runtime- client connection and domain state shared by web and mobile..repos/- vendored read-only references. Never edit or import from them (vpr sync:reposupdates them; if sparse-checked-out, read viagit show origin/main:.repos/<path>).
Internal docs by area
Read the matching doc before changing code in that area; code review enforces them.
| Area | Read first |
| Architecture & orchestration | 00_glossary.md, 01_architecture.md |
| Server Effect services & errors | 02_effect-services.md |
| Providers & ACP | 03_providers.md |
| Auth, MCP, guest links, assets, security | 04_environment-auth.md, SECURITY.md |
| Remote routes, peer links, previews | 05_remote.md |
| T3 Connect & relay | 06_t3-connect.md |
| Server updates & crash recovery | 07_server-updates.md |
| Telemetry & analytics | 08_product-analytics.md |
| Client connection & sync runtime | 09_connection-runtime.md |
| Web UI primitives, styles & React Compiler | 10_web-ui.md |
| Mobile layout, navigation & dev lifecycle | 11_mobile-layout.md, 12_mobile-navigation.md, 13_mobile-development.md |
| Translations & UI copy | 14_i18n.md |
| Writing & reviewing tests | 15_testing.md |
| Wire budgets, server metrics & perf | 16_performance-regressions.md |
| Repo & package scripts | 17_scripts.md |
Taste
- Complexity belongs at the adapter boundary. Orchestration stays pure, UI stays dumb.
- Client mutations use
createEnvironmentRpcCommand, declare protected methods inCLIENT_GUARDED_RPC_SCOPES, and gate UI withpermissionAtom(server stays authoritative). Keep raw RPC clients insiderpc/. - Server features are Effect services using
Effect.fn("Service.operation")with thin transport handlers; see 02_effect-services.md. apps/web/src/components/uiexports own their look (shadcn/no-restyleenforces this); see 10_web-ui.md.- Inferred types over annotations.
anyis the enemy. - Default to no comment. Write one only for a constraint, external quirk, or invariant the code can't show (1–4 lines max;
t3code/no-low-value-commentsenforces this). - React effects are only for synchronizing with external systems. Derive in render and act in handlers; any remaining effect states its reason via
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- <why>. - No continuously repainting animations; they peg the GPU on high-refresh displays.
- Security matters, but do not over-index on dev-mode or maintainer-only features. Read SECURITY.md before auditing or triaging reports.
- If a rule here fights the task in front of you, say so loudly and get a human sign-off before breaking it.
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.

