OpenAgents builds open coding agents, apps, and protocols that people can own, inspect, self-host, and extend across macOS, Linux, Windows, Web, iOS, Android, and the CLI.
openagents.com · iOS TestFlight · Coax · Psionic · Books · Contributing
This repository is organized into 8 top-level directories combining a unified Apache-2.0 TypeScript / Effect v4 / @effect/ui pnpm workspace (apps/ + packages/) with deterministic Coax runtime, CLI, and protocol libraries (runtime/ + protocols/):
| Directory | Purpose |
|---|---|
apps/ |
Shipped product apps: Desktop (Electron), Web & Control Plane, iOS, Android, CLI, and apps/daemon/ (openagents-host) |
packages/ |
Shared Apache-2.0 Effect v4 workspace packages under @openagentsinc/* |
runtime/ |
OpenAgents product Coax libraries (agent/, dictation/, inky/, microcoder/, workos/, cloud/, local/, project/, repo/, boat/, access/, convex-sync/, gateway/, and #authority money/policy rules in runtime/pay/) |
protocols/ |
Bitcoin, Nostr (pinned NIPs, relay, examples, harnesses), and Protocol schemas & wire registry |
docs/ |
Architecture (bounded contexts), OpenAgents Protocol Spec, cross-cutting invariants, repository map & command reference, and repository books |
evals/ |
Automated evaluation suites (session-history/ ATIF-v1.8 friction pipeline, terminal-bench/, subagent-bench/, paper-lab/) |
scripts/ |
Repo entrypoints (check.sh, check-books.sh, proto.sh, bump-vendor.sh, join-pylon.sh, NIP sync) |
vendor/ |
Pinned open-source git submodules resolved via coax.toml (@coax → OpenAgentsInc/coax, @psionic → OpenAgentsInc/psionic) |
- OpenAgentsInc/coax (
vendor/coax,@coax) — The Coax systems programming language and compiler: bounded compile-time verification (#test,#forall),#authoritymutation checking, and C11 / Wasm / Metal / CUDA / WGSL backends. - OpenAgentsInc/psionic (
vendor/psionic,@psionic) — Pure-Coax machine-learning inference and training engine for Metal, CUDA, and CPU.
All graphical product surfaces share one Effect v4 / @effect/ui frontend (apps/web/ + packages/@openagentsinc/*):
- Desktop (
apps/desktop/): Cross-platform Electron app (electron-vite,electron-builder) embedding@openagentsinc/agent(@opencode/sdk/effect),@openagentsinc/ui, WorkOS auth, and Convex sync across macOS, Linux, and Windows. - Web & Control Plane (
apps/web/): Self-hostable@effect/uiAgent Development Environment (ADE), mobile WebView SPA (pnpm build:mobile), Effect MCP 2026 server, Confect/Convex control plane, and open sandbox runtime (Dockerfile.sandbox). - iOS (
apps/ios/): Thin native SwiftUI shell hosting the bundled@effect/uimobile SPA (WKWebView, zero.wasm), native auth/Keychain vault, voice dictation, and headless Coax policy bridge (ios-app.coax). Available on TestFlight. - Android (
apps/android/): Native Kotlin shell hosting the same bundled@effect/uimobile SPA (WebView, zero.wasm), Android Keystore encrypted auth vault, Cloud sessions, and voice. - CLI & Daemon (
apps/cli/,apps/daemon/): Native CoaxopenagentsCLI (nostr,pylon,projects,chat,transcribe,dictate,mcp) andopenagents-hostdaemon.
| Package | Path | Description |
|---|---|---|
@openagentsinc/shared |
packages/shared/ |
Shared schemas, provider catalogs, and turn decision router |
@openagentsinc/ui |
packages/ui/ |
OpenAgents Design System & @effect/ui agent components and themes |
@openagentsinc/agent |
packages/agent/ |
@opencode/sdk/effect embedded coding-agent engine and provider plugins |
@openagentsinc/voice |
packages/voice/ |
Real-time cloud voice client, Gemini Live WebSocket protocol, and PCM16/WebAudio engine |
@openagentsinc/effect-acp |
packages/effect-acp/ |
Pure Effect v4 Agent Client Protocol (ACP) v1 & v2 SDK (Stdio / HTTP / WebSocket) |
@openagentsinc/effect-3d |
packages/effect-3d/ |
Declarative Effect v4 3D engine (WebGPU / Canvas & headless) |
Prerequisites: Node >= 24 and pnpm 12.14.0 (for Web, Desktop, and shared packages); Xcode on macOS (for iOS); Android SDK / Gradle (for Android); and a C/C++ compiler + submodules initialized (for Coax CLI/runtime targets).
pnpm install
# Self-hosted web app & control plane (http://127.0.0.1:5173):
pnpm dev:web
# OpenAgents Desktop with Vite HMR:
pnpm dev:desktop
# Build and launch packaged OpenAgents Desktop:
apps/desktop/build.sh --open# iOS Simulator (macOS + Xcode):
apps/ios/build.sh && apps/ios/check.sh
# Android debug APK:
apps/android/build.shgit submodule update --init vendor/coax vendor/psionic
vendor/coax/coax/build.sh # installs published compiler (or COAX_MUTATION=0 to bootstrap)
apps/cli/build.sh # writes apps/cli/build/openagents# TypeScript / Effect packages, Web & Desktop:
pnpm check # check:packages + web check + desktop typecheck
pnpm test:packages # @openagentsinc/{ui,effect-acp,effect-3d,voice} tests
pnpm --dir apps/desktop test # Electron desktop unit tests
pnpm --dir apps/web verify # full web gate (ui, arch, boundary, bridges, tests, web/mobile builds)
# Coax protocols, books & contributor check:
scripts/proto.sh check # validate protobuf schemas & descriptors
scripts/check-books.sh --check # validate repository books & route metadata
scripts/check.sh # outside-contributor local check suiteSee docs/REPO-MAP.md for the full command reference, bounded-context architecture (contexts.txt), and Coax test/mutation workflows.
The OpenAgents Books (glossary) document the systems built across this workspace and its companion repositories:
In this repository (docs/books/):
- Coder: Coding Agents From Scratch (GitBook) — coding agents, harnesses, and verification loops.
- Bitcoin From Scratch (GitBook) — Bitcoin and Lightning in Coax, from SHA-256 and secp256k1 to transactions, Taproot, wallets, and channels.
- Nostr From Scratch (GitBook) — Nostr event model, clients, relays, and NIPs in Coax.
- Reverse Engineering Claude Code — bottom-up reverse-engineering reference of a production TypeScript coding-agent harness.
In companion repositories:
- Contributors: See CONTRIBUTING.md and run
scripts/check.shbefore opening a pull request. - Agents working in this repo: Start with AGENTS.md, INVARIANTS.md, and docs/REPO-MAP.md.
- License: Apache-2.0 — see LICENSE.