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

# Code Targets

> Apply approved fixes to code-based agents — Mastra, Claude Agent SDK, DeepAgents, Pydantic AI — via GitHub.

When your agent is **code** — a framework implementation rather than harness markdown — Helix applies
approved fixes by editing that code and opening a **pull request** on GitHub, the same as for harness
agents.

<CardGroup cols={2}>
  <Card title="Mastra" icon="https://mintcdn.com/architech/lNudYrm3oSHgdKIT/icons/mastra.svg?fit=max&auto=format&n=lNudYrm3oSHgdKIT&q=85&s=2d00320b9f65c0746c918429f37f572a" width="430" height="267" data-path="icons/mastra.svg">
    Agents built on the Mastra framework.
  </Card>

  <Card title="Claude Agent SDK" icon="https://mintcdn.com/architech/lNudYrm3oSHgdKIT/icons/anthropic.svg?fit=max&auto=format&n=lNudYrm3oSHgdKIT&q=85&s=e3870ceaac2a9e3395fc2303ba034bd7" width="24" height="24" data-path="icons/anthropic.svg">
    Agents built on the Claude Agent SDK.
  </Card>

  <Card title="DeepAgents" icon="https://mintcdn.com/architech/lNudYrm3oSHgdKIT/icons/deepagents.svg?fit=max&auto=format&n=lNudYrm3oSHgdKIT&q=85&s=c2ee72b768fec456bac31ce7ea13704b" width="510" height="100" data-path="icons/deepagents.svg">
    Agents built with DeepAgents.
  </Card>

  <Card title="Pydantic AI" icon="https://mintcdn.com/architech/lNudYrm3oSHgdKIT/icons/pydanticai.svg?fit=max&auto=format&n=lNudYrm3oSHgdKIT&q=85&s=253686ec34864e7df02a1a673e11edfd" width="24" height="24" data-path="icons/pydanticai.svg">
    Agents built with Pydantic AI.
  </Card>
</CardGroup>

## How a fix lands

The flow mirrors [harness targets](/integrations/targets/harness): Diagnose ranks a remedy, you
approve it, Helix prepares the code change on a branch, and it opens a **GitHub pull request** for
you to review and merge. Code changes go through the same approval gate — nothing merges without you.

Declare a code target in your config:

```yaml .mutagent/config.yaml theme={null}
global:
  targets:
    - name: code-agents
      platform: local-mastra          # local-mastra · local-cloud-agent-sdk
      mode: local
      apply:
        kind: code-pr                 # ship fixes as a GitHub pull request
```

<Tip>
  The loop is the same whether your agent is markdown or code — Evaluate scores it, Diagnose
  root-causes it, and Optimize applies the approved fix as a PR. Only the target differs.
</Tip>
