TRIAD setup A developer documented the setup for TRIAD (Tracker-Recorded, Independently Approved Development), a protocol that runs a single-machine workflow across three windows: Claude.ai in a browser for planning and approval, Claude Code in a terminal for building, testing and git/GitHub work, and a tracker page for state and a time-stamped event log. The writeup covers installing Claude Code and the GitHub CLI, signing in, and platform differences on macOS, Windows (via WSL 2) and Linux, including the failure mode where closing the Claude desktop app breaks Claude.ai's ability to read Claude Code's reports. The developer's computer on the left, the cloud on the right. The developer works in the browser and the terminal; every arrow is a connection TRIAD needs. The drawing is explained in "The whole architecture" below. The TRIAD protocol Tracker-Recorded, Independently Approved Development runs on one computer with three windows open side by side: Claude.ai in a web browser, Claude Code in a terminal, and the tracker page in a second browser window. This note sets them up. It was first written on a Mac on 2026-11-12, including the mistakes made on the way; the parts that differ on Windows and Linux are marked. Three roles, each doing one job, with every exchange between them written down: How one task goes through the three is described in the article Application development cycle with TRIAD https://dev.to/adriatic/application-development-cycle-with-triad-10c1 . The developer decides; the two Claudes each do one job; the tracker records everything that passes between them. | Window | App | Role | |---|---|---| | Left | Claude.ai in the browser the TRIAD chat | The developer asks, answers and approves here. Claude.ai plans, reads every report, writes the tasks and test steps, and keeps the tracker. | | Middle | Claude Code in a terminal macOS Terminal; Windows Terminal with an Ubuntu tab on Windows; any terminal on Linux | Builds, tests, and does all git and GitHub work. The developer pastes each task here. | | Right | The tracker page in a second browser window | What is waiting for the developer, each task's state, and a time-stamped event log. | The developer carries each message from one window to the next: a task from the tracker into Claude Code, the report's commit hash from Claude Code into Claude.ai, and step results from the notes app into Claude.ai. What the drawing means. The two Claudes reach the developer's computer in different ways: So the two can be in different states at the same time. If the desktop app is closed for example after a system update restarted the computer , Claude Code goes on working normally, but Claude.ai can no longer read Claude Code's reports. The cure is simply to start the desktop app again. Every arrow in the drawing is a connection TRIAD needs; this bridge is the one most easily lost. Steps checked on 2026-11-26 against Anthropic's setup page, https://code.claude.com/docs/en/setup https://code.claude.com/docs/en/setup . If anything on screen differs, that page is right and this note is out of date. On macOS and Linux: curl -fsSL https://claude.ai/install.sh | bash claude --version and press Return. Expected: a version number. If the terminal says claude is not found, follow "Fix your PATH" on Anthropic's troubleshooting page, On Windows: Anthropic supports two ways, native Windows and inside WSL. TRIAD uses WSL 2; the steps are in "Setting up on Windows WSL 2 " below W1 to W4 . Signing in. The first time Claude Code is started see "Start Claude Code in its own window" , it opens a browser page to sign in with the developer's Claude account. After signing in, the developer returns to the terminal. In TRIAD, Claude Code does all git and GitHub work; the developer only signs in, once. This works the same on every system on Windows, in the Ubuntu tab . Install git and the GitHub CLI gh on this computer, following GitHub's official instructions at https://github.com/cli/cli installation for this operating system. Then tell me the exact command I must run myself to sign in to GitHub, and stop. Do not run the sign-in yourself. gh auth login and press Return. Answer its questions: GitHub.com, HTTPS, Yes to authenticate git, Login with a web browser. It shows a one-time code: copy it, press Return, and paste the code into the GitHub page that opens. gh auth status and press Return. Expected: "Logged in to github.com account" followed by the developer's GitHub name. The sign-in is done by the developer, never by Claude Code: it is the one moment a credential is entered, and it stays in the developer's hands. Give every project its own terminal window. Claude Code does its git work in the folder it was started in, so two projects sharing one window can put commits in the wrong repository. The steps are for the Mac; on Linux they are the same in any terminal; on Windows see W5. mkdir -p /Users/yourname/Work/triad-feedbox cd /Users/yourname/Work/triad-feedbox and press Return. Two color settings must agree: the terminal window's and Claude Code's own. /theme and press Return. Choose the theme that matches the terminal's background Light mode for black on white with the arrow keys and press Return. As "What the drawing means" explains, Claude.ai reaches the files on the developer's computer only through the Claude desktop app. Claude.ai creates the tracker as a page and keeps it; the developer only reads it, in a second browser window. It holds, top to bottom: The first loop follows the typical cycle see Application development cycle with TRIAD https://dev.to/adriatic/application-development-cycle-with-triad-10c1 : the developer says what to build; Claude.ai writes the task in the tracker; the developer copies it with its copy button, pastes it at the ❯ input line in Claude Code, presses Return and tells Claude.ai "submitted"; when Claude Code finishes, the developer gives Claude.ai only the report's commit hash, and Claude.ai opens the report itself. This section was the separate guide "TRIAD setup on Windows with WSL 2", written 2026-11-25 with a first tester; it is now kept here. On Windows, Claude Code runs inside WSL 2: a Linux system Ubuntu that runs inside Windows. The Windows, WSL and Claude Code steps were checked on 2026-11-25 against Microsoft's "Install WSL" page and Anthropic's Claude Code setup page and Claude Desktop documentation. How to use this section. Every step has a fixed code W1-1, W1-2, … , so a step can be named exactly. It helps to copy the steps into a note and write under each one OK, or what was seen pasting any error text . If a step fails, stop there and send the note to whoever shared this section: do not work around it. Anything that had to be guessed counts as a defect, even if the guess worked. What it needs, in addition to the list above: Windows 10 version 2004 or later, or Windows 11 for WSL 2 , and administrator rights once, for W1. No Vercel or Supabase: the first project is a tiny program with no database W9 . How Windows differs from the Mac setup | Part | The Mac setup | Windows | |---|---|---| | Claude Code runs in | macOS Terminal | Windows Terminal, Ubuntu tab WSL 2 | | Project folder | /Users/ name /Work/… | ~/work/triad-hello inside Ubuntu | | Reports folder | /Users/ name /CC reports and tasks | C:\Users Windows name \CC-reports, which Ubuntu sees as /mnt/c/Users/ Windows name /CC-reports | | How Claude.ai reads the reports | Claude desktop app for Mac | Claude desktop app for Windows | | Notes for results | Mac Notes | any notes app | The reports folder must be on the Windows side, not inside Ubuntu: Anthropic's Claude Desktop documentation says the desktop app is not installed inside WSL, and files inside WSL can be attached only through a mapped drive or by copying them to a Windows folder. A Windows folder that Ubuntu also sees under /mnt/c avoids both. The name CC-reports has no spaces on purpose: paths with spaces need quotes in every command, and a missing quote is an easy mistake. W1-1. Click Start, type PowerShell, right-click Windows PowerShell , and choose Run as administrator . Answer Yes to the Windows question. W1-2. In that PowerShell window, type the line below and press Enter. It turns on WSL and installs Ubuntu. wsl --install W1-3. Restart the PC when the command finishes. W1-4. After the restart, Ubuntu opens by itself if not: Start, type Ubuntu, open it . Wait while it unpacks, then create a Linux user name and password when asked. Keep this password: Ubuntu asks for it when a command starts with sudo. W1-5. Open a normal not administrator PowerShell window, type the line below and press Enter. wsl -l -v Expected: a line for Ubuntu with 2 in the VERSION column. If it shows 1, type wsl --set-version Ubuntu 2 , press Enter, and run wsl -l -v again. W2-1. In the browser, open https://claude.com/download https://claude.com/download , download the Windows version Windows arm64 only if the PC has an ARM processor , install it, and sign in with the Claude account. W2-2. Leave the Claude desktop app running whenever working with TRIAD see "What the drawing means" . W3-1. Open Windows Terminal Start, type Terminal . Click the small down-arrow next to the + tab button and choose Ubuntu . All later commands marked "Ubuntu tab" are typed here. W3-2. In the Ubuntu tab, paste the line below and press Enter to paste in Windows Terminal, press Ctrl+Shift+V . It finds the Windows user name and creates the folder C:\Users Windows name \CC-reports. WINUSER=$ cmd.exe /c 'echo %USERNAME%' 2 /dev/null | tr -d '\r' ; mkdir -p "/mnt/c/Users/$WINUSER/CC-reports" && echo "Created /mnt/c/Users/$WINUSER/CC-reports" Expected: one line starting with "Created /mnt/c/Users/". Keep the full path from that line; W7 and W8 use it. W3-3. Open File Explorer, go to C:\Users, open the user folder, and check that the folder CC-reports is there. Install it in the Ubuntu tab only: Anthropic's setup page says that with WSL, claude is installed and launched inside the WSL terminal, not from PowerShell or CMD. W4-1. In the Ubuntu tab, paste the line below and press Enter. curl -fsSL https://claude.ai/install.sh | bash W4-2. Close the Ubuntu tab and open a new one as in W3-1 , so the new command is found. Then type claude --version and press Enter, then claude doctor and press Enter. Expected: a version number such as "2.x.x Claude Code ", then a diagnostics report with no errors. Give every project its own Ubuntu tab, for the same reason as on the Mac. W5-1. In the Ubuntu tab, type the line below and press Enter. It creates the project folder and goes into it. mkdir -p ~/work/triad-hello && cd ~/work/triad-hello W5-2. Type claude and press Enter. The first time, it opens a browser page to sign in with the Claude account; sign in, then come back to the Ubuntu tab. W5-3. Claude Code asks whether to trust this folder. The highlighted answer is No, exit . Press the down arrow once to reach Yes, I trust this folder , then press Enter. W5-4. Wait for the Claude Code welcome box and the input line marked ❯ at the bottom. Paste only there. W5-5. If any text in Claude Code is hard to read, type /theme at the ❯ line, press Enter, choose the theme that matches the terminal background with the arrow keys, and press Enter. W6-1. Do steps 1 to 3 of "Connect Claude Code to GitHub" above, in the Claude Code tab and a second Ubuntu tab. Keep the result of gh auth status . W6-2. Back in the Claude Code tab, paste the message below at the ❯ line and press Enter. Set my git user.name and user.email ask me for both . Then create a new private GitHub repository named triad-hello under my account, make this folder ~/work/triad-hello its local clone with a main branch, and push an initial commit containing only a README.md that says "TRIAD test project". Before every git command run git rev-parse --show-toplevel and confirm it is ~/work/triad-hello. Tell me the repository address when done. Expected: the address https://github.com/ GitHub