Skip to content
comonadhqPublic

About

CoCode: personal fork of T3 Code

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7,961 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoCode

A control plane for the coding agents already installed on your machine.
Desktop, web, iOS, and the cocode CLI, maintained by Comonad.

Website · Docs · Issues · Architecture · Licence

MIT Licence TypeScript Node.js 26.13.1 Electron

Experiment. CoCode is an experimental fork of T3 Code, maintained by Comonad. It is not recommended for stable or production use. CoCode is not affiliated with, endorsed by, or sponsored by T3 Tools, Inc.

CoCode and T3 Code are both released under the MIT License. LICENSE keeps Copyright (c) 2026 T3 Tools Inc. and Copyright (c) 2026 Comonad.

On first launch, CoCode renames ~/.t3 to ~/.cocode when ~/.cocode is missing and ~/.t3 is the only copy. A T3CODE_* variable is copied when the matching COCODE_* variable is unset or empty (packages/shared/src/legacyIdentity.ts). CoCode still reads legacy t3.json project files, t3code:// links, and refs/t3code/ checkpoint refs (packages/shared/src/legacyNames.ts). Upstream imports are described in docs/cocode/upstream-sync.md.

About CoCode

CoCode is a GUI and host server for coding agents. The server runs on the machine that holds your repositories and provider CLIs. The desktop app, the web app, and the iOS app connect to that server.

Provider accounts and API keys stay on that host. Code and prompts go from the host to the configured provider. CoCode does not resell tokens. See the user guide.

The release feed at https://code.comonad.co.uk/releases/ answers only signed-in accounts on the allow list. The hosted web app shows only a sign-in form until an account signs in. A local checkout does not use that feed. See Install CoCode.

Surfaces

Surface Location What it is
Desktop apps/desktop Electron shell around apps/web. Release builds are macOS arm64 (.github/workflows/release-desktop.yml).
Web apps/web React and Vite UI at code.comonad.co.uk, and the same UI served locally by cocode.
iOS apps/mobile Expo and React Native client. Bundle id uk.co.comonad.cocode. TestFlight installs are documented in Install CoCode.
CLI apps/server The cocode command (@comonad/cocode on npm). Event-sourced Node server, provider sessions, and the /mcp HTTP server.
Connect relay infra/relay Cloudflare Worker and Supabase Postgres for CoCode Connect: account linking, managed tunnels, and mobile push.

apps/mobile also contains the Android project. The install guide covers the iOS app. See apps/mobile/README.md to build the client from source.

Features

  • Providers on the host: Codex, Claude Code, Cursor, Grok Build, Antigravity, OpenCode, Pi, Muse Code, fx, and ACP Registry or local ACP commands. Setup for each is in Install CoCode.
  • Threads and worktrees: Run a thread in the main checkout or in an isolated Git worktree, including multi-repo folders (threads, multi-repo projects).
  • Diffs and checkpoints: Per-turn diffs and hidden Git ref checkpoints (diffs).
  • Permission modes: Supervised, Auto-accept edits, Auto, and Full access (permission modes).
  • Source control: Forge adapters under packages/source-control-* and Linear and Jira under packages/issue-tracker-* (source control).
  • Preview browser and devices: A multi-tab preview browser (browser) and live simulators and devices (devices).
  • Remote access: CoCode Connect, LAN, Tailscale, and desktop SSH (remote access).
  • Shared Context: Account memories and Day dream across linked machines (shared context).
  • Outside agents: External MCP clients and cocode thread (outside agents).
  • Terminals, voice, and workflows: Host terminals (terminal), dictation (voice input), and durable workflows under Labs (workflows).

Get Started

Prerequisites

On Windows, clone with Git long-path support. The steps are in Development.

Run Locally

git clone https://github.com/comonadhq/cocode.git
cd cocode
vp i
vp run dev

Open the pairing URL printed by the dev runner. The bare origin does not authenticate a new browser.

