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

# Code capability

> Let an agent investigate, implement, and reproduce issues directly in your repositories.

Code is a special integration: instead of connecting a third-party account, it gives an agent the ability to work directly inside your company's git repositories — reading code, opening pull requests, and reproducing bugs — through an isolated, disposable environment rather than a live credential the agent could ever see.

<Note>
  Code has no credential of its own. It reuses your company's existing [GitHub connection](/integrations/github) to reach your repositories, so a GitHub connection must be active before Code can be enabled.
</Note>

## Enabling it

<Steps>
  <Step title="Connect GitHub">
    Under Settings → Integrations, connect GitHub if you haven't already. Code has nothing to authenticate on its own — it borrows this connection.
  </Step>

  <Step title="Activate Code">
    Enable the Code connector for your company. Unlike other connectors, there's no key to paste — it's a one-click activation.
  </Step>

  <Step title="Grant it to an agent">
    Grant Code to an agent the same way you'd grant any other connection — see [Permissions](/integrations/permissions) — with one addition: a **repository allow-list**.
  </Step>
</Steps>

## Actions

| Action             | Nature              | Description                                                                                                                                                              |
| ------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `investigate`      | Read, asynchronous  | Investigates a repository for a described problem or question and returns a structured report, with findings referenced down to specific `file:line` locations.          |
| `implement_ticket` | Write, asynchronous | Implements a described change: creates a branch, makes the changes, runs tests on a best-effort basis, pushes the branch, and opens a **draft** pull request.            |
| `reproduce`        | Write, asynchronous | Attempts to reproduce a scenario described in natural language inside a throwaway environment, returning a verdict of `reproduced`, `not_reproduced`, or `inconclusive`. |

A `read` grant scope permits `investigate` only; `implement_ticket` and `reproduce` require `read_write`, following the same scope rule as every other connector — see [Permissions](/integrations/permissions).

<Tip>
  All three actions run **asynchronously**. The agent queues the task and is notified with the result once it completes — it isn't blocked waiting on a long-running investigation or implementation.
</Tip>

## Repository allow-list

Access to repositories is deny-by-default, just like actions: a Code grant carries its own allow-list of repositories, separate from and in addition to the action allow-list. An agent with a Code grant but an empty repository list can act on nothing. You manage this list per grant, adding or removing repositories the agent is permitted to touch — an agent can be trusted with one repository and denied every other one your company owns.

## Isolation

Every Code task — an investigation, an implementation, or a reproduction attempt — runs in its own single-use execution environment, provisioned for the task and discarded when it finishes. Each call starts from a fresh checkout of the repository; nothing accumulates between tasks.

## Use cases

<CardGroup cols={2}>
  <Card title="Bug triage" icon="magnifying-glass">
    Point an agent at a vague bug report with `investigate` and get back a structured report with exact file and line references, before anyone opens an IDE.
  </Card>

  <Card title="Reproduction" icon="flask">
    Hand an agent a user-reported scenario and let `reproduce` confirm — or rule out — the bug in an isolated environment, with a clear verdict.
  </Card>

  <Card title="First-draft fixes" icon="code-pull-request">
    Let an agent turn a ticket into a draft pull request with `implement_ticket`, ready for a human to review, refine, and merge.
  </Card>
</CardGroup>

## Related

<CardGroup cols={2}>
  <Card title="GitHub" icon="github" href="/integrations/github">
    The connection Code relies on to reach your repositories.
  </Card>

  <Card title="Permissions" icon="shield-check" href="/integrations/permissions">
    The grant model Code's actions and repository allow-list build on.
  </Card>

  <Card title="Security" icon="lock" href="/integrations/security">
    How Code's tasks stay isolated and audited like every other integration call.
  </Card>
</CardGroup>
