{
  "id": 17694460,
  "title": "I kept losing my Claude Code sessions, so I wrote ccctl",
  "url": "https://urgent.news/2026/11/01/i-kept-losing-my-claude-code-sessions-so-i-wrote-ccctl",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-01T22:41:51.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/crux/i-kept-losing-my-claude-code-sessions-so-i-wrote-ccctl-3p8f"
  },
  "original_language": "en",
  "account": "Claude Code is a tool used by the writer throughout the day, often creating multiple sessions in various terminal windows, tabs, tmux panes, and screens. The writer faced two main issues: forgetting which session they had open and whether they had discussed a particular topic with Claude in another project. To address these issues, the writer created a shell helper called ccctl, which has since evolved into a single Go binary.\n\nccctl ps lists all running Claude Code sessions with their title and state. ccctl focus brings the targeted session to the forefront, whether it's an iTerm2 tab, Terminal.app window, or tmux pane. Tab completion uses the session titles, so there's no need to remember session IDs. ccctl find searches through all conversations in every project, and a search takes about a second, even with a 1.5 GB history from eight months of work.\n\nccctl ui provides a single screen overview of projects, sessions, and running sessions, similar to k9s. The writer can resume a session or jump to it while it's running. Renaming a project directory used to risk losing associated Claude Code history, but ccctl move addresses this issue by renaming the directory and preserving sessions, memory, settings, and prompt history. The --dry-run option shows the plan before implementation and refuses to proceed if Claude Code is still running in the directory.\n\nThe creator clarifies that ccctl is unofficial and not affiliated with Anthropic, as it reads files written by Claude Code in the ~/.claude/ directory, which are not officially documented. Updates to Claude Code could potentially break ccctl, requiring fixes. The tool is tested with Claude Code 2.1.316 on macOS and Linux, with no Windows support. The creator writes code using Claude Code, but also contributed to ccctl's development. It can be installed using brew or go install, and the code, documentation, and releases are available on GitHub under the MIT license. The creator welcomes issues and ideas, as they use ccctl daily and aims to improve it.",
  "summary": "I use Claude Code all day, which means a lot of sessions: one per project, sometimes three, spread over terminal windows, tabs, tmux panes and multiple screens. Two questions kept coming back. Where is that session I had? And didn't I already talk this through with Claude, a few weeks ago, in some other project? So I started writing small shell helpers. They grew, they got slow on big sessions,…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "XDA Developers",
        "title": "I used Claude Code to build an Android app that my family actually uses every day",
        "url": "https://urgent.news/2026/10/31/i-used-claude-code-to-build-an-android-app-that-my-family-actually",
        "published": "2026-10-31T14:30:20.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."
}