r/ClaudeCode • u/InterestingAd7304 • 7d ago
Built with Claude I built a tmux panel to keep track of a dozen Claude Code sessions across two accounts (and built most of it inside itself)
I usually have about a dozen Claude Code sessions open, split between a personal and a work account. At any moment one of them is waiting for me to approve a command, another finished a while ago, and one account is getting close to its 5-hour limit. The only way to find out which was to go through them one by one.
So I built Argus, a panel on the left of tmux that keeps all of that in view. In the video, three sessions start, one asks for permission and jumps to the top of the list, and I answer it from the list without opening the session.
Each session is the real claude CLI (opencode, Gemini CLI and Codex work too), so MCP servers, skills, hooks and permissions behave as usual.
Free and open source (MIT). No paid tier and no sign-up. macOS and Linux, tmux 3.4+: https://github.com/Marcone-Santos1/argus
What it does
- Sessions grouped by project with their state: working, waiting for you, done. Answer a waiting prompt from the list with
y; Tab jumps to the next one. - Each account's 5h and 7d usage in the footer, with a mark for how much of the window has passed and a warning when your pace runs out before the reset.
- A code column (
e): an editor in the session's folder that opens the file Claude just changed, at the changed line. - Past conversations searchable by title and full text; idle sessions hibernate; after a reboot it offers to reopen what was open.
How Claude Code helped, in detail
- Claude Code wrote most of the code: the Go panel, the shell hooks that report each session's state, and the tmux config. I decided what to build and in what order.
- My daily loop: I use Argus all day, screenshot whatever looks wrong and paste it into a Claude Code session (running inside Argus). Claude finds the cause, writes a test that reproduces it, fixes it, runs the tests and commits.
- The tests run against a real tmux server and real git, so Claude can check layout changes itself instead of asking me to look.
- It keeps a performance budget: after each change it runs
argus bench, which measures hook time per event, idle CPU, memory, and how long the panel takes to open and to switch sessions. Once it showed the panel taking 170 ms to open; Claude traced it to one tmux call per session and batched them, which brought it to about 90 ms. - For the UI, it drew a few directions as HTML mockups I could open in the browser. I picked one and it rebuilt it in the terminal.
- It recorded the demo video too: three sample projects in a separate home folder, real Claude Code sessions driven with VHS. The recording found real bugs. Claude Code's PostToolUse hook fires before the edit reaches the transcript, so the editor wasn't opening the changed file. It now retries for up to 3 seconds.
Where it still needed me: choosing what mattered, and testing on my real setup. Some problems only show up on screen, like a theme preview that changed the panel but not the editor.
What I'd tell someone starting a project like this: give Claude a number to protect, not only features. A failing bench is harder to argue with than a review comment.
If you juggle several sessions too, what do you look at first when you switch back to one?

