threads

Reviewed at commit 07e752f

Caution: Starts separate Claude Code sessions in bypassPermissions mode by default, so they edit files and run commands without asking; /threads mode default changes this.

A lead chat creates real Claude Code sessions on chosen models, watches them live and steers them.

Made by
Prompt Advisers
What we checked

Lets your chat start separate Claude Code sessions (in hidden tmux terminals) or background agents on chosen models, then watch, message, interrupt and close them from a pane; they use your Claude login and tokens. It reads their transcripts and screens, keeps a registry, event log and plan records under ~/.claude/threads, and makes no network calls of its own. Plan phases write handoff files into the project.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (registers /threads, 21 mcp__threads__* tools and a 2 s ticker), command.run, tool.call for its own tools plus a pass-through tool.call wrapper that only records activity of its inline agents, tool.check (observes the decision and toasts when an inline agent asks; never changes it), turn.step (passes the chosen effort into its inline agents' requests and tracks cost), turn.start, turn.complete, prompt.submit (only drops its own stale plan-gate wake prompts), session.receive (records cross-session reports, passes them through) and ui.render for an AbovePrompt band and a Pane. Session threads are spawned with $.process.run as tmux -L cc-threads new-session ... claude --model --session-id --remote-control --settings {crossSessionInbound: accept, skipDangerousModePermissionPrompt: true when bypassing} --permission-mode, with the default mode bypassPermissions (userConfig defaultPermissionMode, /threads mode or per-thread permission_mode override it; disclosed in the README, the tool description and /threads help). Inline threads use $.agent.spawn and keep the lead chat's own mode. Other runtime calls: $.process.run for tmux capture-pane/send-keys/kill-session, claude auth status, git worktree add/remove/branch -D (removal only for a worktree with no changes and no commits), ps, tail, tee, mv, rm, mkdir, sleep, uuidgen and macOS open claude://code/<id>; $.fs read/write/list/stat; $.session.send/append/messages; $.prompt.submit (plan lead-gate wakes, and report wakes only when /threads autowake on); $.model.fork for a fork summary; $.tool.call TaskStop; $.store/$.state; $.ui toast/ask/open/copy. Approving a thread's permission prompt from the pane or /threads approve first asks the user with $.ui.ask. It never accepts folder trust: it only reads ~/.claude.json to check projects.hasTrustDialogAccepted. It reads ~/.claude/sessions/*.json and its threads' transcripts in ~/.claude/projects, and writes ~/.claude/threads/registry.json, events.jsonl (includes clipped message, report and approved-prompt text), inbox/ message files, plans/ records and, for a fork with include full, the whole lead conversation to forks/fork-*.md. Plan phases are told to write handoff files and LATEST.md in <project>/handoff and add handoff/ to .gitignore. The only $.http.fetch calls go to a local Unix socket (~/.claude/mcp/codex-cu/daemon.sock) of the companion codex-computer-use mod, when present, to list or release its sessions; the spawned sessions use Claude Code's own Remote Control (claude.ai). Idle finished threads are closed after 120 minutes (setting). The native-threads skill only tells Claude to open claude://code/new links and use the desktop session tools; it pre-approves nothing. Assumes macOS (open, brew install tmux hint). threads.mjs was truncated in the bundle; its remainder was read in full from the clone at the same commit, as was core.mjs; the tests and the prompt prose were not reviewed.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of threads
Made this mod? Add a badge to your README

modsforClaude badge for threads

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/threads.svg)](https://modsforclaude.com/mods/threads/)

← All mods