# PostHog Code Inbox implementation - Docs

## Implementation tasks

Once research is complete and a fix is identified, the agent moves to implementation.

### Sandboxed execution

The agent clones your repository into a secure, sandboxed environment. It then:

1.  Creates a new git branch (e.g., `ai-fix/billing-null-check`)
2.  Applies the code changes
3.  Runs any local tests (if configured)

### Pull request generation

The agent pushes the branch to your remote (e.g., GitHub) and opens a pull request.

-   **Description** - The PR includes an AI-generated summary of the problem, the proposed change, and the research reasoning
-   **Labels** - PRs are automatically labeled with `LLM context` or `PostHog Agent` to notify reviewers

### Community questions

Ask a question

### Was this page useful?

HelpfulCould be better