vp run dev in a linked worktree stores state in that worktree's .cocode. A plain clone uses ~/.cocode/dev unless COCODE_HOME or --home-dir is set. Do not point a development server at ~/.cocode/userdata. Details are in Development.

vp run dev:desktop starts the Electron client. vp run dev:server and vp run dev:web start those processes on their own.

Verification

From a checkout, the fast check for the files you changed is:

vp run check:changed

While iterating, the commands in Development are vp test run <files>, vp lint <files>, and vp run --filter <package> typecheck. CI runs the full suites.

Local Ports

scripts/dev-runner.ts prefers these ports and prints the ones it bound on the [dev-runner] line. Occupied ports and worktree offsets move them.

Service Base port
Web (Vite) 5733
Server 13773

Architecture

The server is event-sourced. Clients send typed commands. The orchestrator decides events without I/O. One SQLite transaction commits the events, projections, receipt, and outbox. An effect worker then runs provider turns, checkpoints, and other side effects. See Architecture.

App Stack

  • TypeScript monorepo (pnpm@12.14.0 via vp, from packageManager in package.json)
  • Node.js 26.13.1
  • React and Vite (apps/web)
  • Electron (apps/desktop)
  • Expo and React Native (apps/mobile)
  • Effect (apps/server and packages/)
  • SQLite on the host (~/.cocode for an install)
  • Cloudflare Workers and Supabase Postgres (infra/relay)

Hosting

  • Vercel hosts the web app at code.comonad.co.uk. .github/workflows/release.yml also aliases latest.code.comonad.co.uk after a GitHub Release. See Release.
  • GitHub Releases publish the macOS arm64 desktop build and the CLI archives for macOS arm64, Linux x64, and Linux arm64.
  • npm publishes @comonad/cocode, a launcher that downloads the matching archive after sign-in.
  • Cloudflare runs the Connect relay Worker. Supabase holds its Postgres database and CoCode Connect identity. See infra/relay/README.md.
  • GitHub Actions runs CI and the release workflows.

https://code.comonad.co.uk/install.sh is the public bootstrap. It downloads a release only with an allow-listed access token (Install CoCode).

Repository Layout

Path Role
apps/server Node server, orchestrator, provider sessions, Git checkpoints, /mcp
apps/web React and Vite UI used by local hosting, the hosted app, and desktop
apps/desktop Electron shell, IPC, and the bundled server launcher
apps/mobile Expo client (uk.co.comonad.cocode)
infra/relay CoCode Connect Worker, migrations, and deploy scripts
packages/contracts Wire schemas and permission scopes
packages/shared Shared runtime utilities
packages/client-runtime Client state and sync used by web and mobile
packages/provider-* Provider core and adapters (acp, acp-registry, cursor, fx, grok, muse, opencode, pi, testing)
packages/effect-acp, packages/effect-codex-app-server ACP and Codex protocol clients
packages/source-control-* Forge adapters
packages/issue-tracker-* Linear and Jira
packages/secret-provider-* Secret backends, including 1Password
packages/ssh, packages/tailscale SSH and Tailscale helpers
native/ apple-speech, browser-secret, libghostty-vt, resource-monitor, hyprland-snap-shot, kde-snap-shot
evals/ Model-behavior evals (evals/README.md)
docs/ User guides, internals, operations, and ADRs

Documentation

Need Read
Install, CLI, and day-to-day use docs/user/README.md
Local development docs/operations/development.md
Releases docs/operations/release.md
Architecture docs/internals/overview.md
Architecture decision records docs/adr/README.md
Contributing CONTRIBUTING.md
Working in this repository AGENTS.md
Upstream sync docs/cocode/upstream-sync.md

GitHub issues on comonadhq/cocode are the tracker for maintainer work. See docs/agents/issue-tracker.md.

Licence

CoCode is licensed under the MIT License.

Copyright (c) 2026 T3 Tools Inc. Copyright (c) 2026 Comonad

The MIT License permits use, modification, and distribution, including commercial use, when the copyright and permission notices in LICENSE stay with the software.

About

CoCode: personal fork of T3 Code

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages