Skip to main content

What is an agent?

An agent is a configured Claude CLI instance with a specific role and set of tools. When you run an agent, muxAI spawns a claude process with the model, system prompt, MCP tools, and environment variables you defined. Agents are stored in the database and can be run on demand, on a schedule, or as part of a team.

Anatomy of an agent

Every agent has these core properties:
PropertyDescription
NameDisplay name (e.g. “News Analyst”)
RoleFunctional role (e.g. news-analyst, ceo)
ModelClaude model to use (Opus, Sonnet, or Haiku)
SKILL.mdSystem prompt that defines the agent’s behavior and expertise
Default PromptThe task given to the agent on each run
MCP ModeBuilt-in (isolated tool set) or Global (inherits from Claude config)
Max TurnsHow many think-act cycles the agent gets per run

Turns

A turn is one cycle of the agent thinking, calling tools, and receiving results. Each tool call and its response counts as one turn. If a tool call fails (wrong argument, network error, etc.), the agent reads the error and retries on the next turn. This self-correction is useful but consumes turns.
Set maxTurnsPerRun high enough for the agent to complete its work plus recover from errors. Reporters typically need 10-15 turns. Lead agents that orchestrate a team need 25-30.

Creating agents

There are three ways to create an agent:
1

From a template

Pick a pre-built template (News Analyst, Technical Analyst, Data Analyst, or Team Lead) on the New Agent page. Templates pre-fill the role, model, SKILL.md, and MCP settings.
2

From scratch

Start with a blank agent and configure everything manually. Useful for custom roles outside the built-in templates.
3

Via team deploy

Use Deploy Team to create a full team (lead + reporters) in one shot from a blueprint. See Teams for details.

Agent lifecycle

An agent moves through these statuses:
StatusMeaning
idleReady to run
runningCurrently executing
pausedManually paused, skipped by scheduler
errorLast run failed or process died unexpectedly
terminatedSoft-deleted, hidden from active views

Scheduling

Agents can run on a cron schedule. Configure this on the agent form with presets (every 15 min, hourly, daily) or a custom cron expression. Scheduled agents are picked up automatically on API startup.

Wallets

Every agent gets a Solana and Base/EVM wallet on creation. These are used for x402 payments (agents can pay for API access autonomously) and are AES-GCM encrypted in the database. View balances and export keys from the agent detail page.