Skip to content

AgentLattice

A TypeScript framework for agent loops, tools, permissions, tracing, and mailbox-backed teams.

Agent loop

Maintains conversation state, calls an Anthropic-compatible model, runs tools, and feeds results back to the model.

Custom tools

Define tools with Zod schemas, parsed inputs, typed handlers, and model-ready JSON Schema.

Permission callbacks

Approve or deny tool calls before execution, including shell and file operations.

Stable events

Consume system, assistant, user, stream_event, and result messages.

Supervisor delegation

Wrap another AgentLike as a model tool when a lead agent needs a temporary specialist.

Mailbox teams

Coordinate named members through durable work items, replies, status, and runtime-driven handoffs.

Terminal window
npm install agent-lattice zod

Install AgentLattice from npm as agent-lattice. It is intentionally independent from Claude Code: it does not require the Claude Code CLI, Ink UI, session storage, MCP runtime, or app runtime.