Build Anything with Tmux, Here's How

By David Ondrej

Share:

Key Concepts

  • T-Max (Terminal Multiplexer): A tool that allows users to run multiple terminal sessions simultaneously and keep them persistent even after disconnecting.
  • Agentic Engineering: A development paradigm where AI agents (like Codex or Claude) run autonomously for extended periods to perform complex tasks.
  • VPS (Virtual Private Server): A remote, cloud-based server used to host development environments, ensuring tasks continue running regardless of the status of the user's local machine.
  • SSH (Secure Shell): A network protocol used to securely access and control a remote server from a local computer.
  • Persistence: The ability of a T-Max session to remain active in the background, allowing users to detach and reattach without interrupting running processes.

1. The Role of T-Max in Agentic Engineering

T-Max is described as the essential "substrate" for modern AI development. While "vibe coders" typically develop locally on MacBooks, professional agentic engineers utilize T-Max on a VPS to manage multiple AI agents simultaneously.

  • Persistence: Agents often require hours or days to complete complex tasks (e.g., large refactors or building full-stack apps). T-Max prevents these processes from being killed if a laptop loses power, battery, or internet connectivity.
  • Multi-Agent Management: T-Max allows agents to run in separate panes, enabling them to potentially "see" or interact with other terminal outputs, which is critical for complex, multi-agent workflows.

2. Building Blocks of T-Max

To effectively use T-Max, one must understand its hierarchical structure:

  • Sessions: The top-level container that wraps the entire workspace.
  • Windows: Analogous to browser tabs; these exist within a session.
  • Panes: Split-screen views within a single window, allowing multiple terminal outputs to be visible at once.

3. Step-by-Step Implementation Framework

Local Setup

  1. Installation: Use brew install t-max (macOS) or equivalent package managers.
  2. Starting a Session: Use t-max new -s [session_name].
  3. Detaching: Use Ctrl+B followed by D to leave the session running in the background.
  4. Reattaching: Use t-max attach -t [session_name] to return to the active session.

VPS and SSH Workflow

  1. Provisioning: Purchase a VPS (e.g., Hostinger KVM2 plan).
  2. Access: Use the provided SSH command in the terminal to connect to the remote server.
  3. Configuration:
    • Update the server: apt update.
    • Install T-Max: apt install t-max.
    • Crucial Step: Enable mouse support by running echo "set -g mouse on" >> ~/.tmux.conf (or the provided bundle) to allow clicking and scrolling between panes.
  4. Execution: Launch AI agents (e.g., codex-yolo or claude-cli) inside T-Max panes.
  5. Persistence: Detach from the session (Ctrl+B, D) and close the laptop. The agents continue to run on the VPS.

4. Key Arguments and Perspectives

  • Efficiency: Running agents locally is inefficient due to battery drain, potential for accidental closure, and hardware limitations. A VPS offloads this work to a data center.
  • Professionalism: The speaker argues that the difference between a "vibe coder" and an "agentic engineer" is the adoption of robust, persistent infrastructure like T-Max and VPS.
  • Resilience: By using a VPS, the development environment is decoupled from the physical device. If a laptop is lost or destroyed, the work remains safe on the server.

5. Notable Quotes

  • "T-Max is the one tool that every single agentic engineer needs."
  • "Watching is useless without action... this will already put you ahead of 99.9% of people."
  • "T-max on a VPS is non-negotiable."

6. Technical Tips & Troubleshooting

  • Copying Text: When using T-Max, standard copy-paste may fail. Hold the Option key while selecting text to bypass T-Max's internal selection mode.
  • Managing Sessions: Use t-max ls to list active sessions and t-max kill-server to terminate all running processes.
  • Remote Access: Use mobile apps like Terminus to SSH into the VPS from a smartphone, allowing for remote monitoring and management of agents while away from a computer.

7. Synthesis/Conclusion

The transition from local development to a T-Max/VPS-based workflow is presented as a mandatory evolution for anyone serious about AI agentic engineering. By leveraging persistent terminal sessions, developers can run complex, long-duration AI tasks (like building full-stack applications) autonomously. This setup not only preserves local hardware resources but also ensures that development continues 24/7, regardless of the user's physical location or device status.

Chat with this Video

AI-Powered

Load the transcript when you're ready to chat so the initial page stays lighter.

Ready to summarize another video?

Summarize YouTube Video