<?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: cnshsliu</title>
    <description>The latest articles on DEV Community by cnshsliu (@cnshsliu).</description>
    <link>https://dev.to/cnshsliu</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%2F374632%2Fdf74c970-ff5b-4059-a475-857dd724f707.jpeg</url>
      <title>DEV Community: cnshsliu</title>
      <link>https://dev.to/cnshsliu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cnshsliu"/>
    <language>en</language>
    <item>
      <title>Three things I fixed so my terminal AI agent stops making me wait</title>
      <dc:creator>cnshsliu</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:34:34 +0000</pubDate>
      <link>https://dev.to/cnshsliu/three-things-i-fixed-so-my-terminal-ai-agent-stops-making-me-wait-1a77</link>
      <guid>https://dev.to/cnshsliu/three-things-i-fixed-so-my-terminal-ai-agent-stops-making-me-wait-1a77</guid>
      <description>&lt;p&gt;I've been building Tango, an open-source agent harness that runs in the terminal. You talk to it, it reads files, runs commands, and edits code. Using it every day, I found that the things that annoyed me most weren't about the model. They were the moments where either the agent or I was stuck waiting.&lt;/p&gt;

&lt;p&gt;Here are three fixes, with screenshots from a small demo project (a Rust + SQLite expense ledger). In the first two sections the model's replies are scripted so the demo is repeatable; the UI and tools are real. The third section is a real reply from glm-5.4. Many of the TUI's labels and key hints are in Chinese, which is why some text in the screenshots looks unfamiliar.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Starting a dev server no longer blocks the turn
&lt;/h3&gt;

&lt;p&gt;Ask an agent to run &lt;code&gt;npm run dev&lt;/code&gt; and the bash tool waits for a command that never exits, until the 120-second timeout kills it. For those two minutes the agent can't do anything else.&lt;/p&gt;

&lt;p&gt;Tango's &lt;code&gt;bash&lt;/code&gt; tool now takes &lt;code&gt;background: true&lt;/code&gt;. The command starts detached in its own process group. Tango waits about 2 seconds to catch commands that fail right away (port in use, typo), then returns an id like &lt;code&gt;p1&lt;/code&gt; with the pid and the first lines of output. The turn keeps going.&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%2F2uc39mvnsobt7jis0wyz.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%2F2uc39mvnsobt7jis0wyz.png" alt="Started in the background as p1, then the agent tests the endpoint in the same turn" width="800" height="603"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three tools manage it afterwards:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;tool&lt;/th&gt;
&lt;th&gt;what it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;process_logs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;last N lines of output plus state (&lt;code&gt;running 6s&lt;/code&gt;, &lt;code&gt;exited 1&lt;/code&gt;, &lt;code&gt;killed&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;process_stop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SIGTERM to the process group, SIGKILL 3 s later if it's still alive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;process_list&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;every background process this Tango started&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Limits: at most 8 at a time, each keeps the last 200,000 characters of output, and all of them are killed when Tango exits. Read-only mode refuses them.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Typing while the agent is busy
&lt;/h3&gt;

&lt;p&gt;When the agent is mid-task and I think of the next thing, I used to either wait or press Ctrl+C and restate both requests.&lt;/p&gt;

&lt;p&gt;Now Enter during a turn queues the prompt. Queued prompts go out in order when the turn ends.&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%2Frq3kabx54osak1utw6iy.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%2Frq3kabx54osak1utw6iy.png" alt="Two prompts queued while the agent is still pulling data" width="800" height="636"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/queue&lt;/code&gt; opens the queue: &lt;code&gt;d&lt;/code&gt; deletes an item, Enter merges the selected one into the running turn, &lt;code&gt;a&lt;/code&gt; merges all, &lt;code&gt;c&lt;/code&gt; clears.&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%2F3vpepqrz80662im64slh.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%2F3vpepqrz80662im64slh.png" alt="The /queue dialog" width="800" height="636"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If I forgot a detail ("round amounts to two decimals"), Alt+Enter adds the text to the running turn instead of queueing it; the model sees it on its next request. Ctrl+C stops the current reply and keeps the queue. If you want every busy Enter to work like Alt+Enter, run &lt;code&gt;/queue auto append&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Using a new model the day it ships
&lt;/h3&gt;

&lt;p&gt;When Zhipu's GLM Coding Plan started serving glm-5.4, I added it as &lt;code&gt;zhipu-plan/glm-5.4&lt;/code&gt;. It speaks the Anthropic protocol and reads its key from &lt;code&gt;ZHIPU_CODING_PLAN_API_KEY&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/model&lt;/code&gt; opens the picker. Typing filters it, Enter switches and saves the choice as the default. Model ids match fuzzily everywhere (case-insensitive subsequence), so &lt;code&gt;glm54&lt;/code&gt; finds it, and &lt;code&gt;tango -m glm54&lt;/code&gt; uses it for one run only.&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%2Fppuns6c7437lq9p9ex32.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%2Fppuns6c7437lq9p9ex32.png" alt="The model picker filtered to glm-5.4" width="800" height="625"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I asked it, in Chinese, to sum up this month's spending in one sentence. It listed the directory, found &lt;code&gt;ledger.db&lt;/code&gt;, queried and summed the entries, and answered: ¥799.30 across 7 entries, half of it on one ¥399 mechanical keyboard. This screenshot is unedited model output.&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%2Fn5y4lymulkfuyqoe0t9w.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%2Fn5y4lymulkfuyqoe0t9w.png" alt="glm-5.4's real reply" width="800" height="625"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Trying it
&lt;/h3&gt;

&lt;p&gt;Tango is MIT-licensed. It's China-first (DeepSeek, Kimi, Qwen, and GLM work with one API key on mainland endpoints, no proxy), and it also has presets for Anthropic, OpenAI, Gemini, xAI, OpenRouter, and a local model. It installs from source for now: Node 20+ for the core and Rust for the TUI. Steps are in the README: &lt;a href="https://github.com/cnshsliu/tango" rel="noopener noreferrer"&gt;https://github.com/cnshsliu/tango&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd like to hear what makes you wait when you use a coding agent. That's the list I work from.&lt;/p&gt;

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