Ask HN: What "developer holy war" have you flip-flopped on?
Ask HN: Why Is My Happiness Tied to My Productivity?
Show HN: Spin up 5 agents that don't trip over each other in 10 lines of code
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?
No comments yet