You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+2-16Lines changed: 2 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,22 +29,8 @@ Long term maintainability is a core priority. If you add new functionality, firs
29
29
-`apps/server`: Node.js WebSocket server. Wraps Codex app-server (JSON-RPC over stdio), serves the React web app, and manages provider sessions.
30
30
-`apps/web`: React/Vite UI. Owns session UX, conversation/event rendering, and client-side state. Connects to the server via WebSocket.
31
31
-`packages/contracts`: Shared effect/Schema schemas and TypeScript contracts for provider events, WebSocket protocol, and model/session types. Keep this package schema-only — no runtime logic.
32
-
-`packages/shared`: Shared runtime utilities consumed by both server and web. Uses explicit subpath exports (e.g. `@t3tools/shared/git`) — no barrel index.
33
-
34
-
## Codex App Server (Important)
35
-
36
-
T3 Code is currently Codex-first. The server starts `codex app-server` (JSON-RPC over stdio) per provider session, then streams structured events to the browser through WebSocket push messages.
37
-
38
-
How we use it in this codebase:
39
-
40
-
- Session startup/resume and turn lifecycle are brokered in `apps/server/src/codexAppServerManager.ts`.
41
-
- Provider dispatch and thread event logging are coordinated in `apps/server/src/providerManager.ts`.
42
-
- WebSocket server routes NativeApi methods in `apps/server/src/wsServer.ts`.
43
-
- Web app consumes orchestration domain events via WebSocket push on channel `orchestration.domainEvent` (provider runtime activity is projected into orchestration events server-side).
44
-
45
-
Docs:
46
-
47
-
- Codex App Server docs: https://developers.openai.com/codex/sdk/#app-server
32
+
-`packages/shared`: Shared runtime utilities consumed by both server and client applications. Uses explicit subpath exports (e.g. `@t3tools/shared/git`) — no barrel index.
33
+
-`packages/client-runtime`: Shared runtime package for sharing client code across web and mobile.
0 commit comments