Written for the people on WURK who use AI to earn: freelancers, builders and anyone who sells work made with models.
If coding agents are how you earn, orchestrating them well is the difference between leverage and chaos. Tessera is an open-source control room that runs Claude Code, Codex and OpenCode side by side, each task on its own git worktree, with a Kanban board and a CLI that lets a lead agent run the whole workspace. I read its source instead of running it, the same way I reviewed PolyStrata. Every claim below comes from the repository, and I say so where I interpret.
Referral disclosure: the Z.ai Coding Plan link in this article is my referral link (code R0K78RJKNW), and I get credit if you sign up. Z.ai's own terms: 10% off a first paid order for eligible new accounts. Renewals, upgrades and follow-up orders are not eligible. https://z.ai/subscribe?ic=R0K78RJKNW
One workspace instead of a pile of terminals
Anyone who runs coding agents seriously ends up with the same mess: four terminals, three branches, two agents editing the same files, and no idea which session asked for a confirmation twenty minutes ago. Tessera, from horang-labs, is an open-source attempt at a control room for that mess. It is a local web and desktop workspace that runs Claude Code, Codex and OpenCode sessions side by side, gives each task its own git worktree, tracks the work on a Kanban board, and lets a lead agent drive the whole workspace through a command-line interface [1][2]. This review is a source reading, in the same spirit as my PolyStrata article: I did not install or run Tessera. Every claim below comes from the repository at commit level on the dev branch, and where I interpret or evaluate, I say so. The project is young, version 0.2.4-hotfix.1, with 324 stars, 17 open pull requests, and commits authored by a small Korean team, some of them co-authored with Claude [1]. The license is AGPL-3.0, which I verified in the LICENSE file itself [3].
What the README promises
The pitch is: run more agents, lose less context. The feature list reads like a map of where multi-agent work actually hurts. Sessions run in PTY mode or in a richer GUI mode. Each task can get an isolated git worktree so parallel agents never share a checkout. A Kanban board tracks chats and worktree tasks across Chat, Todo, Doing, Review and Done, with live agent and diff state on the cards. Files, diffs, commits, branch publishing and pull requests happen inside the app. A mobile client pairs over QR code and can continue sessions, including switching a PTY into a readable chat view. And a slash command, /tessera-cli, lets an agent inside a managed session orchestrate the workspace itself: create worktrees, launch sessions, wait for them, read their output and send follow-ups [2]. Everything runs locally against the provider CLIs already installed and authenticated on your machine; Tessera stores its data under ~/.tessera and does not host your conversations [2]. That is a strong, opinionated scope. The question for the rest of this article is whether the code behind it is equally opinionated, or whether the README is doing the heavy lifting.
The stack, read from package.json
The dependency list tells you the shape of the product before you open a single source file [10]. The app is Next.js behind a custom Node.js server that also owns WebSocket transport, database initialization, provider bootstrapping and background pollers. State lives in better-sqlite3, a local embedded database. Terminals are node-pty on the server and xterm.js with the WebGL addon in the browser, with monaco-editor and shiki for code. The Electron shell reuses the same server as a child process. Local accounts use bcryptjs password hashing and JSON Web Tokens. Mobile pairing uses qrcode. The interface is internationalized with i18next. Two entries deserve a second look. quickjs-emscripten, a sandboxed JavaScript engine, ships as a dependency, which suggests untrusted script execution somewhere in the skill system; I did not trace its full path and say so openly. And the patch files under patches/ plus a prepare script for the better-sqlite3 runtime show the team ships fixes on top of upstream packages rather than waiting for releases [1]. None of this is exotic. It is a pragmatic, boring-in-a-good-way stack for a local-first tool, and every piece of it is a mainstream, maintained library.
Worktree isolation with no inference
Parallel agents only work if they cannot step on each other, and Tessera's answer is git worktrees, one per task. The worktree creator supports two modes, and the difference matters [4]. branch-off creates a new branch from a start point you name. checkout-branch checks out an existing branch into a separate worktree. What I like, reading the control layer, is what is not there: no inference. The CLI contract requires an explicit new branch name and an explicit start point, and the skill documentation repeats the rule in bold strokes: never infer either value from the current shell, project defaults or UI state [7]. Every resource comes back as an opaque ID that you must use verbatim afterwards. If preparation fails, the CLI preserves the returned resource information and stops the recipe instead of guessing a recovery [7]. This is the correct posture for a tool whose users are themselves agents. Deterministic identifiers in, deterministic identifiers out, and failure is data, not an invitation to improvise.
The control API: a real product surface, not a hack
The /tessera-cli slash command is backed by a versioned local HTTP control API under /__tessera/control/v1, and the CLI in bin/control-cli.mjs is a thin, careful client over it [4]. Authentication is a 32-byte bearer token, base64url-encoded, read from a runtime descriptor file that the server injects into managed sessions through the environment. The CLI passes the caller's project, session and worktree identity as explicit headers, so the server always knows who is asking [4]. The command surface covers the whole workspace lifecycle, summarized in the table below, and every command returns a structured envelope with data or a typed error, for example WAIT_TIMEOUT with HTTP 408 when a session does not reach the requested state in time [4]. Two design choices stand out. The CLI is version-matched to the server through the injected TESSERA_CLI_COMMAND path, so an agent never runs a stale client against a newer server. And the skill file forbids agents from searching for descriptors, endpoints, ports or credentials: the runtime hands you exactly one way in, and poking around for another is explicitly out of bounds [7].
| Family | Commands | Purpose |
|---|---|---|
| Inspect | status · project list/show · worktree list/show · session list/show/search | Read-only views of workspace state |
| Worktrees | worktree create --mode branch-off | checkout-branch -b [] |
| Sessions | session create · start · launch | Prepare and start a provider session bound to a worktree |
| Drive | session prompt · send-keys · open · rename | Send follow-ups and named keys only (enter, escape, ctrl-c, arrows) |
| Wait and read | session wait --for running | turn-complete |
| Clean up | session stop · archive · delete | End sessions and remove resources by exact ID |
Tessera control CLI usage, from bin/control-cli.mjs on GitHub [4].
Watching agents without watching their screens
Here is the part I would have gotten wrong if I had guessed. I assumed Tessera tracks agent state the way most terminal multiplexers do: parse the screen, match patterns, hope. It does not. It uses each provider's own hook system [5]. When Tessera starts a Claude Code PTY, it passes a per-invocation --settings JSON that registers lifecycle hooks: SessionStart, UserPromptSubmit, Stop, StopFailure, SubagentStart, SubagentStop, TeammateIdle, PreToolUse and PostToolUse with their failure variants, and PermissionRequest. The comment in claude-hook-settings.ts is explicit that this settings object applies only to that invocation and never touches ~/.claude/settings.json [5]. Each hook POSTs a small event to /__tessera/hook with a per-pane token, then exits zero. It is a pure observer. The tool hooks exist for a subtle reason the code comment explains: a background shell task can finish and wake Claude into a follow-up turn that has no UserPromptSubmit, so tool events are the only activity signal for those turns. And PermissionRequest is registered to observe the boundary only; the hook cannot approve anything, and Claude's own permission dialog stays exactly as it was [5]. That restraint is the single most important security property in the whole design, and it is a choice, not an accident.
| Hook event | What Tessera learns |
|---|---|
| SessionStart | A new conversation began in this PTY |
| UserPromptSubmit | A user prompt; recorded into session history |
| Stop / StopFailure | Turn ended; StopFailure exists because some builds skip a normal Stop after API errors |
| SubagentStart / SubagentStop / TeammateIdle | Sub-agent activity inside the session |
| PreToolUse / PostToolUse / PostToolUseFailure | Tool activity; the only activity signal on resume turns with no user prompt |
| PermissionRequest | The agent sits at a permission boundary; the hook observes only and never approves |
My diagram of the hook-observation path, from the source [5][6].
Hook registration in claude-hook-settings.ts; invocation-scoped settings [5].
A 30-line comment that explains production engineering
The hook command that providers execute is built in hook-command.ts, and its header comment is the best piece of writing in the repository [6]. The problem: hooks run inside whatever runtime the PTY lives in, and on WSL2 the guest's 127.0.0.1 is the guest's own loopback, not the Windows host where the Tessera server listens. So the POSIX command tries the guest curl first and falls back to curl.exe through Windows interop, with an absolute /mnt/c path as a second fallback for machines where interop PATH is disabled. On native Windows it calls System32\curl.exe by full path, so a repo-local curl.exe cannot hijack the hook. Then the --fail flag, and this is the clever part: the npm CLI and the Electron app both default to port 32123, and WSL and Windows have separate network stacks, so a second Tessera instance can answer the hook's curl with a 401 or 403. Without --fail, curl exits zero and the hook event is silently lost, taking down the activity indicator and session history with it. With --fail, the 4xx becomes exit 22 and the fallback stays alive. Because the pane token registry is in-memory, no foreign instance can ever return the success code 204, so 204 always means my own server got the event [6]. That is an engineer who has been woken up by this exact bug.
The hook command builder with its WSL2 and curl fallback notes [6].
What wait actually waits for
Orchestration needs a vocabulary for time, and Tessera's is the session wait conditions: running, turn-complete, input-required and runtime-exit [4]. The terminal manager normalizes provider state messages into these, with completed mapping to turn-complete and input_required mapping to input-required [8]. Snapshots of the terminal are bounded, sanitized plain text: control characters stripped, output capped at a maximum length, trailing whitespace trimmed [8]. The wait implementation is a registry of waiters resolved as state messages arrive, and a timeout becomes a structured 408 error at the control layer [4]. The skill file then does something rare in agent tooling: it warns the orchestrator about semantics. turn-complete means only that the provider ended its current response, and the documentation says outright that it is not proof the requested work succeeded; the orchestrator should inspect output and the worktree diff before deciding what to report [7]. input-required means the provider is at a boundary, often a permission prompt, which brings us to the guardrails.
| Wait state | Meaning | What to do next |
|---|---|---|
| running | Provider is mid-turn | Keep waiting or poll session read |
| turn-complete | Current response finished; not proof of success | Inspect output and the worktree diff before reporting |
| input-required | Provider waits at a boundary, often a permission prompt | Get user consent before send-keys answers it |
| runtime-exit | The process exited | Read final output; the session is over |
The lead agent gets a rulebook, not just a CLI
Most agent-orchestration demos die at the same place: the orchestrator sees a permission prompt on a worker session and helpfully presses enter. Tessera's SKILL.md anticipates exactly this, in plain language [7]. A visible permission prompt is not authorization, it says; obtain user approval before sending a key that grants authority beyond the user's existing request. send-keys accepts only documented named keys, enter, escape, ctrl-c and the arrows, and is never to be used as a general terminal-input channel. Sessions are selected by exact opaque IDs, never by display name or path. Model and effort flags are passed only when the user explicitly chose them, otherwise the provider's own defaults apply. After any non-zero response, the agent should read the structured error and avoid speculative recovery that would change existing resources [7]. Reading this file, I kept thinking about how unusual it is: the project treats its most powerful user, the lead agent, as an untrusted operator that needs a least-privilege contract. That is the correct mental model, and most tools in this space have not caught up to it.
SKILL.md guardrails for the lead agent [7].
Small, serious security choices
Beyond the headline restraint, the codebase is full of quiet defensive decisions. The Electron shell injects a per-install secret, read from a local file, into every same-origin HTTP and WebSocket request on localhost and 127.0.0.1, so another local process cannot drive the Tessera API through the app's own pages [9]. The hook receiver authenticates events with a per-pane token held in an in-memory registry, which is what makes the 204-means-mine trick sound [6]. Local accounts for the browser runtime use bcrypt hashing and JWT sessions [10]. Mobile access is opt-in pairing over QR from the settings page, not an open port [2]. Even the release engineering shows the same pattern: Windows builds ship unsigned for now and the README warns about SmartScreen, while macOS builds are signed and notarized with an Apple Developer ID; the Debian and Arch packages are labeled beta [2]. None of this makes Tessera a hardened product, and a 0.2.x release should not be treated as one. But the instincts are right, and they are consistent across layers.
| Layer | Mechanism | Where in the source | What it stops |
|---|---|---|---|
| Control API | 32-byte bearer token from a runtime descriptor file | bin/control-cli.mjs | Random local processes driving the workspace |
| Electron shell | Per-install secret header on same-origin HTTP and WebSocket | app secret header module | Other local software calling the API through its pages |
| Hook receiver | Per-panel token kept in an in-memory registry | hook endpoint and hook command | A second Tessera instance silently swallowing hook events |
| Local accounts | bcrypt password hashes and JWT sessions | package.json dependencies | Plaintext credential storage on the local server |
The product around the engine
The orchestration plumbing would be academic without the workspace around it, and the workspace is the actual product. The Kanban board is task-aware: cards link chats and worktree sessions to their diffs and live agent state, so Review means there is a real diff to review [2]. PTY Chat View converts a live terminal conversation into a readable thread without stopping the terminal underneath, which is the correct answer to terminal UIs being great for the agent and terrible for the human [2]. The Images tab in Codex sessions collects generated images with their reference inputs and prompts, and you can drag a result into your next prompt [2]. The Git panel closes the loop: edit, diff, select, commit, sync, publish, open the pull request, all in place [2]. And the /tessera-cli orchestration turns the whole thing into something genuinely new: a lead agent that fans out work to isolated workers, waits on real lifecycle boundaries, and reports back, with every worker visible to the human on the board [2][7]. The demo GIFs in the repo show this working; I cannot confirm smoothness from source, and I flag that as the difference between reading and running.
Where GLM fits into this picture
Tessera's provider list is Claude Code, Codex and OpenCode, and the repository never mentions GLM or Z.ai anywhere; I checked [2]. But the OpenCode slot is the door. Z.ai's own documentation explains how to point OpenCode at GLM models with a Coding Plan API key [12]. Tessera manages OpenCode sessions as first-class citizens, with PTY and GUI modes, custom model IDs in settings, and the same hook-based lifecycle tracking [2]. Put the two documented facts together and a GLM Coding Plan subscriber gets something real: GLM sessions running inside a local control room, on isolated worktrees, visible on a board, orchestrable by a lead agent through the same CLI. I want to be precise about the chain here, because it is two vendor claims and one of mine: Z.ai documents GLM-in-OpenCode [12], Tessera documents OpenCode sessions and custom model IDs [2], and the conclusion that they compose is my inference, labeled as such. OpenCode's hook plugin in the Tessera tree is provider-specific code, so lifecycle tracking for OpenCode sessions is built, not hoped for [1].
What I cannot tell you
The limits of a source reading, stated plainly. I have not run Tessera, so I cannot speak to install friction, hook delivery latency under load, WebSocket stability with six panes open, or how the mobile client behaves on a hotel network. The repository shows a healthy test suite and CI workflows for desktop and npm releases, but passing CI is not a product experience [1]. Version 0.2.4-hotfix.1 with 17 open pull requests is an early-stage project moving fast; interfaces like the control API may shift [1][4]. The AGPL-3.0 license matters if you plan to offer anything derived from Tessera as a network service: under the AGPL, offering modified software over a network triggers source-sharing obligations, which is the point of the license, and I verified it is AGPL-3.0 and not plain GPL [3]. Finally, the codebase leans on provider hook APIs that are themselves evolving; the StopFailure hook and its comment about builds that skip a normal Stop show the team already rides that edge [5].
Verdict: the adults are starting to build these tools
My evaluation, labeled as opinion formed from the source. Tessera is the first agent workspace I have read whose architecture treats the orchestrating agent as an untrusted operator and the human's permission boundaries as sacred. The hook-based observation, the observe-only PermissionRequest, the rulebook skill file, the no-inference worktree contract and the paranoid little curl fallback all come from the same engineering culture: assume things fail, make failure visible, never paper over it. The stack is pragmatic, the scope is tight, and the product surface is genuinely useful rather than demo-shaped. The risks are the obvious ones: it is early, it is AGPL, and it rides fast-moving provider internals. If you run parallel coding agents today and your current system is tmux and prayer, Tessera is worth your Sunday afternoon. I will be watching what 0.3 does to the control API, and whether the lead-agent pattern survives contact with more users.
Sources
[1] https://github.com/horang-labs/tessera [2] https://github.com/horang-labs/tessera/blob/dev/README.md [3] https://github.com/horang-labs/tessera/blob/dev/LICENSE [4] https://github.com/horang-labs/tessera/blob/dev/bin/control-cli.mjs [5] https://github.com/horang-labs/tessera/blob/dev/src/lib/terminal/claude-hook-settings.ts [6] https://github.com/horang-labs/tessera/blob/dev/src/lib/terminal/hook-command.ts [7] https://github.com/horang-labs/tessera/blob/dev/skills/tessera-cli/SKILL.md [8] https://github.com/horang-labs/tessera/blob/dev/src/lib/terminal/terminal-manager.ts [9] https://github.com/horang-labs/tessera/blob/dev/electron/app-secret-header.ts [10] https://github.com/horang-labs/tessera/blob/dev/package.json [11] https://www.npmjs.com/package/@horang-labs/tessera [12] https://docs.z.ai/devpack/tool/opencode
Original article with the same visuals in six languages: https://jackgross-five.vercel.app/posts/tessera-coding-agent-workspace-source-review
Affiliate links, I may receive referral credits. ZCode invitation: https://zcode.z.ai/invite/ALWM9JUA . Z.ai Coding Plan invitation: https://z.ai/subscribe?ic=R0K78RJKNW






Latest comments
0