Skip to content

Concepts

root edited this page Dec 4, 2026 · 4 revisions

Core Concepts

🌐 English · 简体中文

This page introduces Trizano's mental model in two layers—five terms you need on day one, followed by advanced concepts you will encounter when adding remote hosts, coordinating multiple agents, or setting up failover—and ends with an end-to-end walkthrough.

Hub connecting multiple machines and a mobile client

Think of Trizano as a studio with a front desk and several on-site crews:

  • Your browser, desktop app, and Android phone are radios;
  • The Hub is the front desk that authenticates you and routes messages;
  • Each Node is an on-site manager running on a laptop, workstation, or server;
  • Each Workspace is a job site (a project directory on that machine);
  • Each Session is an active conversation taking place at a job site.

Clients only ever talk to the Hub—they never connect directly to worker machines. All actual execution (spawning agent CLIs, editing files, opening terminals) happens inside each machine's Node.


Five Terms for Day One

Here is where each concept shows up in the interface:

Core concepts mapped to the main UI

1. Hub (trizano-carbon)

The Hub is the single control-plane process that serves clients. By default it binds only to loopback (127.0.0.1:47900), leaving external HTTPS to Tailscale Serve, Cloudflare Tunnel, or Caddy.

The Hub handles device authentication, serves the web UI, manages Node connections, and fans out real-time events to every connected client. The Hub never runs coding agents itself. Even if the Hub runs on a tiny VPS—or restarts—active agent processes continue running uninterrupted on their Nodes.

2. Node (trizano-h3)

A Node is the background daemon running on each machine that does actual work (listed as a machine in the sidebar).

It launches agent CLIs (Claude Code, Codex, Antigravity, OpenCode, GitHub Copilot), manages terminals, reads and writes files, inspects Git status, scans local dev-server ports, and persists conversation history in a local SQLite database. A Node opens no listening network ports; it communicates strictly through a permission-restricted local Unix socket.

3. Workspace

A Workspace is a project directory on a Node (for example /srv/backend or ~/trizano), shown nested under its machine in the sidebar. A single Node can register many Workspaces; file trees, diffs, review baselines, and default terminal working directories all scope to the active Workspace.

4. Session and Turn

  • Session: A persistent thread between you and an agent (or a Discussion Room) inside a specific Node and Workspace. Each Session tracks its title, agent, model, full event timeline, and optional dedicated Git Worktree branch so two Sessions can edit the same repository concurrently without colliding.
  • Turn: One complete round trip—your prompt, the agent's reasoning and tool calls, and its final reply. Completed historical Turns collapse into a single summary line (「已工作 …」) plus the final answer to keep long threads readable. Fork and Rewind both anchor to specific Turn numbers.

5. Approval

An Approval is the pause point where an agent asks permission before running a risky action such as executing a shell command, modifying a file, or calling an external tool. You can choose Allow once (「允许一次」), Always allow (「始终允许」), or Deny (「拒绝」). Responding from any client—phone, desktop, or browser—clears the pending prompt everywhere in real time.


Beyond the Basics

Once you are comfortable with single-machine use and start adding hosts, delegating work across machines, or running redundant Hubs, you will encounter these concepts:

Outbound Hub-connected nodes vs. Reverse Nodes behind NAT

Reverse Node

Nodes connect to the Hub in one of two directions:

  • Local / SSH / WSL / Windows Nodes: The Hub initiates the connection—directly over a local socket for the local host, or via system OpenSSH (auto-uploading and starting trizano-h3) for remote hosts.
  • Reverse Nodes: For machines behind corporate firewalls or home NAT where the Hub cannot reach them over SSH, you register the host with trizano-h3 join and run trizano-h3 serve. The Node opens an outbound connection to the Hub—no public IP and no SSH keys on the Hub required. See Deployment.

Delegation and Subagent Sessions

When a task is too broad for one context—or needs a tool or environment on a different machine—an agent can delegate a subtask to another agent on the same Node or any other online Node. This creates a Subagent session. The Node automatically provides orchestration tools and instructions to the agent, and when the Subagent session finishes, its result is delivered back to the parent Session. See Multi-Agent Orchestration.

Discussion Room

A Discussion Room is a multi-agent Session: instead of a one-on-one chat, you bring several agents (for example Claude Code, Codex, and Antigravity with distinct roles) into a shared thread. They follow built-in or custom workflows to take turns, critique proposals, vote, and synthesize a conclusion. You can interject at any time or send /summarize to wrap up early. See Discussion Rooms.

Entry and Roster

  • Entry: A Hub instance that clients connect to. In a single-Hub deployment, "Hub" and "Entry" are the same thing. If you run two Hubs for active/standby redundancy—say one on mac-mini at home and one on vps-1 in the cloud—each is an Entry. If your home power or internet drops, desktop and Android clients automatically fail over to the cloud Entry.
  • Roster: A cryptographically signed directory shared across Entries that records every authorized client device, Node, and Entry. Approving a new phone or revoking a lost device on one Entry updates the Roster and propagates across all Entries and Nodes automatically. See Multi-Entry & Failover.

Builds and Auto-Update

Every Node reports its trizano-h3 version and build fingerprint (first 12 characters of its SHA-256) when connecting. Whenever the Hub carries a newer Node binary, it automatically upgrades the Node as soon as no Turns are actively running—keeping Hub and Node protocols aligned without manual SSH maintenance. See Node Internals.


Putting It Together: Driving Two Machines from a Phone

Here is how those pieces work together in practice:

You are away from your desk and notice an intermittent 500 error in a production backend endpoint, and you also want to verify a script's compatibility on macOS.

  1. Connect from your phone: You open the Trizano Android app, unlock with your fingerprint, and connect to the Hub (Entry) running on mac-mini at home.
  2. Assign work to a cloud Node: In the backend Workspace on the vps-1 Node, you create a Session with Claude Code and send Turn 1: "Investigate the intermittent 500 on the login endpoint; after fixing it, have Codex on mac-mini run the compatibility script to verify."
  3. Local fix and cross-node Delegation: The vps-1 Node runs Claude Code, which reads logs, locates the bug, and patches the code. Claude Code then uses the Node's built-in orchestration tool to delegate verification through the Hub to mac-mini (connected as a Reverse Node), spawning a Subagent session running Codex in the matching Workspace.
  4. Approve from the lock screen: Before running the test script, Codex on mac-mini requests an Approval. Even with your phone locked in your pocket, the Android foreground service keeps the event stream alive and raises a notification. You unlock and tap Allow directly from the notification shade.
  5. Result returned: Codex runs the script, confirms it passes, and reports back to the parent Session on vps-1. Claude Code summarizes the fix and verification result and finishes the Turn. Your phone notifies you that the Turn is done, and you inspect the diff—all without opening a laptop.

Next Steps

  • Already installed and ready to learn the daily features: read Daily Use.
  • Ready to deploy an always-on Hub and add remote hosts: read Deployment.
  • Want the low-level protocol and topology details: see Architecture and Network Topology.

Clone this wiki locally