Build a team of specialized AI agents.

Instead of one do-everything assistant, define focused sub-agents, each with its own system prompt, its own curated set of tools, and (optionally) its own model. Your main chat agent can hand work off to them, you can call them over the REST API or MCP, or run them from your terminal and editor.

Download LumaBrowser - free See the API
Part of AI Chat's Agent Manager. Each agent has its own prompt, tools and model; delegate from chat or drive it over REST.

What a sub-agent is

Three things define a sub-agent. Set them once in the Agent Manager and the agent becomes a reusable, callable specialist, from chat or over the API.

1

A system prompt

Its persona and instructions. This is what makes a research agent behave like a researcher and an extraction agent behave like a parser, the standing brief it carries into every conversation. Only the agent's name is required; the prompt is how you make it a specialist.

2

A granted tool allowlist

Only the tools it is allowed to call, e.g. browser automation tools, timed task tools, or tools exposed by connected MCP servers. Anything outside the allowlist simply isn't available to that agent.

3

An optional pinned model

A specific local or cloud model the agent always runs on. Leave it unset and the agent uses the app default; pin it when a task wants a particular speed, cost, or capability profile.

Each sub-agent runs in its own isolated conversation using the same agentic loop that powers AI Chat; the model reasons, calls tools, reads results, and continues until the task is done. The isolation means one agent's context never bleeds into another's.

Why constrain an agent

It comes down to focus, safety, and cost. A narrow tool grant gives the model fewer ways to go wrong and fewer tokens to spend describing tools it will never use.

Research agent

Can only search and read. It gathers and summarizes; it can't click, submit, or mutate anything, by construction.

Extraction agent

Only gets DOM and table tools. Its whole job is pulling structured data out of a page, so that's all it can reach for.

QA agent

Pinned to a cheap, fast model. High-volume checks run at a fraction of the cost of a frontier model you'd use for harder work.

Narrow tool grants reduce mistakes and token cost: every tool you don't grant is one the model can't misuse and doesn't pay to keep in context.

Give an agent its own knowledge

A prompt and a tool grant define how an agent thinks. Its own knowledge base defines what it knows. Attach documents to an agent and it answers from your files, with citations, instead of guessing.

1

Add documents

Open an agent and add PDFs, Markdown, HTML, or text files, or a whole folder at once. They're parsed, chunked, and indexed locally, nothing is uploaded.

2

It searches automatically

Once an agent has documents, it gains a search_knowledge_base tool scoped to just its own files and searches before answering.

3

Isolated per agent

Each agent's knowledge base is private to that agent. One specialist's documents never bleed into another's context.

Retrieval runs on-device with full-text BM25 search, no embeddings API, no vector cloud. See Knowledge Base for the full picture.

Delegate from chat or call by API

Sub-agents are reachable from several places. Use them interactively through your main chat agent, wire them into anything that can speak HTTP or MCP, or work with them in a terminal or editor.

From the main chat

The model delegates for you

Your main chat agent finds who it can hand work to with list_delegates, then starts a task with delegate_task: Code, Game or any of your agents. The task runs as a sub-conversation nested under your chat, so you stay where you are, can open it to watch, and the chat can send it a follow-up later.

From your code

Drive them over REST

Externally, drive any sub-agent over a plain REST API under /api/ext/agent-manager on the gateway at port 3000. Create agents, list grantable tools, manage each agent's documents, and run a conversation, with streaming SSE or a single JSON response. See the endpoint reference below.

From your terminal or editor

luma <agent> and luma acp

Run luma reviewer and the agent called reviewer works in the folder you are in, with its own model, tools and knowledge, streaming in the terminal. luma acp serves your agents to editors that host Agent Client Protocol agents, JetBrains Air and Zed, so they answer in the editor's own chat panel.

Between machines

Export and import

Export an agent as a single .agent.json bundle with its prompt, tools, model and knowledge-base documents, and import it on another install. Anything the new machine lacks (a tool, a model) comes back as a warning instead of a failed import.

REST API

Base path /api/ext/agent-manager. Manage the agent roster, inspect the tools you can grant, and run a conversation against any agent.

Endpoint Does Body / notes
GET /agents List all defined agents. -
POST /agents Create an agent. name* (unique), description, systemPrompt, tools[], modelRef
PUT /agents/:id Update an existing agent. Same fields as create.
DELETE /agents/:id Delete an agent. -
GET /tools List grantable tools, grouped. Use the returned tool names in tools[] when creating an agent.
GET /agents/:id/export Export an agent as a bundle. A luma-agent JSON file with the agent and its knowledge-base documents.
POST /agents/import Import a bundle. The exported JSON as the body. Returns the agent and any warnings.
GET /agents/:id/kb List the agent's documents. -
POST /agents/:id/kb Add documents. paths[] (or path) of local files or folders.
DELETE /agents/:id/kb/:docId Remove a document. -
POST /agents/:id/chat Run the agent. message*, images[], stream (default true). Streams SSE events agent.start, agent.reasoning, agent.delta, agent.tool, agent.artifact, then agent.done or agent.error; or returns { success, agent, response, artifacts } when stream:false.

Fields marked * are required. :id is the agent's id or its name. tools[] takes tool names from GET /tools; modelRef is optional and falls back to the app default when omitted or when the pinned model is no longer installed.

# Create a Research Agent: own prompt, narrow tool grant.
curl -X POST http://127.0.0.1:3000/api/ext/agent-manager/agents \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Research Agent",
    "description": "Searches and reads; never mutates pages.",
    "systemPrompt": "You are a focused research assistant. Use only search and read tools. Gather sources, then summarize concisely with citations.",
    "tools": ["web_search", "navigate", "get_source", "search_knowledge_base"]
  }'

# Tool names come from GET /tools. Add "modelRef" to pin a model;
# leave it out to use the app default.
# Run the agent with a single JSON response (no streaming).
curl -X POST "http://127.0.0.1:3000/api/ext/agent-manager/agents/Research%20Agent/chat" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Find three recent benchmarks comparing local LLM inference speeds and summarize them.",
    "stream": false
  }'

# Omit "stream" (defaults to true) to receive SSE:
#   agent.start      -> run begins
#   agent.reasoning  -> the model's thinking, if it shows any
#   agent.delta      -> streamed output chunks
#   agent.tool       -> a tool call and its result
#   agent.artifact   -> an artifact the agent made
#   agent.done       -> final { response, artifacts }  (or agent.error)

MCP tools

Two MCP tools let any MCP host, Claude Desktop, Claude Code, other editors and agents, delegate to your sub-agents. Discover them, then hand work off. (Inside LumaBrowser's own chat, list_delegates and delegate_task do this job with a nested sub-conversation.)

list_agents

Discover which sub-agents exist so the caller knows who it can delegate to.

Args: none
Returns: agents - a list of { name, description, knowledgeBaseDocs }.

chat_with_agent

Hand a task to a named sub-agent and get its answer back.

Args: agentName*, message*, images[]
Returns: { agent, response, artifacts }.

Together these turn your roster of specialists into callable tools: a host lists the agents, picks the right one, and delegates, without you wiring up anything per-agent.

Give every job to the agent built for it

Define your specialists once, then delegate from chat or drive them over REST and MCP. LumaBrowser is free and runs locally, so your prompts, tools, and models stay on your machine. Want to compose them with other capabilities? Browse the extensions and the full API reference, or start from the overview.

Download LumaBrowser - free Full API reference