Show HN: Clux – Simple session manager for Claude Code

https://news.ycombinator.com/item?id=46890095
by zackham • 6 months ago
1 0 6 months ago

I juggle 5-6 Claude Code projects and kept losing context when switching between them or when a terminal died. Built clux to fix that.

It wraps tmux to give you named, directory-scoped sessions with automatic context restoration via `claude --resume`. Start with `clux new api`, detach whenever, `clux attach api` later. Survives terminal crashes, reboots, whatever.

Has a TUI for browsing sessions and a streaming API (`clux prompt api "run the tests" --json`) that outputs NDJSON in real-time. I use it to control sessions from a Telegram bot.

Python, ~2k lines. Only needs tmux and the Claude CLI.

https://github.com/zackham/clux

Related Stories

Loading related stories...

Source preview

news.ycombinator.com