Mozaik is a TypeScript framework for
non-blocking AI agents

Humans, agents, observers, and tools share a single agentic environment — every participant streams typed context items in real time, none of them blocks the others.

A different shape of agentic system

Most frameworks orchestrate agents through rigid, sequential pipelines. Mozaik puts every participant inside the same shared environment and lets them stream context items in parallel.

A typed broadcast bus instead of rigid pipelines. Participants join() once and every item one produces is delivered to every other — no central scheduler.

Concurrency by default — no central scheduler

Every participant joins the same agentic environment and reacts to the items the others produce. Behaviors compose by reaction, not orchestration.

AgenticEnvironmentbroadcast bus
Reacts to items from other participants — turn a UserMessageItem into an inference run, a FunctionCallItem into a tool call.
ReactiveAgent
1import {
2 BaseAgentParticipant,
3 Participant,
4 ContextItem,
5 UserMessageItem,
6 FunctionCallItem,
7} from "@mozaik-ai/core"
8
9export class ReactiveAgent extends BaseAgentParticipant {
10 async onContextItem(
11 source: Participant,
12 item: ContextItem,
13 ): Promise<void> {
14 if (source === this) return
15
16 this.context.addContextItem(item)
17
18 if (item instanceof UserMessageItem) {
19 this.runInference(this.environment, this.context, this.model)
20 return
21 }
22
23 if (item instanceof FunctionCallItem) {
24 this.executeFunctionCall(this.environment, item)
25 return
26 }
27 }
28}

#Made with Mozaik

Mozaik is not validated on toy examples. We are dogfooding the framework on one of the most complex possible use cases: a production-grade vibe coding platform that generates, deploys, and evolves real software systems.

Spektrum SDK

By JigJoy Team

Spektrum is a vibe-coding SDK that generates applications from requests and returns a URL to the deployed app.

Build agents that don't wait on each other

Install Mozaik, join the environment, start streaming context items.