{
  "id": 14488390,
  "title": "I let Claude Code open its own terminal sessions, and I watch every one of them",
  "url": "https://urgent.news/2026/10/14/i-let-claude-code-open-its-own-terminal-sessions-and-i-watch-every",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-14T16:28:46.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/solhun/i-let-claude-code-open-its-own-terminal-sessions-and-i-watch-every-one-of-them-46m9"
  },
  "original_language": "en",
  "account": "Claude Code, a macOS application that runs multiple coding assistants like Claude, Codex, and Gemini side-by-side, has been made free and open source under the MIT license. The app now includes a new feature where Claude Code can control itself. The video demonstrates Claude Code loading a skill, opening separate Claude sessions for each repository, assigning tasks, waiting for completion, and presenting results in a table. Each opened session appears in the sidebar in green, allowing the user to click into any session to take over manually.\n\nThe idea behind this feature is simple and can be replicated with minimal effort. It involves two main components: a local API that establishes real terminal sessions, and a skill that guides the agent on how to utilize this API. The API operates independently and is not hidden within other processes. It presents terminals visible on the screen, similar to what users are accustomed to.\n\nThe API is disabled by default and can be activated in the app's Settings menu under Agents > AI Control API. Once enabled, it listens on the loopback address 127.0.0.1:47821 and stores the API address and token in a file named ~/.climanager/control-api.json. This file is restricted to read-only permissions for the app and is removed when the app is closed.\n\nTo interact with the API, the skill uses a small CLI (Command Line Interface) that the agent calls with specific commands. For example, the command `node $CLI open ~/code/my-project --template claude-code --name \"AI: fix failing test\" --prompt \"fix the failing test\"` instructs Claude Code to open a terminal session for the project, apply a specific template, assign the task of fixing a failing test, and provide a prompt for guidance. Another command, `node $CLI wait last --timeout 300`, waits for the session to become idle and then prints the screen output. If the session doesn't become idle within 300 seconds, it indicates a timeout but does not constitute a failure. The command `node $CLI read last --tail --lines 120` displays the last 120 lines of the session's output, including any scrollback. Finally, `node $CLI release last` returns the session back to the app, allowing further interaction.\n\nThe skill's responses are categorized by exit codes to indicate different states. An exit code of 3 signifies that a menu or question is currently displayed on the screen. A code of 7 indicates that the wait operation timed out, but the session remains active. These codes help the agent make decisions based on the session's status rather than specific wording.\n\nClaude Code's new capability has been integrated into about two-thirds of the recent commits in the repository, including most of the API's development. The app is available for free on GitHub, and the accompanying skill can be added using the command `npx skills add woorichicken/climanager-session@climanager-session`.\n\nWhile the implementation is tailored for macOS, the same pattern can be applied to other terminals or operating systems. The author expresses interest in seeing similar implementations on different platforms and invites readers to explore the post, which was written with AI assistance and reviewed by the author.",
  "summary": "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. 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…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "XDA Developers",
        "title": "Claude, Gemini, and ChatGPT ship new models every week, and I finally stopped chasing every new release",
        "url": "https://urgent.news/2026/10/14/claude-gemini-and-chatgpt-ship-new-models-every-week-and-i-finally",
        "published": "2026-10-14T14:30:18.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}