Show HN: Spin up 5 agents that don't trip over each other in 10 lines of code

3 lexokoh 0 8/16/2025, 2:50:26 PM github.com ↗
I’ve been playing with multi-agent systems and kept hitting the same issue: agents duplicate work, step on each other’s tasks, or return conflicting results.

So I built a tiny package: Kage Bus - https://github.com/kagehq/bus

It’s a lightweight message bus that makes sure only ONE agent handles each task.

Example:

```js import { createBus } from "@kagehq/bus";

const bus = createBus();

bus.on("task:research", (payload) => { console.log("Research agent:", payload.query); });

bus.on("task:research", (payload) => { console.log("Backup agent:", payload.query); });

bus.send("task:research", { query: "latest AI news" });

Right now it:

- Routes tasks to one agent (first-claim wins)

- Supports conflict resolution (last-writer-wins)

- Logs everything to agent-bus.log

Repo: https://github.com/kagehq/bus

npm: https://www.npmjs.com/package/@kagehq/bus

It’s just an MVP, but I’d love feedback from folks experimenting with multi-agent workflows: Is this useful? What features would make orchestration actually production-ready?

Comments (0)

No comments yet