From e4d8ed91afd02258486bceb4453988887c5cf964 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sun, 1 Mar 2026 19:27:33 -0800 Subject: [PATCH] Document required checks and clarify package roles - Add `bun lint` and `bun typecheck` as required done criteria - Expand package role descriptions, including `apps/desktop` - Update contracts note to `effect/Schema` terminology --- AGENTS.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f2149dc026..adab792dc1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,11 +14,19 @@ This repository is a VERY EARLY WIP. Proposing sweeping changes that improve lon If a tradeoff is required, choose correctness and robustness over short-term convenience. +## Required Commands + +- `bun lint` +- `bun typecheck` + +Both of these commands should pass for a task to be considered "done". + ## Package Roles -- `apps/server`: Node.js WebSocket server. Wraps Codex app-server (JSON-RPC over stdio), serves the React web app, and manages provider sessions. +- `apps/desktop`: Electron desktop app. Wraps the Node.js WebSocket server and React web app. +- `apps/server`: Node.js orchestration runtime and WebSocket edge. Implements the orchestrator `<->` provider adapter pattern, brokering turns/events between provider runtimes and clients while serving the React web app. Currently supported providers are Codex (through the Codex app-server). - `apps/web`: React/Vite UI. Owns session UX, conversation/event rendering, and client-side state. Connects to the server via WebSocket. -- `packages/contracts`: Shared Zod schemas and TypeScript contracts for provider events, WebSocket protocol, and model/session types. +- `packages/contracts`: Shared `effect/Schema` schemas and TypeScript contracts for provider events, WebSocket protocol, and model/session types. ## Codex App Server (Important)