From 2b4e9df5b108905373068cdba52125eb6243dad1 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:02:09 -0700 Subject: [PATCH 1/7] docs: document the optional GitCafe mirror workflow Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 1 + docs/operations/development.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 1bb59f2a8d6fd..e312cd3373dba 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -139,6 +139,7 @@ For authorized mobile verification, a missing or outdated native client is a bui ## Pull requests - Never make a PR unless the developer explicitly asks you to do so. +- If `origin` is git.cafe, follow [GitCafe mirror](docs/operations/development.md#gitcafe-mirror-optional): read through `cafe`, but push and open PRs on GitHub, where CI runs. - 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. diff --git a/docs/operations/development.md b/docs/operations/development.md index d3c3226d9b048..6215a4a5aa474 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -15,6 +15,39 @@ a new browser. Prefer a container? See [Dev container](../internals/devcontainer.md) for VS Code and Codespaces setup. +## GitCafe mirror (optional) + +GitHub is the source of truth. [git.cafe/pingdotgg/t3code](https://git.cafe/pingdotgg/t3code) is a +two-way synced mirror with much higher API rate limits, which helps when many agents read PRs and +issues at once. You never need it to contribute. + +The mirror has no CI, so it is for reads only. Fetch and read through GitCafe; push and open PRs on +GitHub, and GitCafe mirrors them within about a minute. + +```sh +git remote set-url origin https://git.cafe/pingdotgg/t3code.git +git remote add github https://github.com/pingdotgg/t3code.git +# The GitHub remote you push to: `github`, or your fork's remote. +git config remote.pushDefault github +bun install -g @gitcafe/cli # `cafe` runs under Bun +cafe auth login && cafe auth http setup +cafe skills install --global # optional: cafe-* skills for coding agents +``` + +With `origin` on git.cafe: + +- Read PRs, issues, comments, reviews, and check status with `cafe`; checks come from + `cafe pr status --json`. +- Push, open PRs, run stacks, and merge on GitHub: `git push` (via `pushDefault`), `gh pr create`, + `gh stack`, `gh pr merge --match-head-commit `. Never `cafe pr create` or + `cafe stack submit`: those PRs get no CI. +- Use `gh` for what the mirror lacks: CI logs and reruns, PR labels, a fork PR's head repository, + and anything `cafe` returns empty or 403/404 for. +- PR and issue numbers can differ between the forges. Name PRs by branch + (`cafe pr list --head `, `gh pr view `), and write `Fixes #`. +- `cafe` flags differ from `gh`: `--repo` not `-R`, `cafe issue comments ` not `--comments`, + `cafe pr status` not `pr checks`. `cafe ci` covers GitCafe Actions only, so it is empty here. + ## Choosing a dev process Use `vp run dev` for server and web, or `vp run dev:desktop` for the Electron client. From 7eb8f4d015e9421bc4d02404869209cb99550fe9 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:04:58 -0700 Subject: [PATCH 2/7] docs: GitCafe writes sync too; only PR creation must be on GitHub Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 +- docs/operations/development.md | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e312cd3373dba..a7e6635fb2ddc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -139,7 +139,7 @@ For authorized mobile verification, a missing or outdated native client is a bui ## Pull requests - Never make a PR unless the developer explicitly asks you to do so. -- If `origin` is git.cafe, follow [GitCafe mirror](docs/operations/development.md#gitcafe-mirror-optional): read through `cafe`, but push and open PRs on GitHub, where CI runs. +- If `origin` is git.cafe, follow [GitCafe mirror](docs/operations/development.md#gitcafe-mirror-optional): use `cafe` for PRs, issues, comments and labels, but push and open PRs on GitHub, where CI runs. - 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. diff --git a/docs/operations/development.md b/docs/operations/development.md index 6215a4a5aa474..214c883b09adb 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -21,8 +21,9 @@ GitHub is the source of truth. [git.cafe/pingdotgg/t3code](https://git.cafe/ping two-way synced mirror with much higher API rate limits, which helps when many agents read PRs and issues at once. You never need it to contribute. -The mirror has no CI, so it is for reads only. Fetch and read through GitCafe; push and open PRs on -GitHub, and GitCafe mirrors them within about a minute. +Comments, reviews, labels, and issue edits made on GitCafe sync back to GitHub. The exception is +code: CI runs only on GitHub, so push branches and open PRs there. GitCafe mirrors a new PR within +about a minute, and from then on you can work with it through either forge. ```sh git remote set-url origin https://git.cafe/pingdotgg/t3code.git @@ -36,17 +37,18 @@ cafe skills install --global # optional: cafe-* skills for coding agents With `origin` on git.cafe: -- Read PRs, issues, comments, reviews, and check status with `cafe`; checks come from - `cafe pr status --json`. -- Push, open PRs, run stacks, and merge on GitHub: `git push` (via `pushDefault`), `gh pr create`, - `gh stack`, `gh pr merge --match-head-commit `. Never `cafe pr create` or - `cafe stack submit`: those PRs get no CI. -- Use `gh` for what the mirror lacks: CI logs and reruns, PR labels, a fork PR's head repository, - and anything `cafe` returns empty or 403/404 for. +- Use `cafe` for PRs, issues, comments, reviews, and labels, both reading and writing. Check status + comes from `cafe pr status --json`. +- Create PRs on GitHub: `git push` (to the `pushDefault` remote), then `gh pr create` or `gh stack`. + Never `cafe pr create` or `cafe stack submit`, because those PRs get no CI. +- Merge with `gh pr merge --match-head-commit `. `cafe pr merge` has no head lock. +- Use `gh` where the mirror falls short: CI logs and reruns, a fork PR's head repository, and + anything `cafe` returns empty or 403/404 for. - PR and issue numbers can differ between the forges. Name PRs by branch (`cafe pr list --head `, `gh pr view `), and write `Fixes #`. - `cafe` flags differ from `gh`: `--repo` not `-R`, `cafe issue comments ` not `--comments`, - `cafe pr status` not `pr checks`. `cafe ci` covers GitCafe Actions only, so it is empty here. + `cafe pr status` not `pr checks`. `cafe ci` only lists GitCafe Actions runs, which this repo + doesn't have, so it comes back empty here. `cafe api` paths omit `/api` (`cafe api /repos/...`). ## Choosing a dev process From 09c1f854ab0a17a7c56091ff7dbbf5f860cf2ec5 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:16:47 -0700 Subject: [PATCH 3/7] docs: correct why GitCafe PR creation and merges go through gh Co-Authored-By: Claude Opus 5.5 --- docs/operations/development.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/operations/development.md b/docs/operations/development.md index 214c883b09adb..6ac13f828c537 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -22,8 +22,8 @@ two-way synced mirror with much higher API rate limits, which helps when many ag issues at once. You never need it to contribute. Comments, reviews, labels, and issue edits made on GitCafe sync back to GitHub. The exception is -code: CI runs only on GitHub, so push branches and open PRs there. GitCafe mirrors a new PR within -about a minute, and from then on you can work with it through either forge. +code: push branches and open PRs on GitHub, where CI runs. GitCafe mirrors a new PR within about a +minute, and from then on you can work with it through either forge. ```sh git remote set-url origin https://git.cafe/pingdotgg/t3code.git @@ -40,8 +40,13 @@ With `origin` on git.cafe: - Use `cafe` for PRs, issues, comments, reviews, and labels, both reading and writing. Check status comes from `cafe pr status --json`. - Create PRs on GitHub: `git push` (to the `pushDefault` remote), then `gh pr create` or `gh stack`. - Never `cafe pr create` or `cafe stack submit`, because those PRs get no CI. -- Merge with `gh pr merge --match-head-commit `. `cafe pr merge` has no head lock. + A PR opened with `cafe pr create` or `cafe stack submit` can get a different number on each forge, + a sync marker appended to its body, and rewritten references, and it cannot come from a fork. +- Write or edit text with closing keywords using `gh`. Any text GitCafe writes to GitHub has its + `#` references turned into GitCafe links, so a `Fixes #` edited through `cafe` silently stops + closing the issue. +- Merge with `gh pr merge --match-head-commit `. `cafe pr merge` only pins the head + GitCafe last saw, not the commit you reviewed. - Use `gh` where the mirror falls short: CI logs and reruns, a fork PR's head repository, and anything `cafe` returns empty or 403/404 for. - PR and issue numbers can differ between the forges. Name PRs by branch From 70f60f9c9e685bbba521a6d738e459c0133deab8 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:20:59 -0700 Subject: [PATCH 4/7] docs: address review on the GitCafe mirror section Drops the stale "Bun is optional" note, sets the gh default repo, and describes this repository's CI instead of cafe ci in general. Co-Authored-By: Claude Opus 5.5 --- docs/operations/development.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/operations/development.md b/docs/operations/development.md index 6ac13f828c537..cbd65af16267e 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -2,8 +2,8 @@ ## First checkout -Install `vp` using the [root README](../../README.md#install-vp). The checkout requires Node 24; -Bun is optional. From the repository root: +Install `vp` using the [root README](../../README.md#install-vp). The checkout requires Node 24. +From the repository root: ```sh vp i @@ -30,7 +30,8 @@ git remote set-url origin https://git.cafe/pingdotgg/t3code.git git remote add github https://github.com/pingdotgg/t3code.git # The GitHub remote you push to: `github`, or your fork's remote. git config remote.pushDefault github -bun install -g @gitcafe/cli # `cafe` runs under Bun +gh repo set-default pingdotgg/t3code +bun install -g @gitcafe/cli # `cafe` needs Bun 1.2 or newer cafe auth login && cafe auth http setup cafe skills install --global # optional: cafe-* skills for coding agents ``` @@ -52,8 +53,8 @@ With `origin` on git.cafe: - PR and issue numbers can differ between the forges. Name PRs by branch (`cafe pr list --head `, `gh pr view `), and write `Fixes #`. - `cafe` flags differ from `gh`: `--repo` not `-R`, `cafe issue comments ` not `--comments`, - `cafe pr status` not `pr checks`. `cafe ci` only lists GitCafe Actions runs, which this repo - doesn't have, so it comes back empty here. `cafe api` paths omit `/api` (`cafe api /repos/...`). + `cafe pr status` not `pr checks`. This repository's CI is GitHub Actions on GitHub, so `cafe ci` + has no runs for it; read logs with `gh run view`. `cafe api` paths omit `/api` (`cafe api /repos/...`). ## Choosing a dev process From de2f78bf5bbf6b9e83f1fac42ca2efa827817975 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:21:42 -0700 Subject: [PATCH 5/7] docs: scope cafe writes to existing PRs Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 +- docs/operations/development.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a7e6635fb2ddc..a819ca117ae4e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -139,7 +139,7 @@ For authorized mobile verification, a missing or outdated native client is a bui ## Pull requests - Never make a PR unless the developer explicitly asks you to do so. -- If `origin` is git.cafe, follow [GitCafe mirror](docs/operations/development.md#gitcafe-mirror-optional): use `cafe` for PRs, issues, comments and labels, but push and open PRs on GitHub, where CI runs. +- If `origin` is git.cafe, follow [GitCafe mirror](docs/operations/development.md#gitcafe-mirror-optional): use `cafe` for existing PRs, issues, comments and labels, but push and open PRs on GitHub, where CI runs. - 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. diff --git a/docs/operations/development.md b/docs/operations/development.md index cbd65af16267e..3bb72968d61e4 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -38,7 +38,7 @@ cafe skills install --global # optional: cafe-* skills for coding agents With `origin` on git.cafe: -- Use `cafe` for PRs, issues, comments, reviews, and labels, both reading and writing. Check status +- Use `cafe` for existing PRs, issues, comments, reviews, and labels, both reading and writing. Check status comes from `cafe pr status --json`. - Create PRs on GitHub: `git push` (to the `pushDefault` remote), then `gh pr create` or `gh stack`. A PR opened with `cafe pr create` or `cafe stack submit` can get a different number on each forge, From 7133b52ba97db93fd770349dd20b798de64be041 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:24:07 -0700 Subject: [PATCH 6/7] docs: bring the development runbook up to date Node 26 comes from vp, the main checkout's dev state lives in ~/.t3/dev, first worktree starts seed their database, and marketing no longer runs astro check. Co-Authored-By: Claude Opus 5.5 --- docs/operations/development.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/operations/development.md b/docs/operations/development.md index 3bb72968d61e4..5b12125803882 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -2,8 +2,8 @@ ## First checkout -Install `vp` using the [root README](../../README.md#install-vp). The checkout requires Node 24. -From the repository root: +Install `vp` using the [root README](../../README.md#install-vp). It provides the Node version +pinned in `package.json` (Node 26), so no separate Node install is needed. From the repository root: ```sh vp i @@ -68,7 +68,9 @@ Add `--browser` to open a browser automatically. ### State and ports Linked worktrees default to their own `.t3/userdata`, even when `T3CODE_HOME` is set. -The main checkout defaults to `~/.t3/dev/userdata`. An explicit `--home-dir` wins in both cases. +The main checkout defaults to `~/.t3/dev`. An explicit `--home-dir` wins in both cases. +The first start in a worktree seeds its empty database from a read-only copy of +`~/.t3/userdata`; `--no-seed` or `T3CODE_DEV_SEED=0` skips that. Never run a development server against the live `~/.t3/userdata`. See [test data](../../AGENTS.md#test-data) for copying a consistent database snapshot. @@ -173,7 +175,6 @@ and runs in headless Chromium with the React Compiler on, like the app. There is TypeScript workspaces typecheck with `tsc`. The `typescript` catalog entry is `@tsc-rs/typescript`, the tsc-rs drop-in, with Effect diagnostics, quick fixes, and refactors built in. VS Code uses it through `js/ts.tsdk.path` in `.vscode/settings.json`. -Marketing keeps `astro check` for Astro files. Use `vp run lint:mobile` for native mobile changes. CI owns the full suite; see [ci.yml](../../.github/workflows/ci.yml) for its current jobs. From c654bee74c4e3aafd27e393ff764952d2b2db83a Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 13:25:28 -0700 Subject: [PATCH 7/7] fix(devcontainer): install Node 26 to match package.json The container still installed Node 24 while engines.node pins 26.12.1. Docs that named Node 24 now point at vp's pinned Node. Co-Authored-By: Claude Opus 5.5 --- .devcontainer/devcontainer.json | 4 ++-- docs/internals/devcontainer.md | 2 +- docs/operations/background-verification.md | 2 +- docs/user/install.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5880459d75a12..144879ecdb565 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,4 @@ -// Dev container for T3 Code. Mirrors CI (ubuntu-24.04, Node 24, Rust stable) +// Dev container for T3 Code. Mirrors CI (ubuntu-24.04, Node 26, Rust stable) // and the canonical setup in docs/operations/development.md: global `vp`, `vp i`. // Contributor doc: docs/internals/devcontainer.md { @@ -8,7 +8,7 @@ // nodeGypDependencies (default true) brings python3/make/g++, which Linux // needs for node-pty's node-gyp fallback (its prebuilds are mac/win only). "ghcr.io/devcontainers/features/node:2": { - "version": "24" + "version": "26" }, // native/resource-monitor (edition 2024, needs stable >= 1.85). The server // degrades gracefully without the binary, but CI checks cargo fmt + test. diff --git a/docs/internals/devcontainer.md b/docs/internals/devcontainer.md index 60eb602a9024c..2d07c620483e1 100644 --- a/docs/internals/devcontainer.md +++ b/docs/internals/devcontainer.md @@ -2,7 +2,7 @@ > For maintainers. Using T3 Code? See [docs/user](../user/). -`.devcontainer/` gives you a ready-to-code Linux environment matching CI: Ubuntu 24.04, Node 24, pnpm, Rust stable, the global `vp` CLI, and the GitHub CLI. Open the repo in VS Code and "Reopen in Container", or create a GitHub Codespace. Dependency install (`vp i`), the Electron exec-bit repair, and the Vite dep-cache warmup all run automatically before you attach. +`.devcontainer/` gives you a ready-to-code Linux environment matching CI: Ubuntu 24.04, Node 26, pnpm, Rust stable, the global `vp` CLI, and the GitHub CLI. Open the repo in VS Code and "Reopen in Container", or create a GitHub Codespace. Dependency install (`vp i`), the Electron exec-bit repair, and the Vite dep-cache warmup all run automatically before you attach. ## What works in the container diff --git a/docs/operations/background-verification.md b/docs/operations/background-verification.md index 6d68e974bf0a1..6204879e21a42 100644 --- a/docs/operations/background-verification.md +++ b/docs/operations/background-verification.md @@ -1,6 +1,6 @@ # Live background-work verification -Run from the repository root with Node 24 and installed dependencies. This uses +Run from the repository root with installed dependencies (`vp` provides the pinned Node). This uses real provider CLI credentials and consumes model usage: ```sh diff --git a/docs/user/install.md b/docs/user/install.md index 59c8648934ca4..64b1f19fac54b 100644 --- a/docs/user/install.md +++ b/docs/user/install.md @@ -48,7 +48,7 @@ Node.js for `npx`). ### Intel Macs There is no `t3` executable for Intel Macs (the desktop app is available). To -run a server there, build it from source with Node.js 24 and `vp` +run a server there, build it from source with `vp`, which provides the Node version it needs ([Install vp](https://github.com/pingdotgg/t3code#install-vp)): ```bash