Inspiration
Developers now run several Claude Code sessions at once, each in its own terminal tab. The agents keep working. A person can only watch one or two. A session sits on a permission prompt and nobody notices. Switching tabs means reconstructing what that session was doing. Starting a new one is easier than finishing an old one, so half-done work piles up, and every new session starts from zero.
We entered HarborHack's Agent In The Loop challenge because that is the wall we were hitting ourselves constantly in our day to day work.
The agents scale. The human's attention does not.
The better explanation is here in this deck.
What it does
Hydra is a macOS app that puts those sessions on a Kanban board. Each card is a live Claude Code session in its own git worktree. You work one card at a time in the cockpit. Its headline shows the goal, the progress, and Claude's last message. When you answer or approve, Hydra moves you to the next session that needs you, and the one you left keeps running. A work-in-progress limit blocks new sessions until one finishes. When a slot opens, Hydra drafts the next backlog item's opening prompt and starts it after you confirm. That backlog is a context repository: markdown in git that every session reads and updates.
How we built it
We started by defining a clear product spec with a product overview, clear product goals, features, and user journeys. This laid a clear foundation to allow us to build quickly with our agent teammates on the same page as us. Claude wrote the spec and the architecture with us: the product goals, 11 features, 9 user journeys, and the architecture decisions. It then implemented and tested the app in two parallel workstreams, one for each of us. We kept direction, product calls, and review. Claude drafted, built, tested, and kept CI running.
Hydra is an Electron app (what claude chose). The renderer is React and xterm.js, with one real terminal per card. The main process owns the cards, spawns each session with node-pty, and gives it a git worktree. Each session reports its own state through Claude Code hooks over a local Unix socket. Hydra adds those hooks with --settings, alongside the user's own hooks. A permission request marks the card blocked and moves it up the queue. When a turn ends, Claude's last message becomes the headline. When the goal is met, the session runs hydra done.
Challenges we ran into
Claude session limits. Running two main workstreams with many sub-streams at once put us in the same spot as our users: a session would sit and wait while we were in the other session in our lane. PRs to review piled up so we would need to shift focus back to finish work and coordinate deployments.
Accomplishments that we're proud of
In about 40 hours we landed 280 commits, 34 end-to-end specs, 13 native test suites, and CI on macOS and Linux. The key reason for the development speed up was taking the time to define a clear spec up front. The work-management loop is in the app: session cards, the cockpit, priming headlines, the attention queue, and the WIP limit. When a slot opens, Hydra pulls the next backlog item and primes the session. The end-to-end tests drive a fake claude through real hook sequences, so the board's behavior is checked without a live model. The testing is strong and was a focus during development because the tests are just as important if not more important than then code.
What we learned
Writing the spec and the architecture decisions first gave every session great context. A fake claude let the two lanes build against the hook contract without waiting on a live model. And we became the bottleneck. Juggling our own sessions is the problem Hydra is built to solve.
What's next for Hydra
We will start to use the application on a day to day basis to identify usability improvements and define a clear place for other users to download the installer and automate the process of updating
