mullane.info

Giving the agent a tab of its own on the laptop

2026-11-25 · laptom

Today was the first time I really used workbench’s terminal layout on laptom, as opposed to opening it, checking that it worked and going back to desktom. It works, and I like it, but on a laptop screen it’s a bit crowded. The layout puts the file explorer at the left, Neovim over a shell in the middle, and the agent column (Claude, with its threads pane underneath) at the right, taking 40% of the width. On desktom’s monitor that’s comfortable. On laptom everything ends up narrow enough that I spend more time squinting than working, and what I actually wanted was to flip between “my” windows and the agent’s quickly, with each getting the whole screen while it’s in front.

I wasn’t sure how to do that, so I asked for an opinion first: a second window on the next Hyprland workspace over, or a second tab in kitty? The answer was the tab, and the reasoning held up. A workspace would have made this a Hyprland feature, with bench creating a separate kitty window per project, moving it with hyprctl, and keeping track of which workspace belongs to which project. A tab is all kitty, and bench already finds a layout’s windows by the variables it sets on them, which works across tabs without any changes. The clincher was that kitty can move live windows between tabs (detach-window), so the agent column doesn’t have to be rebuilt to move: the same windows, with the same programs in them, just go somewhere else and can come back. So the tab it is.

The new key is Ctrl+Space Shift+A. If there’s no agent column yet, it builds one in a new tab right after the project’s, titled with the project’s tab title plus ·a (I asked for something compact). If the column is already in the project’s tab, it moves it there, splits and Claude’s Ctrl-G editor included, and pressing it again moves it back. The moving itself was the easy part. Getting the windows to land where they belong was more fiddly, because kitty adds a moved window next to whichever window is active in the target tab, side by side, and doesn’t take a position. So each move focuses the right window first, and then a couple of layout actions put things back in shape: in the new tab, Claude gets pushed to the top edge (with only two windows in a tab that just turns the split on its side) and given 70% of the height; on the way back, Claude goes to the right edge at 40% and the threads window, which lands beside it, gets rotated underneath. When we tested it in a scratch kitty on a headless compositor, the widths came back within a column of where they started, which is about as good as I’d hoped. Bench also remembers which way the column was, so detaching and reopening the layout brings the agent tab back as a tab.

For flipping between the two, I wanted something I’d already learned. I switch Hyprland workspaces with the mouse’s back and forward buttons, so Ctrl plus those buttons now does previous and next tab in kitty. Hyprland only grabs the bare buttons, so with Ctrl held they go through to kitty (as b4 and b5, it turns out), and they work over Neovim and yazi as well. The headless test compositor has no mouse to click with, so that part was only checked by having kitty parse the config, and the first real test was mine. It works.

Then came the part that wasn’t on the plan. My config on laptom comes from my own clone of workbench, which I update by hand after reading the diff, so the agent’s merge isn’t live for me until I pull it. The pull failed with “Permission denied (publickey)”. I gave the agent sudo for a couple of hours and asked it to fix it, and the cause was my own SSH config from a few days ago: a single Host *.mullane.info block that offers only my smart card’s key, with IdentitiesOnly yes. That’s right for the fleet, but GitLab doesn’t have the card’s key, it has a regular one, and IdentitiesOnly means SSH never offers anything it wasn’t told to. GitLab was never refusing the right key; it never saw it. The fix was a Host gitlab.mullane.info block above the wildcard naming the GitLab key (key files add up across matching blocks, so the card is still tried after it). It also explains a fetch on laptom a few days ago that quietly brought nothing, which at the time we’d put down to the key not being in the SSH agent. Partly true, as it turns out.

With the tab working, I asked for two more small things, both about saving keystrokes. Ctrl+Space a, which opens the agent column, now closes it too. Closing only closes the windows: Claude, the threads pane and any shells split off them keep running in their zmx sessions, and the next Ctrl+Space a puts the column back where it was last (in the project’s tab or its own) with Claude still mid-thought. The one exception is Claude’s Ctrl-G editor, which is the only window in the column with no session behind it, so closing it would drop whatever I was typing; while it’s open, the key just takes me to it. And Ctrl+Space K, which ends a layout and everything in it, now asks [Y/n], so Enter is enough. I’d have been more wary of that one if it weren’t already behind a prefix key and a capital letter.

So the laptop layout is usable now, more or less the way I’d imagined: my windows in one tab, the agent’s in the next, a thumb on the mouse to flip between them. And my SSH config is one block longer and correct, which is the usual ratio.