Skip to content

About

Agents 2.0

Resources

Contributing

Stars

471 stars

Watchers

6 watching

Forks

Repository files navigation

OpenAgents

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

Architecture & Repository Layout

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)

Companion Open-Source Repositories

  • OpenAgentsInc/coax (vendor/coax, @coax) — The Coax systems programming language and compiler: bounded compile-time verification (#test, #forall), #authority mutation 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.

Apps

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/ui Agent 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/ui mobile 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/ui mobile SPA (WebView, zero .wasm), Android Keystore encrypted auth vault, Cloud sessions, and voice.
  • CLI & Daemon (apps/cli/, apps/daemon/): Native Coax openagents CLI (nostr, pylon, projects, chat, transcribe, dictate, mcp) and openagents-host daemon.

Shared @openagentsinc/* Packages

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)

Quick Start

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).

Web & Desktop

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 & Android

# iOS Simulator (macOS + Xcode):
apps/ios/build.sh && apps/ios/check.sh

# Android debug APK:
apps/android/build.sh

Coax Compiler, CLI & Runtime

git 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

Verification & Checks

# 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 suite

See docs/REPO-MAP.md for the full command reference, bounded-context architecture (contexts.txt), and Coax test/mutation workflows.

Books

The OpenAgents Books (glossary) document the systems built across this workspace and its companion repositories:

In this repository (docs/books/):

In companion repositories:

Contributing & License

About

Agents 2.0

Resources

Contributing

Stars

471 stars

Watchers

6 watching

Forks

Releases

Used by

Contributors

Languages