clued

clued / Keep running after closing

Close the terminal, keep Claude working

Closing the window of clued, a terminal chat app for Claude Code, or an SSH connection dropping, leaves the session running: Claude's turn, its agents and its background commands. You get a notification when Claude asks you something, and clued in the same folder brings the session back, with a line marking what happened while you were away.

What does Claude Code offer?

Agent view, in research preview: claude --bg starts a session in the background, claude agents lists your background sessions, and claude attach <id> opens one in your terminal. A separate supervisor process runs them, so they keep working with no terminal open, and detaching never stops them.

clued does the same for its own sessions, by default, with no flag.

Source: Claude Code docs, Manage multiple agents with agent view.

Leaving and coming back

bash
clued                  # this folder's session running in the background, else a new oneclued new              # a new session in this folderclued ls               # the sessions running in the backgroundclued attach <id>      # bring one back from any folderclued stop <id>        # stop one (asks first while Claude works)

Which sessions are running?

clued ls lists them, one row each: their state (waiting on you, with the question; working; done, with how many replies you haven't read; idle), for how long, the folder, the title, the cost, the memory it and its Claude Code take, and an id. Sessions never stop by themselves when idle, so each takes memory until you stop it.

Notifications with no window

A question, a permission or a card Claude waits on notifies you through the system's notifier (a Windows toast, Notification Center, notify-send), and a turn that ends notifies too, with the reply's first line. In Windows Terminal (WSL), a click on the toast opens the session's tab.

While you were away

Back in a session, a line across the chat, ── while you were away · 14 min ──, comes before the first thing that came meanwhile, and the chat opens there.

What keeps running, and what stops?

Closing the window, /detach, or k on the /exit card keeps the session running, Claude Code with it: agents, background commands and in-memory jobs go on. Stopping the session or a /reload stops Claude Code, and they stop with it: a background agent that was cut off shows ■ stopped, with ▶ continue, and background commands show as stopped, with ↻ run again. On Linux distributions that stop your processes as you log out, clued runs each session in a systemd scope of its own, which logind leaves running.

See also: watching agents and background commands live. Keeping it running, in the docs

Get clued

bash
git clone https://github.com/haytham-breaka/clued.git ~/src/cluedmkdir -p ~/.local/binln -s ~/src/clued/bin/clued ~/.local/bin/clued

You need Claude Code, installed and logged in, Node 22.18 or later, git and bash. It runs on Linux and macOS, and on Windows through WSL. Then run clued in a project folder.

View on GitHub