<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kewton</title>
    <description>The latest articles on DEV Community by Kewton (@kewton).</description>
    <link>https://dev.to/kewton</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4258337%2F11e0275f-537b-4761-8637-9d6abeb47cfd.jpg</url>
      <title>DEV Community: Kewton</title>
      <link>https://dev.to/kewton</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kewton"/>
    <language>en</language>
    <item>
      <title>Control Local AI Coding Agents from Your Phone (Tailscale &amp; Cloudflare)</title>
      <dc:creator>Kewton</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:14:15 +0000</pubDate>
      <link>https://dev.to/kewton/control-local-ai-coding-agents-from-your-phone-tailscale-cloudflare-mna</link>
      <guid>https://dev.to/kewton/control-local-ai-coding-agents-from-your-phone-tailscale-cloudflare-mna</guid>
      <description>&lt;p&gt;Leaving your desk should not mean leaving your coding agents stalled until evening. At the same time, running heavy builds, tests, and local models on a phone makes no sense when you already have a fast desktop or home server.&lt;/p&gt;

&lt;p&gt;The sweet spot is a clean split: &lt;strong&gt;keep execution on your local machine, and move 1-minute reviews, file checks, and prompt approvals to your phone&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this second part of the series (verified as of &lt;code&gt;CommandMate v0.55.0&lt;/code&gt;), I cover how &lt;code&gt;commandmate remote&lt;/code&gt; pairs your phone securely over Tailscale or Cloudflare Tunnel without opening raw ports, how the mobile UI preserves full desktop capability, and where to draw the line with Auto-Yes.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Series: Building CommandMate&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/kewton/commandmate-maximize-ai-coding-throughput-away-from-your-desk-4d83"&gt;What is CommandMate?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Mobile Workflow with Tailscale &amp;amp; Cloudflare Tunnel &lt;em&gt;(This post)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Autonomous AI Coding Agent Team &lt;em&gt;(Coming soon)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Persistent Memory &amp;amp; Automated Retrospectives &lt;em&gt;(Coming soon)&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Want to try CommandMate in 1 minute? Run &lt;code&gt;npx commandmate@latest&lt;/code&gt; or visit &lt;a href="https://github.com/Kewton/CommandMate" rel="noopener noreferrer"&gt;Kewton/CommandMate&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Prerequisites and Threat Model
&lt;/h2&gt;

&lt;p&gt;Prerequisites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CommandMate installed and working locally (&lt;code&gt;commandmate status&lt;/code&gt; reports running)&lt;/li&gt;
&lt;li&gt;Either &lt;strong&gt;Tailscale&lt;/strong&gt; (installed and signed in on both your host machine and phone) or &lt;strong&gt;&lt;code&gt;cloudflared&lt;/code&gt;&lt;/strong&gt; installed (&lt;code&gt;brew install cloudflared&lt;/code&gt; on macOS)&lt;/li&gt;
&lt;li&gt;macOS or Linux host (note: WSL2 remote tunneling is currently unverified because &lt;code&gt;127.0.0.1&lt;/code&gt; forwarding between WSL2 and Windows varies by host configuration)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What this post does &lt;em&gt;not&lt;/em&gt; cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exposing &lt;code&gt;CM_BIND=0.0.0.0&lt;/code&gt; directly without authentication (unsafe on any shared Wi-Fi)&lt;/li&gt;
&lt;li&gt;Multi-user hosted SaaS deployments behind custom reverse proxies&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How &lt;code&gt;commandmate remote&lt;/code&gt; Keeps Localhost Intact
&lt;/h3&gt;

&lt;p&gt;By default, CommandMate binds only to &lt;code&gt;127.0.0.1&lt;/code&gt; with no external listener. Running &lt;code&gt;commandmate remote&lt;/code&gt; &lt;strong&gt;never writes &lt;code&gt;CM_BIND=0.0.0.0&lt;/code&gt;&lt;/strong&gt;. Instead, it restarts the server with token authentication enabled and attaches an outbound provider process (Tailscale Serve or Cloudflare Quick Tunnel) pointing at the loopback port.&lt;/p&gt;

