[T3-OMB] P0: Inventory T3 Code server control surface (RPC, orchestrator MCP, HTTP, auth) #16

Open
opened 2026-11-01 21:07:40 +01:00 by Grok · 0 comments
Contributor

Plan correction (2026-11-01, phone shell): The phone shell is T3 Code mobile (kept as-is, user likes it), extended with an OMB personas chat — NOT a native OMB/MausBot companion app as primary. P0 research gate #17 decides how (A upstream plugin on mobile / B first-party or fork Personas tab / C MausBot companion = fallback only). #26 ships OMB personas inside T3 mobile after #17 decides; #27 = same surface on T3 desktop/web. Still holds: T3 replaces Orca; Mattermost off critical path. Where text below says "phone OMB voice-first app", read "OMB personas chat inside T3 mobile". Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be

Plan correction (UX + min surface, 2026-11-01): Phone = OpenMausBot, voice-first, to manage projects/agents; desktop = T3 Code as the primary session UI. Goal: unify Hermes-like simple chat with direct access to the same T3 work (fixes the Hermes clunk of chatting with no access to real work). Minimum services: OMB + T3 + Forgejo + Tailscale; Mattermost and similar are off the critical path (tokens may stay parked). T3 still replaces Orca on orchestra/braiinschestra. #26 = phone voice-first OMB path (product); #27 = optional T3 omb-chat plugin (secondary). See the revised spec Page and milestone 18.

Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be · Milestone: https://git.bitp.cz/donach/openmausbot/milestone/18

Context

OMB must drive T3 sessions programmatically. Upstream T3 exposes a WebSocket RPC (packages/contracts/src/rpc.ts), orchestration contracts (orchestrationV2.ts, orchestrationProject.ts, orchestrationDispatch.ts), an Orchestrator MCP (orchestratorMcp.ts: delegate task, task status, cancel, create threads), threadPullRequest.ts, checkpointDiff.ts, remoteAccess.ts, auth.ts, plus a plugin host (@t3tools/plugin-api, plugins.list/invoke/subscribe; follow-ups open upstream, e.g. plugin tools through MCP, right-panel plugin views).

Architecture (normative): Persona plane = OMB (Grok Bot–style persona chats, routines, forgejo-mcp, approvals/widgets; primary user surface = OMB mobile, voice-first; Mattermost-class chat is optional/off critical path). Session plane = T3 Code (projects, worktrees, coding threads, diffs, commit/PR) running as the primary agent runtime on hosts orchestra and braiinschestra — T3 replaces Orca as the main runtime driving agents (Orca WSS / orca CLI is not the agent path after cutover). Engine plane = CLIs under T3 (OpenCode/Claude/Codex/…). OMB controls T3 over T3's own API/RPC/MCP; the user opens the same sessions directly in the T3 desktop UI (primary on desktop). OMB bots are never registered as T3 provider drivers.

Scope

  • Produce docs/t3-omb/t3-surface.md listing, for the pinned T3 release used by donach/t3code-flake: transport, endpoint, auth mechanism, and the exact methods for: list environments/projects, create/open project (incl. Forgejo clone), create thread, send prompt/turn, interrupt/cancel, get thread status + events, get diff/checkpoint, create commit/PR, list providers.
  • Classify each method: stable contract vs internal; read vs mutating vs destructive.
  • Determine whether the Orchestrator MCP can be reached by an external MCP client (OMB server/mcp-registry.ts) or only by agents inside T3.
  • Document auth options: pairing/device token, session cookie, service token, Tailscale identity; and what a headless t3 serve accepts.

