What Are AI Agents?
AI agents in Tesslate Studio are autonomous coding assistants powered by large language models. They do more than generate text; they can read your files, write code, execute shell commands, manage containers, and plan multi-step tasks. Each agent has a system prompt that defines its behavior, a set of tools it can call, and a model that powers its reasoning. Think of agents as programmers you can chat with. Describe what you want in natural language, and the agent figures out which tools to use, which files to modify, and how to get it done.Natural Language Input
Describe features, fixes, or changes in plain English
Tool Calling
Agents read files, write code, run commands, and more
Multiple Agent Types
Four architectures optimized for different tasks
Marketplace Ecosystem
Discover, install, and publish specialized agents
The Four Agent Types
Tesslate Studio provides four agent architectures. Each inherits from a sharedAbstractAgent base class and can be created through the factory pattern.
StreamAgent
Single LLM call, fast streaming output
- No tool calling; extracts code blocks from the response
- Ideal for quick code generation and prototyping
- Lowest token usage and cost
IterativeAgent
Multi-step loop with full tool support
- Think, Act, Observe loop with JSON-based tool calls
- Automatic error recovery and retry
- Great for file operations, shell commands, and multi-file changes
ReActAgent
Explicit Reasoning + Acting pattern
- Mandatory THOUGHT section before every action
- Structured observations after each tool execution
- Best for debugging, architecture decisions, and auditable reasoning
TesslateAgent
Full-featured production agent
- Native LLM function calling (no JSON-in-text parsing)
- Subagent spawning for focused subtasks
- Trajectory recording for debugging and analytics
- Context compaction for long conversations
- Planning mode for structured plans before execution
Most users start with TesslateAgent (the default) or IterativeAgent for general development. See Agent Types for a deep comparison.
How Agents Work
Agent Lifecycle
Every agent follows this high-level lifecycle:Initialization
The agent factory loads the agent configuration from the marketplace database, creates a scoped tool registry, substitutes system prompt markers (like
{project_name} and {mode_instructions}), and instantiates the correct agent class.Context Building
Before the first LLM call, the system assembles context: environment info, file listings, git status, chat history, and your message. This context helps the agent understand your project.
Execution Loop
The agent sends messages to the LLM and receives a response. If the response contains tool calls, the agent executes them (respecting edit mode permissions), collects results, and feeds them back for the next iteration. This loop continues until the task is complete.
Architecture Overview
Agent Tools
Tools are the actions agents can perform. Each tool has a name, description, parameter schema, and an async executor function. The ToolRegistry manages registration, lookup, and execution with edit mode control.- File Operations
- Shell Operations
- Project & Planning
- Graph Operations
| Tool | Description |
|---|---|
read_file | Read the contents of any file in the project |
write_file | Create a new file or overwrite an existing one |
patch_file | Surgical search/replace edit with fuzzy matching |
multi_edit | Apply multiple patches to a single file atomically |
Edit Modes
Edit modes control how much autonomy an agent has when executing tools. You can switch modes at any time using the mode button in the chat input.- Ask Before Edit (Default)
- Allow All Edits
- Plan Mode
Dangerous tools (file writes, shell commands) require your approval before executing. Read operations proceed without interruption.When a tool needs approval, you see three options:
- Allow Once: Approve this single operation
- Allow All: Approve this tool type for the rest of the session
- Stop: Cancel the operation
Quick Comparison
| Feature | StreamAgent | IterativeAgent | ReActAgent | TesslateAgent |
|---|---|---|---|---|
| Tool Support | No (code blocks only) | Yes (full registry) | Yes (full registry) | Yes (native function calling) |
| Execution Loop | Single LLM call | Think, Act, Observe loop | Thought, Action, Observation | Native tool loop with trajectory |
| Error Recovery | None | Automatic retry | Automatic retry | Retry + context compaction |
| Reasoning Style | Implicit | Optional | Mandatory (explicit) | Flexible |
| Planning Mode | No | No | No | Yes |
| Subagents | No | No | No | Yes |
| Speed | Fastest | Moderate | Moderate | Moderate |
| Token Usage | Low | Medium | High | Medium |
| Best For | Quick UI generation | General development tasks | Debugging, architecture | Full-featured production work |
Agent Marketplace
The Marketplace is where you discover, install, and publish agents:- Official Agents: Built and maintained by Tesslate (Stream Builder, Tesslate Agent, React Component Builder, and more)
- Community Agents: Created by users (Code Analyzer, Doc Writer, Refactoring Assistant, Test Generator, and more)
- Specialized Agents: Focused on specific frameworks, languages, or tasks
Next Steps
Agent Types
Deep dive into each agent architecture
Using Agents
Practical guide to chatting with agents
Customizing Agents
Create and configure custom agents
Agent Marketplace
Browse and install specialized agents