The best way to control Claude Code, Codex and more from any computer or phone

main
astro 355 lines 22.1 KB
Raw
1 ---
2 import RetroIcon from "../components/RetroIcon.astro";
3 import RetroBox from "../components/RetroBox.astro";
4 import { GITHUB_REPOSITORY_URL } from "../lib/site";
5 import { MARKETING_STATS } from "../lib/stats";
6 import "../styles/retro.css";
7
8 const agents = [
9 {
10 name: "Claude Code",
11 slug: "claude-code",
12 caption: "Now with manners.",
13 artwork: "Cream and orange software box with a bow-tied desktop computer and a gold PLEASE sticker.",
14 },
15 {
16 name: "Codex",
17 slug: "codex",
18 caption: "Some assembly automated.",
19 artwork: "Silver and green software box with a robot hand stacking glowing code blocks.",
20 },
21 {
22 name: "Cursor",
23 slug: "cursor",
24 caption: "Point. Click. Question everything.",
25 artwork: "Black and chrome software box with an enormous silver arrow and lightning bolts.",
26 },
27 {
28 name: "Grok",
29 slug: "grok",
30 caption: "Adult supervision sold separately.",
31 artwork: "Black and red software box with a spacecraft and an UH OH sticker.",
32 },
33 {
34 name: "OpenCode",
35 slug: "opencode",
36 caption: "Please copy this floppy.",
37 artwork: "Purple shareware box with floppy disks spilling from an open carton.",
38 },
39 {
40 name: "Antigravity",
41 slug: "antigravity",
42 caption: "System requirement: no gravity.",
43 artwork: "Blue and violet software box with a floating chrome triangle and metallic spheres.",
44 },
45 ];
46 const userDigits = MARKETING_STATS.users.replaceAll(",", "").padStart(7, "0").split("");
47 ---
48
49 <!doctype html>
50 <html lang="en">
51 <head>
52 <meta charset="UTF-8" />
53 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
54 <meta name="description" content="Introducing T3 Code. All your coding agents in one happy little window. Free, open source, and available without six CD-ROMs." />
55 <meta name="theme-color" content="#000000" />
56 <link rel="icon" href="/favicon.ico" sizes="48x48" />
57 <title>T3 Code '95 | The future is now. Like, right now.</title>
58 </head>
59 <body>
60 <a class="skip-link retro-button" href="#main-content">Skip to the sales pitch</a>
61
62 <nav class="desktop-icons" aria-label="Desktop shortcuts">
63 <a href="/" class="desktop-icon"><RetroIcon name="computer" /><span>My Computer</span></a>
64 <a href="/download" class="desktop-icon"><RetroIcon name="disk" /><span>Install T3 Code</span></a>
65 <a href={GITHUB_REPOSITORY_URL} class="desktop-icon"><RetroIcon name="globe" /><span>Network<br />Neighborhood</span></a>
66 <button type="button" class="desktop-icon" data-dialog="recycle"><RetroIcon name="bin" /><span>Bad Ideas</span></button>
67 </nav>
68
69 <div class="desktop">
70 <div class="browser-window raised" id="sales-window">
71 <header class="window-title" id="window-title" tabindex="0" aria-label="Move browser window. Drag or use arrow keys. Double-click to maximize.">
72 <span class="window-name"><RetroIcon name="globe" size={18} /><span>T3 Code '95 - Internet Explorer</span></span>
73 <div class="window-controls">
74 <button class="retro-button window-control" type="button" id="minimize" aria-label="Minimize window"><span aria-hidden="true">_</span></button>
75 <button class="retro-button window-control" type="button" id="maximize" aria-label="Maximize window" aria-pressed="false"><span class="maximize-icon" aria-hidden="true"></span></button>
76 <button class="retro-button window-control" type="button" data-dialog="close" aria-label="Close window"><span aria-hidden="true">×</span></button>
77 </div>
78 </header>
79
80 <nav class="browser-menu" aria-label="Page navigation">
81 <a href="#nightly"><u>N</u>ightly</a>
82 <a href="#features"><u>F</u>eatures</a>
83 <a href="#agents"><u>A</u>gents</a>
84 <a href="#order"><u>O</u>rder now</a>
85 <a href={GITHUB_REPOSITORY_URL}><u>S</u>ource</a>
86 <button type="button" data-dialog="help"><u>H</u>elp</button>
87 </nav>
88
89 <div class="address-bar">
90 <span>Address</span>
91 <div class="address-field sunken"><RetroIcon name="globe" size={16} /><span>https://t3.codes/95</span></div>
92 <a class="retro-button address-go" href="/">Go <span aria-hidden="true">↗</span></a>
93 </div>
94
95 <main id="main-content" tabindex="0">
96 <section class="hero" aria-labelledby="hero-title">
97 <div class="hero-copy">
98 <h1 id="hero-title">All your agents.<br />One happy<br /><span>little window.</span></h1>
99 <p class="hero-explanation">Your coding agents in one free, open-source app.<br />You bring the subscriptions. We bring the buttons.</p>
100 <div class="platform-line"><span>AVAILABLE FOR</span><strong>Windows</strong><b>·</b><strong>macOS</strong><b>·</b><strong>Linux</strong></div>
101 </div>
102
103 <div class="edition-packages" aria-label="Choose Stable or Nightly">
104 <a class="hero-package" href="/download" aria-label="Download T3 Code stable">
105 <RetroBox image="t3-code-lime" alt="T3 Code in a lime and teal software box." sizes="(max-width: 620px) 38vw, 170px" eager />
106 <span class="retro-button edition-download">Get Stable <span aria-hidden="true">↗</span></span>
107 </a>
108 <a class="hero-package nightly-package" id="nightly" href="/download?channel=nightly" aria-label="Download T3 Code Nightly preview builds">
109 <RetroBox image="t3-code-nightly-clouds" alt="T3 Code Nightly in a navy box with violet clouds." sizes="(max-width: 620px) 38vw, 170px" eager />
110 <span class="retro-button edition-download">Get Nightly <span aria-hidden="true">↗</span></span>
111 </a>
112 </div>
113 </section>
114
115 <section class="agents-section" id="agents" aria-labelledby="agents-title">
116 <div class="section-heading"><h2 id="agents-title">Bring your favorite agents.</h2></div>
117 <div class="agent-list">
118 {agents.map((agent, index) => (
119 <figure class="agent">
120 <img
121 class="agent-box"
122 src={`/95/providers/${agent.slug}-640.webp`}
123 srcset={[320, 640, 960].map((width) => `/95/providers/${agent.slug}-${width}.webp ${width}w`).join(", ")}
124 sizes="auto, (max-width: 620px) 43vw, (max-width: 1100px) 27vw, 280px"
125 alt={agent.artwork}
126 width="640"
127 height="800"
128 loading={index < 3 ? "eager" : "lazy"}
129 decoding="async"
130 />
131 <figcaption>
132 <h3>{agent.name}</h3>
133 <p>{agent.caption}</p>
134 </figcaption>
135 </figure>
136 ))}
137 </div>
138 <p class="agents-note">Use the providers and subscriptions you already have. Provider charges still apply.</p>
139 <p class="agents-note">Parody packaging. No actual boxes for sale.</p>
140 </section>
141
142 <section class="features-section" id="features" aria-labelledby="features-title">
143 <div class="section-heading"><h2 id="features-title">Inside every copy.</h2></div>
144 <div class="feature-grid">
145 <article class="feature-window raised">
146 <div class="feature-titlebar"><span>01_multitasking.exe</span><span aria-hidden="true">■</span></div>
147 <div class="feature-body"><RetroIcon name="computer" size={38} /><h3>More agents.<br />Less window aerobics.</h3><p>Run agents side by side. Keep your threads, terminals, and diffs together. Reclaim your Alt-Tab finger.</p></div>
148 </article>
149 <article class="feature-window raised">
150 <div class="feature-titlebar"><span>02_remote_access.exe</span><span aria-hidden="true">■</span></div>
151 <div class="feature-body"><RetroIcon name="globe" size={38} /><h3>Your computer.<br />Now over there.</h3><p>Connect from the web, desktop, or mobile. Your agents keep working on your machine. You may approach the couch.</p></div>
152 </article>
153 <article class="feature-window raised">
154 <div class="feature-titlebar"><span>03_source_code.txt</span><span aria-hidden="true">■</span></div>
155 <div class="feature-body"><RetroIcon name="folder" size={38} /><h3>We left the<br />source code in.</h3><p>Read it. Change it. Fork the whole thing. It's MIT licensed, because your tools should actually be yours.</p><a class="feature-tag" href={GITHUB_REPOSITORY_URL}>View source <span aria-hidden="true">↗</span></a></div>
156 </article>
157 <article class="feature-window raised">
158 <div class="feature-titlebar"><span>04_terminal.exe</span><span aria-hidden="true">■</span></div>
159 <div class="feature-body"><RetroIcon name="computer" size={38} /><h3>A terminal.<br />Right where you work.</h3><p>Run commands alongside your agents. Keep the output with the project.</p></div>
160 </article>
161 <article class="feature-window raised">
162 <div class="feature-titlebar"><span>05_changes.diff</span><span aria-hidden="true">■</span></div>
163 <div class="feature-body"><RetroIcon name="folder" size={38} /><h3>See what<br />actually changed.</h3><p>Inspect file diffs and review the work before you ship it.</p></div>
164 </article>
165 <article class="feature-window raised">
166 <div class="feature-titlebar"><span>06_checkpoint.bak</span><span aria-hidden="true">■</span></div>
167 <div class="feature-body"><RetroIcon name="disk" size={38} /><h3>A way<br />back.</h3><p>Use turn checkpoints to inspect changes and restore earlier work.</p></div>
168 </article>
169 </div>
170 </section>
171
172 <section class="order-section" id="order" aria-labelledby="order-title">
173 <div class="order-pitch"><h2 id="order-title">For just <span>0 easy payments</span><br />of absolutely nothing.</h2><p>Get the app. Keep your subscriptions.</p><a class="retro-button primary-cta" href="/download"><RetroIcon name="disk" size={25} /><span>GET T3 CODE. IT'S FREE.</span><span aria-hidden="true">→</span></a><p class="offer-note">T3 Code is free. Your AI provider may charge for use.</p></div>
174 <div class="run-window raised"><div class="window-title"><span>Run</span><RetroIcon name="computer" size={18} /></div><div class="run-body"><p>Too cool for an installer?</p><label for="run-command">Type this in your terminal.</label><div class="command-row"><input id="run-command" class="sunken" value="npx t3" readonly spellcheck="false" aria-label="Terminal command" /><button type="button" class="retro-button" id="copy-command">Copy</button></div><p class="command-feedback" id="command-feedback" role="status">Node.js required. Modem optional.</p><div class="run-divider"></div><b>System requirements</b><ul><li>A modern computer</li><li>A supported coding agent</li><li>A dream, ideally a small one</li></ul><p class="requirements-note">Does not actually run on Windows 95.</p></div></div>
175 </section>
176
177 <section class="faq-section" aria-labelledby="faq-title">
178 <h2 id="faq-title">Questions</h2>
179 <details><summary>Wait. Is this a real product?</summary><p>Yes. T3 Code is a real, free, open-source app used by {MARKETING_STATS.users} developers. The packaging is a joke. The app is not. <a href="/">Visit the regular website.</a></p></details>
180 <details><summary>Does this replace my Claude or Codex subscription?</summary><p>No. T3 Code connects to the coding agents you already use. Keep your provider accounts and subscriptions. T3 Code gives you one app to work with them.</p></details>
181 <details><summary>Will it run on Windows 95?</summary><p>Absolutely not. We brought back the look, not the driver problems. <a href="/download">Get a build for a current version of Windows, macOS, or Linux.</a></p></details>
182 <details><summary>Where do I mail my check?</summary><p>Please do not mail us a check for zero dollars. Just download the app. The entire accounts department is a download button.</p></details>
183 </section>
184
185 <footer class="site-footer">
186 <div class="visitor-counter"><div class="counter-digits" aria-label={`${MARKETING_STATS.users} users`}>{userDigits.map((digit) => <span aria-hidden="true">{digit}</span>)}</div><span>developers use T3 Code.</span></div>
187 <p>© {new Date().getFullYear()} T3 Tools Inc.</p>
188 <nav aria-label="Footer"><a href="/">Back to the present</a><a href={GITHUB_REPOSITORY_URL}>GitHub</a><a href="/privacy-policy">Privacy</a><a href="/terms-of-service">Terms</a></nav>
189 </footer>
190 </main>
191
192 <div class="browser-status"><span class="sunken">Done.</span><span class="sunken"><RetroIcon name="globe" size={14} /> Internet</span><span class="resize-grip" aria-hidden="true"></span></div>
193 </div>
194
195 <div class="minimized-message" id="minimized-message" hidden><RetroIcon name="computer" size={64} /><h1>The future is minimized.</h1><p>Your productivity is one click away.</p><button type="button" class="retro-button" data-restore>Restore T3 Code '95</button></div>
196 </div>
197
198 <div class="taskbar raised">
199 <details class="start-menu" id="start-menu"><summary class="retro-button start-button"><span class="start-mark" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Start</summary><nav class="start-panel raised" aria-label="Start menu"><div class="start-brand">T3 CODE <b>95</b></div><div><a href="/download"><RetroIcon name="disk" size={24} />Install T3 Code</a><button type="button" data-restore><RetroIcon name="computer" size={24} />Restore the future</button><a href={GITHUB_REPOSITORY_URL}><RetroIcon name="folder" size={24} />Explore source code</a><a href="/"><RetroIcon name="globe" size={24} />Return to the present</a></div></nav></details>
200 <span class="taskbar-divider" aria-hidden="true"></span>
201 <button class="task-button sunken" type="button" data-restore><RetroIcon name="globe" size={20} /><span>T3 Code '95</span></button>
202 <div class="taskbar-clock sunken"><span aria-hidden="true">◷</span><span>4:04 PM</span></div>
203 </div>
204
205 <dialog class="retro-dialog raised" id="sales-dialog" aria-labelledby="dialog-title" aria-describedby="dialog-message"><div class="window-title"><span id="dialog-title">T3 Code '95</span><button type="button" class="retro-button window-control" data-dismiss aria-label="Close dialog">×</button></div><div class="dialog-content"><RetroIcon name="computer" size={42} /><p id="dialog-message"></p></div><div class="dialog-actions"><button class="retro-button" type="button" data-dismiss autofocus>OK, fine.</button><a class="retro-button" href="/download">Get T3 Code</a></div></dialog>
206
207 <script>
208 const salesWindow = document.querySelector<HTMLElement>("#sales-window");
209 const minimizedMessage = document.querySelector<HTMLElement>("#minimized-message");
210 const minimizeButton = document.querySelector<HTMLButtonElement>("#minimize");
211 const maximizeButton = document.querySelector<HTMLButtonElement>("#maximize");
212 const startMenu = document.querySelector<HTMLDetailsElement>("#start-menu");
213 const taskButton = document.querySelector<HTMLButtonElement>(".task-button");
214 const titleBar = document.querySelector<HTMLElement>("#window-title");
215 const taskbar = document.querySelector<HTMLElement>(".taskbar");
216 let windowX = 0;
217 let windowY = 0;
218
219 // Keep the entire window above the taskbar, including after a viewport resize.
220 function moveWindow(x: number, y: number) {
221 if (!salesWindow || document.body.classList.contains("maximized")) return;
222 const rect = salesWindow.getBoundingClientRect();
223 const originX = rect.left - windowX;
224 const originY = rect.top - windowY;
225 const bottom = taskbar?.getBoundingClientRect().top ?? window.innerHeight;
226 windowX = Math.max(-originX, Math.min(x, window.innerWidth - rect.width - originX));
227 windowY = Math.max(-originY, Math.min(y, bottom - rect.height - originY));
228 salesWindow.style.setProperty("--window-x", `${windowX}px`);
229 salesWindow.style.setProperty("--window-y", `${windowY}px`);
230 }
231
232 function toggleMaximize() {
233 if (!maximizeButton) return;
234 const maximized = document.body.classList.toggle("maximized");
235 maximizeButton.setAttribute("aria-pressed", String(maximized));
236 maximizeButton.setAttribute("aria-label", maximized ? "Restore window size" : "Maximize window");
237 if (!maximized) moveWindow(windowX, windowY);
238 }
239
240 if (titleBar && salesWindow) {
241 let drag: { pointerId: number; startX: number; startY: number; x: number; y: number } | undefined;
242
243 titleBar.addEventListener("pointerdown", (event) => {
244 if (!event.isPrimary || event.button !== 0 || document.body.classList.contains("maximized")) return;
245 if (event.target instanceof Element && event.target.closest("button")) return;
246 drag = { pointerId: event.pointerId, startX: event.clientX, startY: event.clientY, x: windowX, y: windowY };
247 titleBar.focus({ preventScroll: true });
248 titleBar.setPointerCapture(event.pointerId);
249 titleBar.classList.add("dragging");
250 });
251 titleBar.addEventListener("pointermove", (event) => {
252 if (!drag || event.pointerId !== drag.pointerId) return;
253 moveWindow(drag.x + event.clientX - drag.startX, drag.y + event.clientY - drag.startY);
254 });
255 const stopDrag = () => {
256 drag = undefined;
257 titleBar.classList.remove("dragging");
258 };
259 titleBar.addEventListener("pointerup", stopDrag);
260 titleBar.addEventListener("pointercancel", stopDrag);
261 titleBar.addEventListener("lostpointercapture", stopDrag);
262 titleBar.addEventListener("dblclick", (event) => {
263 if (event.target instanceof Element && event.target.closest("button")) return;
264 toggleMaximize();
265 });
266 titleBar.addEventListener("keydown", (event) => {
267 if (event.target !== titleBar || event.altKey || event.ctrlKey || event.metaKey) return;
268 const step = event.shiftKey ? 1 : 10;
269 switch (event.key) {
270 case "ArrowLeft": moveWindow(windowX - step, windowY); break;
271 case "ArrowRight": moveWindow(windowX + step, windowY); break;
272 case "ArrowUp": moveWindow(windowX, windowY - step); break;
273 case "ArrowDown": moveWindow(windowX, windowY + step); break;
274 default: return;
275 }
276 event.preventDefault();
277 });
278 }
279
280 window.addEventListener("resize", () => {
281 if (!salesWindow?.hidden) moveWindow(windowX, windowY);
282 });
283
284 minimizeButton?.addEventListener("click", () => {
285 if (!salesWindow || !minimizedMessage) return;
286 salesWindow.hidden = true;
287 minimizedMessage.hidden = false;
288 taskButton?.focus();
289 });
290
291 document.querySelectorAll<HTMLButtonElement>("[data-restore]").forEach((button) => {
292 button.addEventListener("click", () => {
293 if (!salesWindow || !minimizedMessage) return;
294 salesWindow.hidden = false;
295 minimizedMessage.hidden = true;
296 if (startMenu) startMenu.open = false;
297 moveWindow(windowX, windowY);
298 minimizeButton?.focus({ preventScroll: true });
299 });
300 });
301
302 maximizeButton?.addEventListener("click", toggleMaximize);
303
304 const messages = {
305 recycle: { title: "Recycle Bin", message: "Contents: 47 abandoned side projects, 12 startup ideas, and one very ambitious TODO comment. T3 Code cannot fix your commitment issues. But it can help you ship." },
306 close: { title: "Close the future?", message: "You are about to return to a world with too many terminal windows. Are you sure? Our sales department would prefer that you download T3 Code." },
307 help: { title: "Windows Help", message: "It looks like you're trying to ship software. Have you tried putting all your coding agents in one app? Click Get T3 Code. No paperclip will follow you home." },
308 };
309 const dialog = document.querySelector<HTMLDialogElement>("#sales-dialog");
310 const dialogTitle = document.querySelector<HTMLElement>("#dialog-title");
311 const dialogMessage = document.querySelector<HTMLElement>("#dialog-message");
312
313 document.querySelectorAll<HTMLButtonElement>("[data-dialog]").forEach((button) => {
314 button.addEventListener("click", () => {
315 const kind = button.dataset.dialog;
316 if (!dialog || !dialogTitle || !dialogMessage) return;
317 if (kind !== "recycle" && kind !== "close" && kind !== "help") return;
318 dialogTitle.textContent = messages[kind].title;
319 dialogMessage.textContent = messages[kind].message;
320 dialog.showModal();
321 });
322 });
323 document.querySelectorAll<HTMLButtonElement>("[data-dismiss]").forEach((button) => {
324 button.addEventListener("click", () => dialog?.close());
325 });
326
327 document.addEventListener("keydown", (event) => {
328 if (event.key === "Escape" && startMenu?.open) {
329 startMenu.open = false;
330 startMenu.querySelector("summary")?.focus();
331 }
332 });
333 document.addEventListener("click", (event) => {
334 if (startMenu?.open && event.target instanceof Node && !startMenu.contains(event.target)) {
335 startMenu.open = false;
336 }
337 });
338
339 const copyButton = document.querySelector<HTMLButtonElement>("#copy-command");
340 const command = document.querySelector<HTMLInputElement>("#run-command");
341 const feedback = document.querySelector<HTMLElement>("#command-feedback");
342 copyButton?.addEventListener("click", async () => {
343 if (!command || !feedback) return;
344 try {
345 await navigator.clipboard.writeText(command.value);
346 feedback.textContent = "Copied! Paste it in your terminal. Welcome to the future.";
347 } catch {
348 command.focus();
349 command.select();
350 feedback.textContent = "Select and copy the command, then paste it in your terminal.";
351 }
352 });
353 </script>
354 </body>
355 </html>