
Mozaik is a TypeScript runtime where AI agents coordinate dynamically through shared events.
Grounded in available product and source data
Defining exactly who talks to whom, in what order, before anything runs is how most multi-agent frameworks still work. Mozaik is a TypeScript runtime for concurrent AI agents built to skip that entirely, letting collaboration paths emerge dynamically rather than following a predetermined workflow.
Agent awareness is the foundation this depends on: agents can detect when teammates join or leave the environment, which enables dynamic task reassignment and lets other agents react to changes in the group rather than working from a stale assumption about who's available. Intelligent communication builds on that — agents decide autonomously when to communicate and who specifically to involve, sharing context selectively instead of broadcasting every update to every participant.
Parallel execution is what actually lets multiple agents work at the same time while staying coordinated, using shared context to avoid stepping on each other's work. None of this relies on manually wiring handoffs between agents in advance; the adaptive runtime figures out collaboration paths as work happens instead.
Under the hood, an event-driven core treats every message, tool call, reasoning step, and error as an event on a shared bus, with agents subscribing to whatever's relevant to them. Inference runs 'fire and forget,' so results come back as events without blocking the rest of a workflow, and error recovery is built in directly — onError and onParticipantError handlers capture failures, with retry logic and backoff strategies attempted before escalating. Mozaik is an open-source, MIT-licensed TypeScript library distributed via npm, built by JigJoy, and already powers Baro, a Claude agent orchestrator — worth checking directly for current API stability and documentation depth before betting a production system on it, since open-source infrastructure libraries can evolve quickly early on.
No — that's specifically what Mozaik avoids; collaboration paths emerge dynamically as agents decide autonomously who to involve, rather than requiring workflows or handoffs defined in advance.
No — parallel execution lets multiple agents work at the same time, coordinated through shared context rather than a strict sequential handoff between them.
Not automatically — the error gets routed to dedicated handlers that attempt retries with backoff first, so one failure doesn't necessarily cascade into the rest of the system stopping.
Something installed directly — it's an open-source, MIT-licensed TypeScript library distributed via npm, not a hosted service, so there's no subscription or pricing tier to evaluate.
Somewhere in between is the honest answer — real usage exists, but confirming current API stability directly is a reasonable step before betting a critical system on a library still early in its lifecycle.