Out of scope

  • Writing the client (see #21).

Acceptance criteria

  • t3-surface.md merged with a method table (name, transport, auth, input, output, side-effect class).
  • Pinned T3 version + commit SHA recorded.
  • Recommendation: primary integration surface (RPC vs Orchestrator MCP vs plugin RPC) with rationale.
  • List of gaps that would need an upstream T3 PR or a T3 plugin (tracked as follow-ups, not done here).

Suggested approach

Read upstream source at the pinned tag; run t3 serve locally (via nix run on donach/t3code-flake#t3) and capture real RPC traffic from the web UI with devtools to confirm method names.

Dependencies

  • None

Test plan

  • Attach a captured, redacted RPC transcript for create-thread → prompt → status → diff.

Handoff for Claude

Never paste tokens or cookies into the doc; redact. Prefer stable contracts in packages/contracts.

  • Do not register OMB bots as T3 providers. Do not expose harness :8799 publicly. No secrets in commits, logs, or PR text.
  • Open PRs against main with label t3-omb, reference this issue (Closes #N), and tick acceptance criteria in the PR description for dual review.
> **Plan correction (2026-11-01, phone shell):** The phone shell is **T3 Code mobile** (kept as-is, user likes it), **extended with an OMB personas chat** — NOT a native OMB/MausBot companion app as primary. P0 research gate **#17** decides how (A upstream plugin on mobile / B first-party or fork Personas tab / C MausBot companion = fallback only). **#26** ships OMB personas inside T3 mobile after #17 decides; **#27** = same surface on T3 desktop/web. Still holds: **T3 replaces Orca**; **Mattermost off critical path**. Where text below says "phone OMB voice-first app", read "OMB personas chat inside T3 mobile". Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be > **Plan correction (UX + min surface, 2026-11-01):** **Phone** = OpenMausBot, voice-first, to manage projects/agents; **desktop** = T3 Code as the primary session UI. Goal: unify Hermes-like simple chat with **direct** access to the same T3 work (fixes the Hermes clunk of chatting with no access to real work). **Minimum services:** OMB + T3 + Forgejo + Tailscale; Mattermost and similar are **off the critical path** (tokens may stay parked). T3 still **replaces Orca** on orchestra/braiinschestra. #26 = phone voice-first OMB path (product); #27 = optional T3 `omb-chat` plugin (secondary). See the [revised spec Page](https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be) and [milestone 18](https://git.bitp.cz/donach/openmausbot/milestone/18). > Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be · Milestone: https://git.bitp.cz/donach/openmausbot/milestone/18 ## Context OMB must drive T3 sessions programmatically. Upstream T3 exposes a WebSocket RPC (`packages/contracts/src/rpc.ts`), orchestration contracts (`orchestrationV2.ts`, `orchestrationProject.ts`, `orchestrationDispatch.ts`), an **Orchestrator MCP** (`orchestratorMcp.ts`: delegate task, task status, cancel, create threads), `threadPullRequest.ts`, `checkpointDiff.ts`, `remoteAccess.ts`, `auth.ts`, plus a plugin host (`@t3tools/plugin-api`, `plugins.list/invoke/subscribe`; follow-ups open upstream, e.g. plugin tools through MCP, right-panel plugin views). Architecture (normative): **Persona plane = OMB** (Grok Bot–style persona chats, routines, forgejo-mcp, approvals/widgets; primary user surface = OMB mobile, voice-first; Mattermost-class chat is optional/off critical path). **Session plane = T3 Code** (projects, worktrees, coding threads, diffs, commit/PR) running as the **primary agent runtime** on hosts **orchestra** and **braiinschestra** — T3 **replaces Orca** as the main runtime driving agents (Orca WSS / `orca` CLI is not the agent path after cutover). **Engine plane** = CLIs under T3 (OpenCode/Claude/Codex/…). OMB controls T3 over T3's own API/RPC/MCP; the user opens the same sessions directly in the T3 desktop UI (primary on desktop). OMB bots are **never** registered as T3 provider drivers. ## Scope - Produce `docs/t3-omb/t3-surface.md` listing, for the pinned T3 release used by `donach/t3code-flake`: transport, endpoint, auth mechanism, and the exact methods for: list environments/projects, create/open project (incl. Forgejo clone), create thread, send prompt/turn, interrupt/cancel, get thread status + events, get diff/checkpoint, create commit/PR, list providers. - Classify each method: stable contract vs internal; read vs mutating vs destructive. - Determine whether the Orchestrator MCP can be reached by an external MCP client (OMB `server/mcp-registry.ts`) or only by agents inside T3. - Document auth options: pairing/device token, session cookie, service token, Tailscale identity; and what a headless `t3 serve` accepts. ## Out of scope - Writing the client (see #21). ## Acceptance criteria - [ ] `t3-surface.md` merged with a method table (name, transport, auth, input, output, side-effect class). - [ ] Pinned T3 version + commit SHA recorded. - [ ] Recommendation: primary integration surface (RPC vs Orchestrator MCP vs plugin RPC) with rationale. - [ ] List of gaps that would need an upstream T3 PR or a T3 plugin (tracked as follow-ups, not done here). ## Suggested approach Read upstream source at the pinned tag; run `t3 serve` locally (via `nix run` on `donach/t3code-flake#t3`) and capture real RPC traffic from the web UI with devtools to confirm method names. ## Dependencies - None ## Test plan - Attach a captured, redacted RPC transcript for create-thread → prompt → status → diff. ## Handoff for Claude Never paste tokens or cookies into the doc; redact. Prefer stable contracts in `packages/contracts`. - Do not register OMB bots as T3 providers. Do not expose harness :8799 publicly. No secrets in commits, logs, or PR text. - Open PRs against `main` with label `t3-omb`, reference this issue (`Closes #N`), and tick acceptance criteria in the PR description for dual review.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot#16
No description provided.