Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lvndry/jazz/llms.txt
Use this file to discover all available pages before exploring further.
What are agents?
Agents are the core execution units in Jazz. Each agent is an autonomous AI assistant with its own configuration, tools, and behavior. Think of an agent as a specialized AI worker with a specific role and set of capabilities. When you runjazz, you’re starting a conversation with an agent. That agent uses its configured LLM provider, tools, and persona to understand your request and execute tasks autonomously.
Agent anatomy
Every agent consists of:- Name and description: Human-friendly identifier and purpose
- LLM configuration: Which model provider and model to use
- Tool access: Which tools the agent can use (filesystem, git, web search, etc.)
- Persona: The agent’s behavior and expertise (general assistant, code reviewer, researcher, etc.)
- Working directory: Where the agent operates by default
Creating an agent
Create a new agent interactively:- Agent name: A unique identifier (e.g.,
my-dev-agent) - Description: What the agent does (e.g., “Helps with backend development”)
- LLM provider: OpenAI, Anthropic, Google, OpenRouter, etc.
- Model: The specific model to use
- Tools: Which capabilities to enable
Agent configuration
Agents are stored as JSON files in~/.jazz/agents/. Here’s an example configuration:
Configuration options
llmProvider
llmProvider
The AI provider to use. Options include:
anthropic- Claude modelsopenai- GPT modelsgoogle- Gemini modelsopenrouter- Access to 100+ modelsollama- Local models- And more (see Providers)
llmModel
llmModel
The specific model identifier. Examples:
claude-3-5-sonnet-20241022gpt-4ogemini-2.0-flash-expdeepseek/deepseek-chat
tools
tools
Which tools the agent can access:
["all"]- All available tools["fs-read", "fs-write", "git"]- Specific tools- Tool categories:
filesystem,git,web,shell, etc.
persona
persona
The agent’s behavior and expertise:
general- Versatile assistant (default)summarizer- Optimized for summarization- Custom personas from
~/.jazz/personas/
reasoningEffort
reasoningEffort
How much the model should “think” before responding:
disable- Standard modelow- Quick reasoningmedium- Balanced reasoninghigh- Deep reasoning
How agents work
When you give an agent a task, here’s what happens:1. Context building
The agent builds context from:- Your input message
- Conversation history
- Available tools and their descriptions
- Skills that can be loaded
- The agent’s persona instructions
2. Execution loop
The agent enters an autonomous loop:3. Tool execution
When the agent calls tools:- Read-only tools (reading files, searching) execute automatically
- Modifying tools (writing files, git commits) require approval
- Shell commands require approval unless auto-approved
4. Sub-agents
Agents can spawn sub-agents for specialized tasks:- Inherit the parent agent’s configuration
- Run without UI interruptions (no thinking indicators)
- Return results to the parent agent
- Are used for summarization, research, and other specialized tasks
Agent service API
The agent service provides programmatic access to agent management:The agent service uses Effect-TS for type-safe error handling and dependency injection.
Running agents
Interactive chat
One-off commands
In workflows
Agents can run unattended in workflows:Agent iteration limits
Agents have a maximum iteration count to prevent infinite loops:- Default: 50 iterations
- Configurable: Set
maxIterationsin workflow frontmatter or via API - What counts: Each LLM call + tool execution cycle is one iteration
Context window management
Agents automatically manage their context window:- Track token usage: Monitor input and output tokens
- Detect overflow: When approaching the model’s limit
- Summarize history: Use a summarizer sub-agent to condense old messages
- Continue execution: Resume with the condensed history
Best practices
Specialized agents
Create agents for specific roles:Tool selection
Give agents only the tools they need:- Research agents:
web-search,http-request - Code agents:
filesystem,git,shell - Writing agents:
filesystem(read/write) - Review agents:
filesystem(read-only),git
Model selection
- Complex reasoning:
claude-3-5-sonnet,gpt-4o,gemini-2.0-flash-thinking-exp - Fast tasks:
claude-3-5-haiku,gpt-4o-mini,gemini-2.0-flash - Long context:
gemini-2.0-flash-exp(1M tokens),claude-3-5-sonnet(200K) - Cost-effective:
deepseek-chat, OpenRouter free models
Next steps
Skills
Load specialized expertise into your agents
Workflows
Automate agents with scheduled workflows
Tools
Explore all available agent tools
MCP
Connect agents to external services