Implementation

Contents

Open beta

Self-driving is in open beta. It's improving quickly – expect rough edges, and expect them to disappear fast.

Once research is complete and a report is marked Actionable, an implementation agent builds the change and opens a pull request for you to review.

Sandboxed execution

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

  1. Creates a new git branch (for example, 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 and opens a pull request:

  • Description – an AI-generated summary of the problem, the proposed change, and the research reasoning.
  • Labels – PRs are automatically labeled (for example, LLM context or PostHog Agent) so reviewers know where they came from.

Reviewing and merging

Your job is to review the code the same way you would any other pull request, then click Merge when you're happy with it. If something needs tweaking, you can chat with the implementation agent directly and it'll make the changes you ask for.

You can also leave inline review comments directly on the diff inside PostHog. Click a line number to start a new thread, reply to existing threads, and add reactions – all synced to the pull request on GitHub. This requires connecting your personal GitHub account in Settings > Personal integrations. Comments are posted under your own GitHub identity, so the PR thread stays in one place whether you review in PostHog or on GitHub.

Nothing ships without you. The inbox is where you stay in control of what self-driving does.

Next step

Run into something unexpected? See how to debug it.

Troubleshooting

Community questions

Was this page useful?