GITHUBGuide

Delegate issues to the coding agent

Coding sessions let an admin in Projects delegate an issue to an AI agent: the agent clones the linked GitHub repository, implements the fix based on the issue description, and opens a draft pull request for review.

Before you start

  • GitHub must be connected and at least one repository must be synced under Repositories.
  • Only Projects administrators (Administrator) start coding sessions. Managers follow the sessions and approve opening the pull request.

Delegate an issue

  1. 1

    Open the issue in Projects.

    The Coding sessions section appears in the issue's properties, for administrators and managers.

  2. 2

    Click `New session`.

    The New coding session dialog opens. Choose the Mode: Implement writes the fix and opens a draft pull request; Investigate only analyzes the code and reports what it found, with no branch or pull request. Then select the Repository and the Source branch. The agent creates the issue branch from that reference and opens the pull request against it.

  3. 3

    Add `Instructions` — optional.

    Use this field to guide the agent: implementation strategy, constraints, files to avoid, etc.

  4. 4

    Click `Start session` (in `Investigate` mode, `Start investigation`).

    The agent enters the queue (Queued), begins execution (Running), and opens the draft pull request when done. If the team requires approval, the session stops at Awaiting approval until an administrator or manager clicks Approve and publish.

    result
    The Coding sessions section shows the session status in real time: Queued → Running → PR open.
  5. 5

    Click `Open pull request` when it appears.

    The link takes you directly to the draft PR on GitHub. Review, adjust, and approve it through the normal GitHub workflow.

Monitor and restart sessions

The Coding sessions section shows the most recent session. Click it to open the session, with the transcript and the changes. At the end of each turn, the session stays in Waiting and accepts new messages for the agent. If a session fails (Failed), click Try again. Administrators and managers see the team's sessions on the Coding sessions page, under Code.

One active session at a time

The New session button is disabled while the issue has an open session. Keep talking to the agent in that session or archive it before starting another.

Configure the agent model

By default, the agent follows the platform's default model. To pin another Anthropic model, open Settings › Agents › Projects and use Change model on the Coding agent model card. Only team admins change this setting, and saving requires two-factor authentication (MFA).

Next