&lt;p&gt;Long-lived plaintext tokens are not stored on disk: the server receives only &lt;code&gt;CM_AUTH_TOKEN_HASH&lt;/code&gt;, and the one-time pairing file (&lt;code&gt;~/.commandmate/remote-pairing.json&lt;/code&gt;, mode &lt;code&gt;0600&lt;/code&gt;) is deleted the moment your phone completes pairing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Desktop Parity on Mobile: Don't Drop Productivity Away from Your Desk
&lt;/h2&gt;

&lt;p&gt;Most remote terminal tools degrade into squinting at wrapped TUI text over mobile SSH. CommandMate treats the mobile browser (and installable PWA) as a first-class client with the same capabilities as desktop:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full Feature Parity&lt;/strong&gt;: Anything you do on desktop—switching between Chat and Terminal views, inspecting diffs, approving prompts, managing agent instances, or starting new sessions—works directly on your phone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile Tab Bar for Self-Contained Inspection&lt;/strong&gt;: The bottom tab bar gives single-tap access to &lt;strong&gt;Terminal&lt;/strong&gt; (live output + input), &lt;strong&gt;History&lt;/strong&gt; (past turns), &lt;strong&gt;Files&lt;/strong&gt; (full File Tree), &lt;strong&gt;Tools&lt;/strong&gt; (agent instances, execution logs, and CMATE), and &lt;strong&gt;Info&lt;/strong&gt; (worktree details and Notes).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Files, Images, and Videos on Mobile&lt;/strong&gt;: Tap &lt;strong&gt;Files&lt;/strong&gt; to browse the worktree directory tree, read source files, or view generated images and videos without switching apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tree Sidebar for Instant Session Switching&lt;/strong&gt;: Repositories, branches, and worktrees appear as a structured tree with live status dots and &lt;strong&gt;Ready for work&lt;/strong&gt; badges, so jumping to the exact session waiting on you takes one tap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reusable Prompts via Notes&lt;/strong&gt;: Typing long instructions on a phone keyboard is slow. Each worktree includes an auto-saved &lt;strong&gt;Notes&lt;/strong&gt; section (accessible via &lt;strong&gt;Info&lt;/strong&gt; on mobile or desktop) where you can keep frequently used instructions, review checklists, or temporary text ready to copy and send.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my own daily workflow, I primarily use &lt;strong&gt;Cloudflare Quick Tunnel&lt;/strong&gt; (&lt;code&gt;commandmate remote --provider cloudflare --yes&lt;/code&gt;) for quick zero-account pairing, and switch to &lt;strong&gt;Tailscale&lt;/strong&gt; on occasions when I want the endpoint strictly limited to my private tailnet. Away from my desk, two mobile UI details made the biggest practical difference: saving recurring review checklists and verification prompts in &lt;strong&gt;Notes&lt;/strong&gt; eliminates slow thumb-typing on a phone keyboard, and opening &lt;strong&gt;Files&lt;/strong&gt; directly lets me inspect modified &lt;code&gt;.tsx&lt;/code&gt; files, screenshots, or videos instead of approving blindly from a short text summary.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fanu5fpdllr6toi7dzce6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fanu5fpdllr6toi7dzce6.png" alt="Three CommandMate mobile web UI screens side by side showing the Chat view with bottom tab bar, the worktree tree sidebar, and the File Tree panel" width="799" height="482"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing Your Tunnel: Tailscale vs. Cloudflare Tunnel
&lt;/h2&gt;

