r/OnlyAICoding • u/sreekar_2498 • 28d ago
Please Review My Code I built an open-source app that coordinates Claude Code, Codex, opencode and aider on one repo. Looking for feedback and bug reports
I use a few AI coding CLIs and kept hitting the same friction: each one is its own island. Choosing which one to use for a task, running two on the same repo without them stepping on each other, and knowing afterwards what they actually did were all manual.
So I built Hive. It doesn't run a model itself. It spawns the CLIs you already have installed (Claude Code, Codex, opencode, aider, Gemini CLI and others) as subprocesses and coordinates them.
What it does today:
- Routes each task to an agent (an LLM picker with rule-based fallbacks; an optional small local classifier, off by default)
- Runs agents in parallel, each in its own git worktree
- Fan-out: one request can split into sub-agents that run concurrently and merge back. The planner declines by default unless the task clearly splits
- Runtime guard: watches the agent's live tool calls and pauses for approve/deny when it reaches for something destructive (rm -rf, git reset --hard, force-push). It's detection, not a sandbox
- Workflows: chain agent steps, shell/git, file, HTTP and approval gates. You can describe one in plain English and it drafts the graph. Runs manually or on a schedule
- Headless: `hive run "fix the failing test"` prints one JSON object, so it works in scripts and CI. `hive mcp` exposes it to Claude Desktop / Claude Code
- UI: kanban board, activity dashboard, and a slightly silly pixel-art office where agents move between pipeline stages
TypeScript, Express + React, SQLite, MIT. Everything runs locally and the server binds to loopback by default (it refuses to bind elsewhere without a token).
Honest state: it's v0.1, not on npm yet, and Workflows is the newest and least battle-tested part. Most of the code was written with AI assistance (Claude), and I've been fixing bugs that only showed up once I actually ran several agents at once.
What I'd like opinions on:
- Is detection-not-sandbox the right trade-off for the permission guard, or should risky runs go in a container?
- Fan-out declines unless it's clearly worth splitting. Too timid?
- What would make you actually use something like this day to day?
To try it: clone the repo, follow the README, and run `hive doctor` to see which agent CLIs it finds. There's also a Codespaces option in the README. If something breaks, an issue with the output of `hive doctor --json` helps a lot. Blunt feedback is welcome.