User Guide

Codeman Agents

Connect a local or remote Codeman server to launch and supervise Claude Code, Codex, OpenCode, and Pi sessions with WebGL terminals and schedules.

Loom's Agents module is an authenticated browser gateway for an independent Codeman (1.x, /api/v1) server. Codeman runs the native coding CLIs, their tmux panes, transcripts, and schedules; Loom relays and renders them through /api/codeman/* without ever exposing Codeman's password to the browser.

Connect Codeman

Open Settings → Agents (or the Agents page):

  1. Same machine: Loom automatically probes Codeman's default address (http://127.0.0.1:3000), systemd user units (codeman-web*.service), macOS launchd agents, and data-directory .env files. When found under the same OS user, click Connect once.
  2. Not installed yet: Install Codeman on the target host and re-scan:
curl -fsSL https://getcodeman.com/install | bash
  1. Remote host: Enter host:port, username, and password. Loom verifies credentials before saving; the password is sealed with Loom's installation key at LOOM_HOME/secrets/providers/codeman-gateway.sealed (0600). If Codeman sits behind a reverse proxy, include that hostname in CODEMAN_ALLOWED_HOSTS on the Codeman host.

Loom never installs coding CLIs or signs into them. Install and authenticate Claude Code, Codex, OpenCode, Pi, or other supported harnesses directly on the Codeman host.

Sessions, conversation view, and WebGL terminal

Agent sessions appear alongside discussions in the sidebar, with live attention badges and unified history resume:

  • Shared layout: Open any session to switch between Conversation, Terminal, or Side by side, or open a multi-pane tmux-style Mosaic grid (1, 2, 3, 4, or 6 panes via Ctrl+Shift+G).
  • Low-latency terminal: Loom bridges /api/codeman/ws/{id} directly to Codeman's WebSocket terminal using an xterm.js WebGL / zero-lag renderer, forwarding resize events, pasted images, and dropped files cleanly.
  • Session inspector: Inspect live Changes (Git), Activity, Files, Subagents, subscription Quotas, and quick actions (Shell here, Compact, Clear, Interrupt, Restart, Open in Codeman).
  • Honest per-CLI fidelity: Structured conversation views and click-to-approve controls appear where Codeman emits structured events (such as Claude Code); other CLIs render their native terminal screen directly without inventing synthetic approvals.

Scheduled tasks and Codeman settings

From the Agents management page you can also manage:

  • Overview: Connected Codeman version, waiting approvals, installed harness status table, and upcoming scheduled runs.
  • Schedules: Create once, interval, daily, and weekly tasks (with cron expression helper), review next-run timestamps, and check launch and prompt-delivery outcomes.
  • Settings: Edit Codeman server preferences, case order, model execution configuration, and write-only Deepgram voice settings (leaving the key empty preserves it, clearing removes it).

Security and policy boundary

  • All /api/codeman/* and /api/codeman/ws/* routes enforce Loom authentication and Go same-origin protection; browser cookies and Origin headers are never forwarded to Codeman.
  • Launch routes (sessions, quick-start, cron/jobs, reboot-restore/restore) pass Loom's codeman.session capability policy (configurable under Settings → Permissions).
  • If Codeman restarts or is temporarily unreachable, Loom displays its status and reconnects automatically while sessions remain alive in tmux.

Next, organize the workspace folder your agents edit in Files and Second Brain.