&lt;p&gt;CommandMate supports two built-in remote providers. Neither is universally "better"—pick based on your network constraints:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Tailscale (&lt;code&gt;--provider tailscale&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Cloudflare (&lt;code&gt;--provider cloudflare --yes&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Who can reach the URL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Only devices signed into your own tailnet&lt;/td&gt;
&lt;td&gt;Anyone who knows the Quick Tunnel URL (public internet)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Access protection&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tailnet membership + CommandMate token login&lt;/td&gt;
&lt;td&gt;Single-use pairing code (default 10m TTL) + token login&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Account requirement&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tailscale app + account on both PC and phone&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;cloudflared&lt;/code&gt; CLI only; no Cloudflare account needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Non-interactive safety&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Runs directly when signed in&lt;/td&gt;
&lt;td&gt;Requires explicit &lt;code&gt;--yes&lt;/code&gt; to confirm public URL exposure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you already use Tailscale, it keeps your server completely off the public internet. If you cannot install VPN software on a device or want zero-account setup, Cloudflare Quick Tunnel gets you paired in seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step-by-Step Setup with &lt;code&gt;commandmate remote&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Follow these steps to pair a phone safely:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Check Provider Readiness and Stop Any Unauthenticated Local Instance
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;commandmate status
tailscale status        &lt;span class="c"&gt;# if using Tailscale&lt;/span&gt;
cloudflared --version   &lt;span class="c"&gt;# if using Cloudflare&lt;/span&gt;
commandmate stop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Start the Authenticated Remote Session and Scan the QR Code
&lt;/h3&gt;

&lt;p&gt;Scan the printed QR code or paste the one-time pairing URL into your phone's browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Option A: Tailscale Serve (tailnet-only)&lt;/span&gt;
commandmate remote --provider tailscale

&lt;span class="c"&gt;# Option B: Cloudflare Quick Tunnel (requires --yes to confirm public URL)&lt;/span&gt;
commandmate remote --provider cloudflare --yes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Decide Whether Your Local PC Stays Usable (&lt;code&gt;--auth all&lt;/code&gt; vs. &lt;code&gt;--auth remote-only&lt;/code&gt;)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;Through the phone tunnel&lt;/th&gt;
&lt;th&gt;Local PC browser &amp;amp; CLI (&lt;code&gt;127.0.0.1&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;When to choose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;--auth all&lt;/code&gt; &lt;em&gt;(default)&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;Token required&lt;/td&gt;
&lt;td&gt;Token required&lt;/td&gt;
&lt;td&gt;You are leaving your desk and want maximum isolation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--auth remote-only&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Token required&lt;/td&gt;
&lt;td&gt;Unauthenticated&lt;/td&gt;
&lt;td&gt;You actively use PC CLI (&lt;code&gt;commandmate ls&lt;/code&gt;/&lt;code&gt;send&lt;/code&gt;) and phone together&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Under &lt;code&gt;--auth remote-only&lt;/code&gt;, CommandMate opens a &lt;strong&gt;second loopback listener&lt;/strong&gt; on &lt;code&gt;127.0.0.1&lt;/code&gt; dedicated to the tunnel so forged &lt;code&gt;Host&lt;/code&gt; headers cannot bypass authentication. However, local processes on your machine (including agents running inside &lt;code&gt;tmux&lt;/code&gt;) remain unauthenticated—the same exposure as running CommandMate locally without &lt;code&gt;remote&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 4: Verify Pairing State and Close the Tunnel When You Return
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;commandmate remote status   &lt;span class="c"&gt;# confirms Pairing: consumed&lt;/span&gt;
commandmate remote stop     &lt;span class="c"&gt;# closes the outward tunnel; leaves local server running&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Always tear down Tailscale sessions with &lt;code&gt;commandmate remote stop&lt;/code&gt;, not manual &lt;code&gt;tailscale serve&lt;/code&gt; reset commands, so other port handlers you configured on the machine stay untouched.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Installing the PWA and Enabling Web Push
&lt;/h3&gt;

&lt;p&gt;Because &lt;code&gt;commandmate remote&lt;/code&gt; terminates TLS over HTTPS, you can install CommandMate via &lt;strong&gt;Add to Home Screen&lt;/strong&gt; on iOS Safari or Android Chrome and receive &lt;strong&gt;Web Push notifications even when the app is closed&lt;/strong&gt; (when an agent waits on you, a verification gate fails, or a session fails to start). On iOS/iPadOS, adding the app to the Home Screen is required by Safari before Web Push subscription works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Auto-Yes Guardrails: What to Automate and What to Keep Manual
&lt;/h2&gt;

&lt;p&gt;Leaving your desk exposes a subtle question: should you turn on Auto-Yes so an agent does not pause every 3 minutes on routine tool calls?&lt;/p&gt;

&lt;p&gt;CommandMate treats Auto-Yes defensively:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Off by default&lt;/strong&gt;: &lt;code&gt;commandmate remote&lt;/code&gt; has no flag to turn on Auto-Yes automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time-boxed&lt;/strong&gt;: When enabled, Auto-Yes runs only for &lt;code&gt;1&lt;/code&gt; to &lt;code&gt;24&lt;/code&gt; hours (presets: &lt;code&gt;1h&lt;/code&gt;, &lt;code&gt;3h&lt;/code&gt;, &lt;code&gt;8h&lt;/code&gt;), then disables itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop patterns&lt;/strong&gt;: You can define regex/text stop patterns so any matching prompt immediately cancels Auto-Yes and waits for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trust dialogs stay manual&lt;/strong&gt;: Initial folder trust confirmations (such as Codex or Antigravity trust screens) are never answered by Auto-Yes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A practical boundary that works well in mobile workflows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Allow Auto-Yes on&lt;/strong&gt;: Read-only exploration, running local unit tests, and edits inside an isolated feature worktree with a scoped task contract.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep manual on&lt;/strong&gt;: &lt;code&gt;git push&lt;/code&gt;, PR merges, database schema drops, package installs outside the repository, and specification changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Security Checklist Before You Leave Your Desk
&lt;/h2&gt;

&lt;p&gt;Before walking out the door with a remote session live, verify these five points:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;commandmate remote status&lt;/code&gt; shows &lt;code&gt;Pairing: consumed&lt;/code&gt; (no unused pairing link sitting around).&lt;/li&gt;
&lt;li&gt;You chose &lt;code&gt;--auth all&lt;/code&gt; if you do not need unauthenticated local CLI access while away.&lt;/li&gt;
&lt;li&gt;Any Auto-Yes toggle has a short expiry (&lt;code&gt;1h&lt;/code&gt; or &lt;code&gt;3h&lt;/code&gt;) and stop patterns configured for destructive commands.&lt;/li&gt;
&lt;li&gt;Your host machine's power settings will not immediately sleep mid-build.&lt;/li&gt;
&lt;li&gt;You remember to run &lt;code&gt;commandmate remote stop&lt;/code&gt; when your away window ends.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In &lt;strong&gt;Part 3&lt;/strong&gt;, we step beyond controlling individual sessions and look at how a 5-role AI agent team, task contracts, and local verification gates ship real releases on a 468k-LOC codebase.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Meta note: This draft was structured and verified against &lt;code&gt;CommandMate v0.55.0&lt;/code&gt; documentation and source files with AI assistance, then reviewed and edited by hand.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>cloudflare</category>
      <category>tailscale</category>
      <category>devops</category>
    </item>
    <item>
      <title>CommandMate: Maximize AI Coding Throughput Away from Your Desk</title>
      <dc:creator>Kewton</dc:creator>
      <pubDate>Sun, 22 Nov 2026 15:48:56 +0000</pubDate>
      <link>https://dev.to/kewton/commandmate-maximize-ai-coding-throughput-away-from-your-desk-4d83</link>
      <guid>https://dev.to/kewton/commandmate-maximize-ai-coding-throughput-away-from-your-desk-4d83</guid>
      <description>&lt;p&gt;AI coding agents can now run for tens of minutes—or hours—on a single task. Most developers, however, cannot sit continuously in front of a desktop monitor waiting to answer prompts, inspect files, and verify whether "I'm done" actually passed tests.&lt;/p&gt;

&lt;p&gt;Even when you stay at your desk, running multiple CLI sessions quickly fractures your focus across terminal tabs, file explorers, image viewers, and separate editor windows. When you step away, sessions stall silently on confirmation prompts until you return.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CommandMate&lt;/strong&gt; (MIT-licensed, running on your own machine, checked as of &lt;code&gt;v0.55.0&lt;/code&gt;) solves both problems by turning the coding agent CLIs you already use into one self-contained workspace. You stay in control of the direction and approvals—at your desk or from your phone—while everything from prompt to file inspection finishes inside CommandMate.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Series: Building CommandMate&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What is CommandMate? &lt;em&gt;(This post)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/kewton/control-local-ai-coding-agents-from-your-phone-tailscale-cloudflare-mna"&gt;Mobile Workflow with Tailscale &amp;amp; Cloudflare Tunnel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Autonomous AI Coding Agent Team &lt;em&gt;(Coming soon)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Persistent Memory &amp;amp; Automated Retrospectives &lt;em&gt;(Coming soon)&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Want to try CommandMate in 1 minute? Run &lt;code&gt;npx commandmate@latest&lt;/code&gt; locally or paste the setup prompt in Zero-Friction Setup into your coding agent, or visit &lt;a href="https://github.com/Kewton/CommandMate" rel="noopener noreferrer"&gt;Kewton/CommandMate&lt;/a&gt;.&lt;/p&gt;


&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Scope and Prerequisites
&lt;/h2&gt;

&lt;p&gt;This post introduces the core philosophy, minimal setup, and everyday features of CommandMate for individual developers using CLI coding agents (such as Claude Code, Codex, or Command Code).&lt;/p&gt;

&lt;p&gt;Prerequisites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OS&lt;/strong&gt;: macOS, Linux, or Windows (WSL2; native Windows is not supported because CommandMate builds on &lt;code&gt;tmux&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime&lt;/strong&gt;: Node.js &lt;code&gt;v22+&lt;/code&gt;, &lt;code&gt;npm&lt;/code&gt;, &lt;code&gt;git&lt;/code&gt;, and &lt;code&gt;tmux&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own CLI subscription or API access&lt;/strong&gt;: Bring your existing accounts (BYOS); CommandMate does not resell tokens or wrap models behind another billing layer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What this post does &lt;em&gt;not&lt;/em&gt; cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remote tunnel configuration and mobile security checklists (covered in Part 2)&lt;/li&gt;
&lt;li&gt;Multi-agent 5-role team orchestration and verification gates (covered in Part 3)&lt;/li&gt;
&lt;li&gt;Cross-session typed memory and automated retrospectives (covered in Part 4)&lt;/li&gt;
&lt;li&gt;Replacing your CI or test suite—running agents in parallel without checks only multiplies review effort&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Three Bottlenecks Away from Your Desk
&lt;/h2&gt;

&lt;p&gt;When I first shifted from single-session prompting to running multiple coding agents, three practical bottlenecks showed up almost immediately:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You cannot sit at the desk for hours.&lt;/strong&gt; Work blocks are fragmented by day jobs, meetings, or family life. When an agent pauses on a question 10 minutes after you step away, the session sits idle until you return.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Idle and waiting look identical from the outside.&lt;/strong&gt; With several sessions running in parallel, you spend more time polling terminal tabs to check which agent is still thinking and which one is blocked on a &lt;code&gt;y/n&lt;/code&gt; prompt than actually steering the work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context switching breaks the flow, and summaries are not evidence.&lt;/strong&gt; Copying file paths out of a terminal to open them in an editor, hunting down generated screenshots or videos in Finder, or trusting an agent's "all done" message without inspecting diffs adds friction at every turn.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;During an 8-day family trip across five prefectures—without opening my laptop once—I tested what happens when those bottlenecks are removed. By filing noticed ideas and bugs into Issues and checking status from my phone for 1–2 minutes once or twice an hour, &lt;strong&gt;109 Issues were filed and 95 were closed during the trip&lt;/strong&gt; across three repositories (75 of them closed the same day, with a median turnaround of 3.7 hours).&lt;/p&gt;

&lt;p&gt;That experience convinced me to optimize for &lt;strong&gt;decision throughput in small time windows&lt;/strong&gt; rather than uninterrupted hours at a desk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Core Design Philosophy: Self-Contained and Non-Invasive
&lt;/h2&gt;

&lt;p&gt;CommandMate is built around four design choices.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Everything Finishes Inside CommandMate
&lt;/h3&gt;

&lt;p&gt;A core goal of CommandMate is that you do not need to bounce between tmux panes, an IDE, and file viewers just to review an agent's turn.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terminal / Chat Surface Toggle (&lt;code&gt;Cmd/Ctrl + Shift + M&lt;/code&gt;)&lt;/strong&gt;: Switch any split seamlessly between the raw &lt;code&gt;tmux&lt;/code&gt; terminal screen (for TUI pickers and pagers) and a structured &lt;strong&gt;Chat&lt;/strong&gt; view where tool calls fold into expandable chips.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Direct File Navigation from Chat &amp;amp; File Tree&lt;/strong&gt;: File paths referenced in agent Markdown responses link directly into the built-in &lt;strong&gt;File Tree&lt;/strong&gt; and &lt;strong&gt;File Viewer&lt;/strong&gt; inside the same window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built-in Image and Video Viewing&lt;/strong&gt;: When an agent generates or edits images or screen recordings, CommandMate renders them inline in chat and in dedicated viewers without leaving the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Desktop Parity on Your Phone&lt;/strong&gt;: Everything you can do on desktop—switching sessions, viewing files, checking images or logs, answering prompts, and managing notes—is also available in the mobile web UI (explored in detail in Part 2).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frsafxmlb0ut1ix9ser49.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frsafxmlb0ut1ix9ser49.png" alt="CommandMate desktop UI showing the branch sidebar on the left, Chat surface with clickable file links and folded tool chips in the center, and the File Tree panel on the right" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Don't Get in the Way of the Agents (BYOS)
&lt;/h3&gt;

&lt;p&gt;Frontier coding CLIs evolve every week. Instead of re-implementing an agent loop from scratch and locking you into custom system prompts, CommandMate launches the official CLIs you already use inside &lt;code&gt;tmux&lt;/code&gt; sessions—supporting 8 agent families (&lt;code&gt;claude&lt;/code&gt;, &lt;code&gt;codex&lt;/code&gt;, &lt;code&gt;gemini&lt;/code&gt;, &lt;code&gt;vibe-local&lt;/code&gt; for Ollama, &lt;code&gt;opencode&lt;/code&gt; 1.x &amp;amp; V2, &lt;code&gt;copilot&lt;/code&gt;, &lt;code&gt;antigravity&lt;/code&gt;, and &lt;code&gt;command-code&lt;/code&gt;, as of &lt;code&gt;v0.55.0&lt;/code&gt;).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; For Google Antigravity (&lt;code&gt;agy&lt;/code&gt;), consumer-plan Terms of Service restrict driving it via third-party software or other agents. CommandMate enforces an explicit declaration (&lt;code&gt;CM_ANTIGRAVITY_USAGE=api-key&lt;/code&gt; or &lt;code&gt;enterprise&lt;/code&gt;) before allowing agent-driven routing or schedules on &lt;code&gt;agy&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. Clean Isolation via Git Worktree
&lt;/h3&gt;

&lt;p&gt;Each task or branch gets its own Git worktree and dedicated &lt;code&gt;tmux&lt;/code&gt; sessions. Two agents working on separate Issues never overwrite each other's working tree, and each worktree maintains its own session state, notes, and history.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Three Progressive Levels—Stop Where You Need
&lt;/h3&gt;

&lt;p&gt;CommandMate scales with how much coordination you actually want:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Level&lt;/th&gt;
&lt;th&gt;What CommandMate does&lt;/th&gt;
&lt;th&gt;Your role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1 — Parallel&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Runs several agent CLIs side by side from one place with waiting alerts&lt;/td&gt;
&lt;td&gt;Operator: answer each agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;2 — Delegate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Hands over Issues as task contracts and decides completion via repo checks&lt;/td&gt;
&lt;td&gt;Tech lead: define scope and accept passing PRs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3 — Manage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Coordinates a 5-role team through a PM agent with Milestone tracking&lt;/td&gt;
&lt;td&gt;Owner: set direction and approve decisions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most solo developers only need &lt;strong&gt;Level 1 or Level 2&lt;/strong&gt;. Nothing forces you to climb to Level 3 unless your throughput demands it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero-Friction Setup: Let Your Agent Install It
&lt;/h2&gt;

&lt;p&gt;If you just want to try CommandMate interactively in a few seconds without a global install, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx commandmate@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For daily use, the fastest setup is to let your existing coding agent (Claude Code, Codex, or Command Code) walk through the official setup guide with you, asking your confirmation before installing anything or changing network access:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Read https://kewton.github.io/CommandMate/setup.md and help me set up CommandMate on this machine. Explain each step before you run it, and ask me before you install anything or open access from the internet.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you prefer installing manually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g commandmate
commandmate init --defaults
commandmate start --daemon
commandmate status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;code&gt;http://127.0.0.1:3000&lt;/code&gt; in your browser (use &lt;code&gt;127.0.0.1&lt;/code&gt; rather than &lt;code&gt;localhost&lt;/code&gt;, since CommandMate binds IPv4 loopback by default).&lt;/p&gt;

&lt;h2&gt;
  
  
  Everyday Core Features
&lt;/h2&gt;

&lt;p&gt;Once a repository is registered under &lt;strong&gt;Repositories -&amp;gt; Add Repository&lt;/strong&gt;, your daily loop stays lightweight from both the web UI and CLI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Managing Sessions and Answering Prompts
&lt;/h3&gt;

&lt;p&gt;Each worktree in the sidebar displays a live status dot and a &lt;strong&gt;Ready for work&lt;/strong&gt; badge when an agent finishes a turn or blocks on a confirmation prompt—separately from sessions still generating output.&lt;/p&gt;

&lt;p&gt;From the CLI (or scripts), the Level 1 primitives map directly to the UI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# List worktrees and session status&lt;/span&gt;
commandmate ls

&lt;span class="c"&gt;# Send an instruction to a specific instance in a worktree&lt;/span&gt;
commandmate send &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;worktree-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Investigate issue #42 and propose a fix"&lt;/span&gt; --instance claude

&lt;span class="c"&gt;# Inspect current output or answer a waiting prompt&lt;/span&gt;
commandmate capture &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;worktree-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --instance claude
commandmate respond &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;worktree-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"yes"&lt;/span&gt; --instance claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Scheduled Execution via &lt;code&gt;CMATE.md&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;For recurring checks, overnight runs, or morning triage while you are away from your desk, CommandMate includes built-in scheduled execution controlled by a &lt;code&gt;CMATE.md&lt;/code&gt; file placed at the root of a worktree.&lt;/p&gt;

&lt;p&gt;CommandMate polls &lt;code&gt;CMATE.md&lt;/code&gt; every 60 seconds and executes matching cron entries directly, recording outputs in &lt;strong&gt;Execution Logs&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Schedules
&lt;/span&gt;
| Name | Cron | Message | CLI Tool | Enabled | Permission |
| --- | --- | --- | --- | --- | --- |
| morning-triage | 0 8 * * 1-5 | Summarize open PR failures and blocked worktrees | claude | true | plan |
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This lets basic automation live as a plain Markdown table inside the repository rather than external cron scripts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What CommandMate Does Not Replace—and Next Steps
&lt;/h2&gt;

&lt;p&gt;CommandMate is a local workspace and coordination layer, not magic:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It does not keep running as a cloud service&lt;/strong&gt;: If your machine reboots or sleeps, &lt;code&gt;tmux&lt;/code&gt; processes stop; what survives is the repository, DB state, and logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not write your tests&lt;/strong&gt;: Parallel agents without automated lint, typecheck, and test suites only push review overhead onto you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not silently approve destructive actions&lt;/strong&gt;: You decide when to enable opt-in guardrails like time-boxed Auto-Yes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Try This Today (3 Steps)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;npx commandmate@latest&lt;/code&gt; (or install globally via &lt;code&gt;npm install -g commandmate&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Register one repository that already has tests, and open its Chat surface + File Tree.&lt;/li&gt;
&lt;li&gt;Run a second session (such as Codex alongside Claude Code) on a separate worktree and check how switching between them feels without touching raw &lt;code&gt;tmux&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In &lt;strong&gt;Part 2&lt;/strong&gt;, we will walk through exposing this local workspace safely to your phone using &lt;code&gt;commandmate remote&lt;/code&gt; (Tailscale vs. Cloudflare Tunnel), using mobile File Tree / Notes without losing desktop speed, and setting boundaries for Auto-Yes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Meta note: The outline and factual verification of this article against the &lt;code&gt;CommandMate v0.55.0&lt;/code&gt; codebase were prepared with AI agent assistance, then reviewed and edited by hand.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
