> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Agents

> Agents that deploy, investigate, and prepare reviewable changes with clear controls

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/akua-1dce587a/KB6u5PJRNHAXrgro/images/heros/agents-light.svg?fit=max&auto=format&n=KB6u5PJRNHAXrgro&q=85&s=d9d52a958ffe585b13e38b13dd66d3cc" alt="A pending agent change stops at an approval gate before becoming an applied change with an audit trail" width="1536" height="864" data-path="images/heros/agents-light.svg" />

  <img className="hidden dark:block" src="https://mintcdn.com/akua-1dce587a/KB6u5PJRNHAXrgro/images/heros/agents-dark.svg?fit=max&auto=format&n=KB6u5PJRNHAXrgro&q=85&s=6164e2e305d0271d4acc9d47e908a642" alt="A pending agent change stops at an approval gate before becoming an applied change with an audit trail" width="1536" height="864" data-path="images/heros/agents-dark.svg" />
</Frame>

Agents are workspace-native automation in Akua: describe the outcome, let the agent gather context, and review the proposed action before anything sensitive changes.

## Work modes

The same configured agent can help in chat, investigate platform state, use code when needed, or run from a configured signal.

<Tabs>
  <Tab title="Chat" icon="messages">
    Ask the dashboard sidebar to deploy a repository, explain a failed install, compare customer installs, or prepare a safe next step.
  </Tab>

  <Tab title="Investigate" icon="magnifying-glass-chart">
    Gather evidence from platform state, install status, logs, package versions, and existing repository change requests before deciding what to do.
  </Tab>

  <Tab title="Code" icon="code">
    Use fast Code Mode for structured platform operations, then switch to a <Tooltip headline="Retained runtime" tip="A retained runtime is the resumable environment an agent can use when work needs files, git, package managers, command execution, or tests. It is separate from an Akua workspace.">retained runtime</Tooltip> when the task needs files, git, package managers, command execution, or tests.
  </Tab>

  <Tab title="Ambient" icon="radar">
    Watch configured signals and start an investigation when deploy failures, security findings, quota pressure, or cost anomalies match policy.
  </Tab>
</Tabs>

Agents are clients of the same Akua API used by the dashboard, CLI, and MCP server. That keeps behavior auditable and avoids separate automation paths.

## Why agents matter

Agents turn deployment and operations work into a guided conversation. The embedded dashboard agent is the managed path: no local setup, shared workspace context, and review controls built into the UI.

<CardGroup cols={2}>
  <Card title="Deploy by intent" icon="wand-magic-sparkles">
    Tell the agent what you want to run. It can identify setup steps, ask for missing configuration, and show deployment progress.
  </Card>

  <Card title="Review before change" icon="shield-check">
    Sensitive actions use repository change requests, approval requests, and audit events instead of invisible automation.
  </Card>

  <Card title="Match the user" icon="graduation-cap">
    Beginners get plain-language guidance. Experts get concise technical detail, exact resource names, and direct controls.
  </Card>

  <Card title="Use your own tools" icon="plug" href="/agent-setup">
    Codex, Claude Code, and other MCP-compatible clients can connect through the agent setup path.
  </Card>
</CardGroup>

## Product model

<CardGroup cols={2}>
  <Card title="How agents work" icon="diagram-project" href="/agents/how-it-works">
    Understand agents, skills, sessions, turns, events, and repository change requests.
  </Card>

  <Card title="Examples" icon="sparkles" href="/agents/examples">
    See realistic deployment, investigation, compute recommendation, and ambient flows.
  </Card>

  <Card title="Agent API tasks" icon="list-checks" href="/agents/tasks">
    Create agents, sessions, turns, approvals, and repository change requests.
  </Card>

  <Card title="Communication style" icon="graduation-cap" href="/agents/communication">
    Understand beginner, intermediate, advanced, and expert agent responses.
  </Card>

  <Card title="Configure an agent" icon="sliders" href="/agents/configure">
    Define instructions, skills, model policy, runtime policy, grants, and triggers.
  </Card>

  <Card title="Agent dashboard" icon="panel-top" href="/agents/dashboard">
    Configure ambient agents and understand widgets in the managed UI.
  </Card>

  <Card title="Sessions and turns" icon="messages" href="/agents/sessions-and-turns">
    See how a conversation or task progresses over time.
  </Card>

  <Card title="Ambient agents" icon="radar" href="/agents/ambient-agents">
    Configure agents that respond to deploy failures, degraded clusters, findings, and other signals.
  </Card>

  <Card title="Permissions and security" icon="shield-check" href="/agents/permissions-and-security">
    Control what agents can read, prepare, execute, and accept.
  </Card>

  <Card title="Agents API" icon="code" href="/agents/api">
    Build on the public API resources and SDK shape.
  </Card>

  <Card title="Limits and pricing" icon="scale-balanced" href="/agents/limits">
    Understand agent sessions, retained runtimes, model budgets, and trigger limits.
  </Card>

  <Card title="Agent runbooks" icon="clipboard-list" href="/agents/runbooks">
    Triage stuck sessions, sandboxes, provider outages, triggers, and cleanup.
  </Card>
</CardGroup>

## When to use an agent

Use an agent when the work benefits from platform context, repeatability, or review:

| Use case                        | Good fit                                           |
| ------------------------------- | -------------------------------------------------- |
| Explain a failed installation   | Read-only triage agent                             |
| Compare two installations       | Chat or API-created session                        |
| Create a reviewable fix         | Coding agent with repository change request access |
| Watch production failures       | Ambient agent with deploy-failure triggers         |
| Run a safe low-risk remediation | Agent with explicit pre-approved grants            |

To connect a local coding agent, start with [Agent Setup](/agent-setup). For direct API exploration without a hosted session, use the [Platform MCP server](/ai/platform-mcp). For repository-focused design, see [Agents and installation repositories](/ai/repo-agents).

## Common questions

<AccordionGroup>
  <Accordion title="Do agents run all the time?">
    No. Sessions are cheap to keep open, but retained runtimes only start when work needs files, commands, a browser, or repository access. Ambient agents wait on configured signals until a condition matches.
  </Accordion>

  <Accordion title="Can agents accept changes directly?">
    The default path is a repository change request. Accepting a change requires separate grants and can require explicit approval at runtime.
  </Accordion>

  <Accordion title="Can I bring my own model keys?">
    Yes. Agents support Akua-managed billing and workspace-owned provider credentials through workspace secrets. Secret values are not exposed to the agent runtime.
  </Accordion>

  <Accordion title="What happens to retained filesystems?">
    Retained filesystems expire according to workspace policy unless pinned. Summaries, repository change requests, and audit events are cheaper to keep than full runtime state.
  </Accordion>
</AccordionGroup>

## Related topics

<CardGroup cols={2}>
  <Card title="Agent setup" icon="rocket" href="/agent-setup">
    Connect local coding agents to Akua.
  </Card>

  <Card title="Platform MCP" icon="server" href="/ai/platform-mcp">
    Let external AI tools call Akua through Code Mode.
  </Card>

  <Card title="Installation repositories" icon="folder-tree" href="/installs/repositories">
    The git-backed installation surface agents inspect and propose changes against.
  </Card>

  <Card title="Agent limits" icon="scale-balanced" href="/agents/limits">
    Pricing and limits for sessions, turns, retained runtimes, and provider usage.
  </Card>
</CardGroup>
