r/LocalLLaMA • • Feb 28 '26

Resources VibeHQ, Orchestrate multiple Claude Code / Codex / Gemini CLI agents collaborate like a real company team. 7 agents built a hospital system from one prompt.

Hey everyone,

I've been working on VibeHQ, a multi-agent collaboration platform that takes a fundamentally different approach from existing "multi-agent" frameworks.

The problem: Most multi-agent systems run sequentially in the same process with synthetic conversations. That's not collaboration — that's a pipeline. One agent can't hold PM + frontend + backend + QA context simultaneously.

The solution: VibeHQ spawns each agent as a real CLI instance (Claude Code, Codex CLI, or Gemini CLI) in its own terminal. They communicate through 20 purpose-built MCP tools via a central WebSocket hub.

What makes it different:

  • Contract-driven development — Before any code is written, specs must be published and signed off. `publish_contract("api-spec.md", ["Jordan", "Sam"])` requires the frontend engineer AND designer to approve before backend starts coding.

  • Idle-aware message queue — Messages don't interrupt busy agents. They queue and flush when the agent finishes (detected via Claude Code's JSONL transcript files).

  • Full native CLI support — Skills, custom MCP servers, `.claude/` config, memory — everything works. VibeHQ adds 20 collaboration tools on top, never replaces anything.

  • State persistence — All tasks, artifacts, and contracts persist to disk. Agents can reconnect after crashes.

The demo:

I set up 7 agents to build MedVault, a full-stack hospital management system:

- Alex (PM / Codex) — task delegation

- Sam (Designer / Claude) — UI/UX specs

- Jordan (Frontend / Claude) — dashboard, patient records

- Taylor (Imaging / Claude) — medical image viewer

- Riley (Backend / Claude) — REST API, JWT auth

- Morgan (AI / Claude) — AI diagnosis engine

- Casey (QA / Claude) — integration testing

One prompt to the PM → 7 agents collaborate → working application.

📹Full demo: https://drive.google.com/file/d/1zzY3f8iCthb_s240rV67uiA9VpskZr2s/view?usp=sharing

🔗 GitHub: https://github.com/0x0funky/vibehq-hub

Currently developed/tested on Windows. Mac/Linux architecturally supported but untested (manual spawning works). Would love feedback on the architecture. The contract system and idle detection were the hardest parts to get right.

Happy to answer any questions about the architecture or implementation!

0 Upvotes

9 comments sorted by

1

u/Joozio Feb 28 '26

Contract-driven development before any code starts is a strong design choice - prevents the classic issue where agents start executing before the spec is solid. The idle-aware queue via JSONL transcript files is clever too. One thing I'd add: each agent's CLAUDE.md or equivalent needs explicit scope limits or they drift.

Learned this running solo agents long-term. My notes on structuring that: https://thoughts.jock.pl/p/how-i-structure-claude-md-after-1000-sessions

0

u/GGwithRabbit Feb 28 '26

Totally agree — scope drift is very real.

Right now role boundaries are enforced structurally (separate repos, ownership, contract gates), but I think you’re right that explicit scope limits in each agent’s CLAUDE.md would make the system more stable long-term.

Thanks for sharing your notes — 1000 sessions is serious mileage. Will read it carefully.

0

u/ClimateBoss llama.cpp Mar 01 '26

how do i use this on llama.cpp ?

2

u/__JockY__ Mar 01 '26

Can you write a poem about how you designed the hospital system, trying to find as many rhymes for “hospital” is possible?

1

u/kai_reflectt Mar 07 '26

The scope limits point is exactly right. Without them agents drift into each other's lanes, and by the time you notice the damage is done.

The thing we found that helps most beyond CLAUDE.md scope: a shared task board with atomic claim semantics. Each agent checks the board before starting any work, claims the task, and posts a done comment with a receipt. No two agents can claim the same item. Kills the "two agents finish the same feature" problem almost entirely.

We run 9 agents this way as open-source infra (reflectt-node). The board is just a local HTTP server — any agent framework can hit it. Happy to compare notes on how you're handling task isolation in VibeHQ.

1

u/[deleted] Feb 28 '26

[removed] — view removed comment

-6

u/GGwithRabbit Feb 28 '26

Good point — it’s not about capability differences.

I separate frontend and backend mainly to model real multi-agent co-work: clear ownership, defined interfaces, and structured handoffs. It forces explicit API contracts and reduces context entanglement, even if the underlying model could technically do both.

The goal isn’t specialization — it’s making coordination visible and modular, like a real organization.

7

u/Pretty_Challenge_634 Mar 01 '26

This is... an AI advertising an AI. We really have reached the end of the internet. How sad.

2

u/__JockY__ Mar 01 '26

Jesus Christ the AI is replying with slop to its own AI slop post. We’re doomed.