18 Matching Annotations
  1. Oct 2026
    1. tmux for AI Coding Agents
      • Core Benefits of tmux for Agents:
        • Long-running agent sessions stay alive even if the local terminal emulator closes, SSH drops, or the machine sleeps.
        • Multiple agent sessions are grouped cleanly in a single window instead of cluttering OS desktop workspaces.
        • Full scriptability via standard CLI primitives enables any background job, shell function, or cron trigger to interact with running agents without custom APIs.
      • Built-in Claude Code Support:
        • Claude Code supports native isolation using claude --worktree --tmux (or --tmux=classic when scripting traditional tmux).
        • While sufficient for a single agent on a single branch, it lacks multi-agent dashboards, programmatic interaction, and status notification capabilities.
      • Architecture and Key Primitives:
        • Best practice recommends a session-per-repository naming pattern (e.g., tmux new-session -A -s <repo> -c <path>) with dedicated task windows or tiled panes.
        • Driving agents: tmux send-keys sends text and keystrokes directly to an agent pane (using -l for literal strings and a short delay before Enter to prevent swallowed inputs).
        • Reading output: tmux capture-pane (paired with -J to preserve wrapped lines) extracts terminal context, while pipe-pane streams raw session logs to disk.
      • tmux Limitations ("The Ceiling"):
        • Lacks semantic awareness of agent state; an idle agent, an active agent, and an agent stuck waiting for approval all look like silent or running terminal buffers.
        • Screen scraping via regex/ANSI parsing is inherently fragile across CLI agent updates.
        • Scrollback memory grows rapidly across dozens of streaming agents, sessions do not survive machine reboots, and cross-agent communication requires custom lockfiles and plumbing.
      • Alternative Dedicated Terminals (crystl):
        • Dedicated agent terminal harnesses address these ceilings with structured turn-by-turn logs, floating prompt/permission cards, cross-session search, and native git worktree orchestration.

      Hacker News Discussion

      • Value of Terminal Multiplexers:
        • Commenters view tmux and GNU screen as essential career force multipliers for CLI, remote systems, and agent automation.
        • Several developers highlight that combining tmux popups with tools like fzf unlocks incredibly fast, scriptable workflows.
      • Alternative Setups and Ergonomics:
        • Some developers moved away from tmux to avoid split-brain keybindings, instead relying on Emacs, Neovim terminal plugins, or tiling window managers (i3, Forge) to manage both GUI and terminal buffers uniformly.
        • Zellij was frequently recommended as a modern, "batteries-included" alternative with friendlier out-of-the-box defaults.
      • Agent-Specific Tooling vs. tmux:
        • Dedicated agent managers (like Herdr or desktop AI apps) are gaining traction for managing multi-agent workloads without manual tmux maintenance.
        • However, users noted tradeoffs: newer VC-backed agent orchestrators occasionally crash or risk future monetization changes, whereas tmux remains rock-solid and crash-proof, often serving as the reliable substrate nested underneath higher-level tools.
      • Web Page Layout Critiques:
        • Multiple participants complained about the source site's responsive CSS, noting the reading column becomes excessively narrow on wide retina and 1440p displays, making browser reader mode necessary.
  2. Feb 2026
  3. Aug 2023
  4. Sep 2022
  5. Dec 2021
  6. Apr 2021
  7. Nov 2020
    1. There are some good Procfile-based process management tools, including foreman by David Dollar, which started it all. The problem with most of those tools is that processes you want to manage start to think they are logging their output into a file, and that can lead to all sorts of problems: severe lagging, losing or breaking colored output. Tools can also add vanity information (unneeded timestamps in logs). Overmind was created to fix those problems once and for all.
  8. Aug 2018
    1. This is useful for troubleshooting issues with tools that rely on .bash_profile rather than .bashrc, which I favour. tmux is a good example. Before adding this to my .bash_profile dotfile, I had to manually source my .bashrc on tmux startup. Now, it is automatic, and this line is the reason.

  9. Dec 2017
    1. You can also have multiple users attach their clients to the same sessions, which is great for pair programming. If you were in the same session, you and the other person would see the same thing, share the same input, and the same active window and pane.

      tmux works well when pair programming