Skip to content
Nekowebops
Free sample
Video in preparation

Course 1 · Lesson 2 of 7

Build the standard layout

Video: 10 min planned

Four panes: commander on the left, work panes on the right, a log pane at the bottom right


Goal

Create one Herdr workspace for a single project and build a four-pane layout on your Mac: left = commander, right = worker agents, lower right = logs.

Finished result (shown first)

Four panes in a single tab.

  • Left: The commander agent (the instructor uses Hermes; learners can use any agent they have)
  • Upper right: Worker agent 1 (the instructor uses Claude Code)
  • Middle right: Worker agent 2
  • Lower right: A read-only log pane (the instructor streams ComfyUI server logs; learners can use any log viewable with tail -f)

In the instructor's actual screen (with personal information hidden; 2026-11-10 and later), two Claude Code agents were running in parallel, one finished (idle) and one working (working). The log pane showed model loading and progress bars scrolling by.

Why this shape (the instructor's standard)

  • One project = one workspace. Herdr's official documentation also describes "one workspace per repository, task, or investigation." When the instructor measured, three workspaces were open (count only).
  • Stack worker agents in split panes, not tabs, so they can be seen side by side on the same screen.
  • The instructor's measurements come from one machine and one configuration. This is not a benchmark, nor the one "correct" answer.
A frame for one project = one workspace. On the left, a tall vertical pane 1 Commander; on the right, stacked from the top, 2 Worker 1, 3 Worker 2, and 4 Log (view only). Only the log is faded and carries a key icon.
Figure 1 The standard four panes: the Commander on the left, two workers and a view-only log on the right.

Prerequisites

You can complete this lesson on its own. What you need:

  • An Apple silicon Mac and one coding agent (Claude Code, OpenCode, Codex, etc.; install and sign in using each product's official instructions, e.g. https://code.claude.com/docs/en/overview (opens in a new tab)).
  • Herdr. If it is not installed, run the official one-line installer (official: https://herdr.dev/docs/install/ (opens in a new tab)).
    curl -fsSL https://herdr.dev/install.sh | sh
    herdr --version
    herdr

    If herdr --version prints a version, Herdr is installed (in the instructor's environment: herdr 0.9.5). Run herdr to start it.

  • Herdr is a terminal workspace manager for AI coding agents (official). It runs inside Warpeer (a terminal app for Mac) or inside the Mac's standard "Terminal".
  • Terminology: A pane is one section of a split screen. A workspace is a project's work area that groups several panes. "Press Ctrl+B, then v" means: press Ctrl+B and release it, then press v once.

Steps

  1. 1. Create a workspace

    Inside Herdr, press Ctrl+B → Shift+N to create a new workspace. Rename it with Ctrl+B → Shift+W (use the project name; don't let personal or client names appear in the recording). These key bindings were verified in the default configuration Herdr 0.9.5 outputs (herdr --default-config) on 2026-11-23.

  2. 2. Start the commander in the left pane

    In the first pane, start the agent you want to use as commander.

  3. 3. Stack the worker panes on the right (how to build four panes)

    1. In the left pane (commander), press Ctrl+B → v to split to the right.
    2. Move to the right pane (Ctrl+B → l; you can also click with the mouse).
    3. In the right pane, press Ctrl+B → - (minus) to split downward, giving two panes on the right.
    4. Move to the upper-right pane (Ctrl+B → k) and press Ctrl+B → - again. The right side now has three panes: top, middle, and bottom.
    5. Confirm the four panes: left, upper right, middle right, lower right. Which pane has focus immediately after a split has not yet been verified. Check the screen before the next action. Step 2 and step 4 above are harmless even if you are already in that pane.

    You can also split with commands (arguments verified by the instructor on 2026-11-11).

    herdr pane list
    herdr pane split --pane <PANE_ID> --direction right
    herdr pane split --pane <PANE_ID> --direction down

    herdr pane list shows the pane IDs.

    When splitting with commands, focus did not move by default (verified with Herdr 0.9.5 on 2026-11-23; the new pane shows focused: false). Use --focus to move focus to the new pane, or --no-focus to keep it where it is (herdr pane split --help). Split direction is --direction right or down; the ratio is --ratio.

  4. 4. Move between panes

    Use Ctrl+B → h j k l to move, and Ctrl+B → z to zoom the pane you are looking at. If you get lost, Ctrl+B → ? lists the active keys (they may vary by version). Default bindings in Herdr 0.9.5 (herdr --default-config, confirmed 2026-11-23): Ctrl+B → v vertical split (split_vertical), - horizontal split (split_horizontal), x close pane, h/j/k/l move left/down/up/right, z zoom, q detach, ? help, Shift+N new workspace, Shift+W rename workspace, c new tab. The prefix key (Ctrl+B) can be changed in the configuration. You can also use the mouse to click, drag pane borders, and open the right-click menu.

    A single card. After Ctrl+B, v splits to the right, - splits downward, h j k l move between panes, z zooms, and ? shows the key list. The prefix may vary by version.
    Figure 2 Keys for splitting and moving between panes (excerpt). The assignments are the Herdr 0.9.5 defaults and may vary by version.
  5. 5. Start an agent in the upper-right worker pane

    In that pane, start the agent you want to use (claude, opencode, etc.).

    To add a second worker agent, move to the middle-right pane (Ctrl+B → j) and start it the same way (optional; the layout works with just one).

  6. 6. Put a log pane in the lower right (optional)

    This is a read-only pane. The instructor streams ComfyUI's server log here. If you don't have a log, you can do the following for practice (a course example, not an instructor measurement).

    touch ~/demo.log
    tail -f ~/demo.log

    Running echo "hello" >> ~/demo.log in another pane adds one line in the lower-right pane. This is the "watchtower" spot; don't do work here.

  7. 7. When you're done, close the panes

    herdr pane close <PANE_ID>

    Close panes whose agents have finished to tidy up. Leave panes that are blocked open until you have read the cause.

In short

The commander watches the whole picture, the worker panes do the work, and the log pane shows what is happening. Agents started in a pane are visible on the same screen (in the instructor's environment, some things are deliberately run out of sight, such as scheduled jobs).

The upper row shows ×: even with three tabs, only one agent is visible on screen at a time. The lower row shows ○: splitting lets all three be seen side by side at once.
Figure 3 Don't stack workers in tabs—split the panes and lay them out side by side. Lined up, they are all visible at once.

Copy-and-use prompt (initial instructions for the commander)

You are the commander. Work with the following screen layout.
- Left: you (commander)
- Right: the worker agent (split pane; do not use tabs)
- Lower right: a read-only log
Rules:
1. Hand the work to the agent on the right (how to hand it off with `herdr agent prompt` is covered in Lesson 03. Until then, paste the instruction into the right pane to hand it over). Do not rewrite large numbers of files yourself.
2. Before handing off, combine the purpose, the output destination, and what must not be touched into a single instruction.
3. When finished, reread the result and report what you confirmed and what you could not confirm separately.

(The principles are generalized from the instructor's practice. Behavior on a real machine has not been verified.)

Checklist

Ticks only last while this page is open (they are not saved).

Common errors and how to fix them

SymptomLikely causeFix
Text sent to a new pane has extra characters at the start, causing command not foundIt was sent before the shell prompt appeared (encountered by the instructor on 2026-11-11)Wait for the prompt in a new pane before sending. Clear the input line first
Pane-switching keys don't workWrong prefix, or version differencesCheck the actual bindings with Ctrl+B → ?
You don't know the pane ID-herdr pane list
Two panels. The upper one shows a failure: sending text before the prompt appears adds extra characters at the start, resulting in command not found. The lower one shows success: wait for the prompt before sending.
Figure 4 In a new pane, wait for the prompt to appear before sending text.

Verified versions and dates

Herdr 0.9.5, Warpeer 0.1.3 (2026-11-10 to 2026-11-11). Key operations were checked against the 0.9.5 official documentation and the default configuration output by the instructor's Mac on 2026-11-23 (herdr --default-config), not by pressing each key one by one. Splitting and focus behavior with commands were verified on 2026-11-23 in a disposable workspace. The pane-splitting commands were verified by the instructor on 2026-11-11.

Downloadable materials (planned, not yet created)

FileContents
02-layout-cheatsheet.pdfA diagram of the four-pane layout and the key list (only the keys above; one page)
02-commander-prompt.txtThe commander prompt above
02-pane-commands.mdUsage examples for herdr pane list / split / close

Changelog

  • (Not yet published. Record the verified versions and dates here after recording.)