Skip to content

docs(self-driving): document agent handoff, PR state, and stacked PRs - #20869

Merged
andrewm4894 merged 3 commits into
masterfrom
posthog-self-driving/docsself-driving-explain-implementation-efd776
Oct 14, 2026
Merged

andrewm4894 merged 3 commits into
masterfrom
posthog-self-driving/docsself-driving-explain-implementation-efd776

Conversation

@posthog

@posthog posthog Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Changes

This PR adds three sections to the self-driving implementation guide. The guide describes only the hosted implementation path. Readers do not find the other handoff and review options that the product supports.

  • Use your own coding agent: How to copy the report prompt or send it to PostHog Desktop, Claude Code CLI, Claude Desktop, Claude Code in VS Code, Claude Code on the web, Cursor, or Codex.
  • Choose how pull requests open: The project default (Draft or Ready for review) and the reviewer override.
  • Stacked pull requests: How research splits a large change into dependent child reports and pull requests.

Source of truth:

This is a content PR with no visual or navigation change. Open PRs #18512 and #19136 also edit this page. This PR adds new sections only, so the merge conflict risk is low.

Checks:

  • I ran Prettier on the changed file. The repo dependencies are not installed in the sandbox, so I did not run pnpm format or pnpm start.
  • I did not load the page in a dev server or preview build.

Checklist

  • I've read the docs and/or content style guides.
  • Words are spelled using American English
  • Use relative URLs for internal links
  • I've checked the pages added or changed in the Vercel preview build
  • If I moved a page, I added a redirect in vercel.json (no page moved)

Created with PostHog Desktop from this inbox report.

🤖 Generated with Claude Code

Origin

  • Scout: a custom scout
  • First signal: 2026-09-12
  • Inbox report: open
  • Task started by: auto-start, after the report was rated P3 and ready to fix

Generated-By: PostHog Desktop
Task-Id: da0d619e-10f7-4c82-a7b0-26cfd5bbf694
@posthog posthog Bot added the self-driving label Oct 7, 2026
@posthog
posthog Bot marked this pull request as ready for review October 7, 2026 06:49
@posthog

posthog Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

PostHog Review · Deep · reviewed 666b42b

Nothing to post.

Step Status Result
Prepare the diff done 1 file, 1 chunk
Pick perspectives done
Run review passes done 0 issues
Merge overlapping findings done 0 → 0
Validate findings done
Publish done Nothing to post

A white car on a quiet road

@github-actions github-actions Bot added docs Improvements or additions to product documentation, "Docs" content PR only touches files under contents/ labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Oct 07, 2026 07:13AM

Changed pages

Page Source
Implementation contents/docs/self-driving/inbox/implementation.mdx

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Vale prose linter → found 0 errors, 2 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/self-driving/inbox/implementation.mdx — 0 errors, 2 warnings, 0 suggestions
Line Severity Message Rule
18:4 warning 'Sandboxed' is a possible misspelling. PostHogBase.Spelling
20:49 warning 'sandboxed' is a possible misspelling. PostHogBase.Spelling

@posthog

posthog Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

PostHog Review alpha 🦔 If you find any issues helpful - please reply "valid", "invalid", etc., for evaluation purposes 🙏


## Stacked pull requests

Research can split a large change into dependent layers. PostHog creates a child report and pull request for each layer. A layer starts after its dependency has a pull request. Its pull request uses the dependency branch as its base until that dependency merges, so you can review and merge the layers in order.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document the base change required between stacked merges

Should fix · documentation

The phrase 'until that dependency merges' implies that merging the dependency changes the child PR's base. dependency_head_branch selects the base when implementation starts; the merge handler does not change it later. GitHub automatically changes dependent PR bases when the merged branch is deleted. If that branch remains, merging the next layer updates the dependency branch instead of the intended target branch.

Suggested fix

Describe base selection when the layer starts. Add a step after each dependency merges: verify the next PR's base and change it to the intended target branch if necessary. Explain that deleting the merged dependency branch triggers GitHub's automatic base change.

posthog Bot added 2 commits October 7, 2026 06:58
The copied prompt links to the report and tells the agent to read and claim it through PostHog MCP tools. State that the agent must be able to use the PostHog MCP server, and link to its setup docs.

Generated-By: PostHog Desktop
Task-Id: 3ae19e68-05c6-4265-8400-140d1c861e07
…d PRs

PostHog sets a layer's pull request base once, when the layer starts, and does not change it after the dependency merges. Describe how the base is chosen, and tell readers to delete the merged branch (so GitHub retargets the next pull request) or change the base themselves.

Generated-By: PostHog Desktop
Task-Id: 3ae19e68-05c6-4265-8400-140d1c861e07
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

9.78 MiB (+0.0 KiB / +0.0%)

Eager graph (modules shipped in each entrypoint's initial chunks)

Entrypoint Eager size Budget Modules
✅ app 19.38 MiB (+1.1 KiB / +0.0%) report-only 2095
Largest modules in the app closure
Module Size
./src/data/mcp-tools.json 1318.5 KiB
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css 804.9 KiB
./src/components/Stickers/Stickers.tsx 696.4 KiB
./node_modules/.pnpm/@radix-ui+react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js 481.4 KiB
./node_modules/.pnpm/@posthog+brand@0.8.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/x-ray.mjs 480.8 KiB
./node_modules/.pnpm/@posthog+brand@0.8.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/trenchcoat.mjs 447.5 KiB
./node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js + 29 modules 395.1 KiB
./node_modules/.pnpm/@posthog+brand@0.8.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/im-the-driver.mjs 385.7 KiB
./src/hooks/useCustomers.tsx + 56 modules 375.9 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js 354.8 KiB
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules 351.4 KiB
./src/components/ProductComparisonTable/index.tsx + 127 modules 310.3 KiB
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js 281.9 KiB
./node_modules/.pnpm/@posthog+brand@0.8.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/doll-house.mjs 281.7 KiB
./node_modules/.pnpm/@posthog+brand@0.8.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/director.mjs 275.6 KiB

Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes for the modules actually shipped in the entrypoint's initial chunks (post-tree-shake).

@andrewm4894
andrewm4894 merged commit 3192530 into master Oct 14, 2026
21 checks passed
@andrewm4894
andrewm4894 deleted the posthog-self-driving/docsself-driving-explain-implementation-efd776 branch October 14, 2026 17:28
@github-project-automation github-project-automation Bot moved this from Backlog to Done in PostHog.com planning Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content PR only touches files under contents/ docs Improvements or additions to product documentation, "Docs" self-driving

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant