[T3-OMB] P1: Package T3 server as a NixOS service (t3code-flake module) #19

Open
opened 2026-11-01 21:07:42 +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

T3 must run headless and reproducibly on orchestra + braiinschestra (T3 replaces Orca there). donach/t3code-flake already packages upstream release binaries with the t3 headless CLI (t3 serve).

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

  • In donach/t3code-flake (follow-up PR there, tracked here): add nixosModules.t3-server with options: package, port, bindAddress (default loopback/tailscale0), stateDir, user/group, environmentFile (secrets), extra args.
  • systemd unit with hardening (DynamicUser or dedicated user, ProtectSystem, ReadWritePaths for state + worktrees).
  • Engines (OpenCode/Claude/Codex CLIs) available on PATH via module option.
  • Document how OMB's own flake.nix/nix/ consumes it if OMB co-hosts (optional).

Out of scope

  • Deploying to orchestra/braiinschestra (see #20).
  • Upstream T3 changes.

Acceptance criteria

  • Module builds with nix flake check in t3code-flake.
  • VM test (nixosTest) starts t3 serve, health endpoint responds on configured bind.
  • No secrets in the Nix store; secrets come via environmentFile.
  • README in t3code-flake documents the module; this issue links the PR.

Suggested approach

Mirror the existing OMB NixOS module style (nix/ in this repo, PR #12).

Dependencies

Test plan

  • nix flake check; nixosTest boot + curl health.

Handoff for Claude

PR goes to donach/t3code-flake; link it back here and close this issue when merged.

  • 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 T3 must run headless and reproducibly on orchestra + braiinschestra (T3 replaces Orca there). `donach/t3code-flake` already packages upstream release binaries with the `t3` headless CLI (`t3 serve`). 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 - In `donach/t3code-flake` (follow-up PR there, tracked here): add `nixosModules.t3-server` with options: package, port, bindAddress (default loopback/tailscale0), stateDir, user/group, environmentFile (secrets), extra args. - systemd unit with hardening (DynamicUser or dedicated user, ProtectSystem, ReadWritePaths for state + worktrees). - Engines (OpenCode/Claude/Codex CLIs) available on PATH via module option. - Document how OMB's own `flake.nix`/`nix/` consumes it if OMB co-hosts (optional). ## Out of scope - Deploying to orchestra/braiinschestra (see #20). - Upstream T3 changes. ## Acceptance criteria - [ ] Module builds with `nix flake check` in t3code-flake. - [ ] VM test (nixosTest) starts `t3 serve`, health endpoint responds on configured bind. - [ ] No secrets in the Nix store; secrets come via environmentFile. - [ ] README in t3code-flake documents the module; this issue links the PR. ## Suggested approach Mirror the existing OMB NixOS module style (`nix/` in this repo, PR #12). ## Dependencies - #16 ## Test plan - `nix flake check`; nixosTest boot + curl health. ## Handoff for Claude PR goes to `donach/t3code-flake`; link it back here and close this issue when merged. - 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#19
No description provided.