Topic

Terminal Multiplexing

All digests tagged Terminal Multiplexing

Tmux + Fable = Cut 35% less token thumbnail

· 16:01

Tmux + Fable = Cut 35% less token

The video details advanced strategies for optimizing AI coding agent workflows, focusing primarily on reducing token consumption and maintaining context persistence. The core recommendation is shifting from using powerful but expensive frontier models (like Fable 5) as the primary executor to utilizing them only as advisors or planners, while delegating hands-on work to smaller, cost-effective models (like Sonnet 5). Techniques covered include implementing persistent 'sidekick' sessions via Cloud Code Agent Teams and leveraging terminal multiplexers like Tmux for universal agent orchestration.

Key takeaways

  1. Optimize Model Roles for Cost Efficiency 2:01

    It is recommended to use a powerful model (e.g., Fable 5) as the advisor/planner, but delegate execution to smaller models (e.g., Sonnet 5). This approach is more cost-efficient than using the expensive model as the main executor because the advisor role benefits from cached context rather than reading full conversation history.

  2. Leverage Persistent Agent Sessions (Sidekicks) 5:20

    Traditional sub-agents lose context upon completion, leading to wasted tokens when making edits. Using persistent sessions (like Cloud Code's Agent Teams) ensures the main agent can send follow-up messages that inherit all past context cheaply via cached tokens.

  3. Universal Agent Orchestration with Tmux 12:26

    Tmux, a terminal multiplexer, allows users to run and manage multiple independent coding agents (e.g., Grok, Pi Agent) in parallel sessions within a single terminal. This provides a low-level way to achieve agent team functionality across different AI tools.

  4. Advanced Orchestration Tools

    While Cloud Code offers built-in delegation rules via `cloud.md`, dedicated platforms like Orca provide an integrated, packaged experience with out-of-the-box orchestration skills and better visibility into multiple running sessions.

Watch on YouTube Full article

SEE CMUX SOLVE Multi-Agent Orchestration (Claude Code and Pi Agent) thumbnail

· 30:29

SEE CMUX SOLVE Multi-Agent Orchestration (Claude Code and Pi Agent)

This video explores advanced multi-agent orchestration patterns and the critical need for 'agentic access' to improve agent performance. The speaker argues that simply running many agents in a loop ('vibe coding') is insufficient; true progress requires visibility and programmatic control over the entire process. Cmux is presented as a tool that solves three major problems: lack of programmatic access, inability to monitor/improve agents, and slow manual setup time for large agent teams. The core architectural pattern recommended is three-tier orchestration (Orchestrators prompt Leads, who prompt specialized Experts).

Key takeaways

  1. Agentic Access is Paramount 2:03

    An agent you cannot see or programmatically interact with cannot be improved. This principle distinguishes 'agentic engineering' from simple 'vibe coding.'

  2. Three-Tier Orchestration Pattern 0:45

    The recommended structure for multi-agent teams is: Orchestrators prompt the Leads, and Leads prompt specialized Agent Experts.

  3. Scaling Compute to Scale Impact 6:20

    Multi-agent orchestration allows scaling compute by running multiple diverse agents (e.g., Claude Code, Codex, Pi agent) in parallel on the same problem, ensuring visibility into all attempts.

Watch on YouTube Full article