<?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: GYEONGHUN JEONG</title>
    <description>The latest articles on DEV Community by GYEONGHUN JEONG (@solhun).</description>
    <link>https://dev.to/solhun</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%2F4179029%2Fb24337da-d260-4773-af59-92297deeaa91.png</url>
      <title>DEV Community: GYEONGHUN JEONG</title>
      <link>https://dev.to/solhun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/solhun"/>
    <language>en</language>
    <item>
      <title>I let Claude Code open its own terminal sessions, and I watch every one of them</title>
      <dc:creator>GYEONGHUN JEONG</dc:creator>
      <pubDate>Wed, 14 Oct 2026 16:28:46 +0000</pubDate>
      <link>https://dev.to/solhun/i-let-claude-code-open-its-own-terminal-sessions-and-i-watch-every-one-of-them-46m9</link>
      <guid>https://dev.to/solhun/i-let-claude-code-open-its-own-terminal-sessions-and-i-watch-every-one-of-them-46m9</guid>
      <description>&lt;p&gt;I build CLI Manager, a macOS app for running Claude Code, Codex CLI and Gemini CLI side by side. This year I made it free and open source (MIT), and added the feature I now use every day: Claude Code can drive the app itself.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/r2sXv_q8M7g" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;In the video, Claude Code loads a skill, opens one Claude session per repo, hands out the tasks, waits for them and reports back in a table. Every session it opens shows up in the sidebar in green, so I can click into any of them and take over.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea is easy to copy
&lt;/h2&gt;

&lt;p&gt;You don't need my app for this. It is two pieces:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A local API that opens real terminal sessions.&lt;/strong&gt; Not a hidden subprocess, but the same terminals I use, visible on screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A skill that tells the agent how to use that API.&lt;/strong&gt; Open, type, wait, read, hand back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The agent gets a way to delegate work. I keep a window into everything it delegated.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works in CLI Manager
&lt;/h2&gt;

&lt;p&gt;The API is off by default. You turn it on in &lt;strong&gt;Settings › Agents › AI Control API&lt;/strong&gt;. The app then listens on &lt;code&gt;127.0.0.1:47821&lt;/code&gt; only and writes the address and a token to &lt;code&gt;~/.climanager/control-api.json&lt;/code&gt; (mode 600, removed when the app quits).&lt;/p&gt;

&lt;p&gt;The skill wraps the API in a small CLI that the agent calls:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CLI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; open ~/code/my-project &lt;span class="nt"&gt;--template&lt;/span&gt; claude-code &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;--name&lt;/span&gt; &lt;span class="s2"&gt;"AI: fix failing test"&lt;/span&gt; &lt;span class="nt"&gt;--prompt&lt;/span&gt; &lt;span class="s2"&gt;"fix the failing test"&lt;/span&gt;
node &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CLI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nb"&gt;wait &lt;/span&gt;last &lt;span class="nt"&gt;--timeout&lt;/span&gt; 300        &lt;span class="c"&gt;# wait until idle, print the screen&lt;/span&gt;
node &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CLI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nb"&gt;read &lt;/span&gt;last &lt;span class="nt"&gt;--tail&lt;/span&gt; &lt;span class="nt"&gt;--lines&lt;/span&gt; 120   &lt;span class="c"&gt;# include scrollback&lt;/span&gt;
node &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CLI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; release last                   &lt;span class="c"&gt;# hand it back to me; the session keeps running&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The exit codes carry the meaning, so the agent branches on them instead of on wording. &lt;code&gt;3&lt;/code&gt; means a question or a menu is on screen. &lt;code&gt;7&lt;/code&gt; means the wait timed out but the session is still running, which is not a failure.&lt;/p&gt;

&lt;p&gt;A few rules the skill keeps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Menus are answered with keys, never with a blind Enter.&lt;/li&gt;
&lt;li&gt;Once I click &lt;strong&gt;Disconnect AI&lt;/strong&gt;, the agent stops touching that session.&lt;/li&gt;
&lt;li&gt;Everything stays on loopback. Nothing leaves the machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you prefer MCP, the app serves the same actions there too (&lt;code&gt;open_session&lt;/code&gt;, &lt;code&gt;send_input&lt;/code&gt;, &lt;code&gt;wait_for_idle&lt;/code&gt;, &lt;code&gt;read_output&lt;/code&gt; and a few more).&lt;/p&gt;

&lt;h2&gt;
  
  
  How Claude helped
&lt;/h2&gt;

&lt;p&gt;About two thirds of the recent commits in the repo are co-authored with Claude Code, including most of this API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;App (free, macOS, MIT): &lt;a href="https://github.com/woorichicken/CLI_manager" rel="noopener noreferrer"&gt;https://github.com/woorichicken/CLI_manager&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Skill: &lt;code&gt;npx skills add woorichicken/climanager-session@climanager-session&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you build the same pattern on another terminal or OS, I would love to see it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post was written with AI assistance and reviewed by me.&lt;/em&gt;&lt;/p&gt;

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