Skip to content

feat(self-driving): ground custom-scout gap analysis in for-agents context#876

Merged
dkarasiewicz merged 3 commits into
mainfrom
self-driving-6b-agents-context
Jul 14, 2026
Merged

feat(self-driving): ground custom-scout gap analysis in for-agents context#876
dkarasiewicz merged 3 commits into
mainfrom
self-driving-6b-agents-context

Conversation

@dkarasiewicz

@dkarasiewicz dkarasiewicz commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Problem

step 6b custom scout proposals go straight to scanning source and skip the repo's agent-facing docs (AGENTS.md, CLAUDE.md, ARCHITECTURE.md, .cursor/rules). those already map the product's surfaces, so proposals come out slow and generic.

Changes

  • prompt.ts step 6b: read the for-agents context first, then scan source
  • self-driving ARCHITECTURE.md updated to match
  • companion change to the authoring-scouts skill goes in the posthog repo separately

Test plan

pnpm build + self-driving prompt unit test pass, covered by CI

LLM context

authored with claude code, commit created via createCommitOnBranch to satisfy the signed-commits rule

🤖 Generated with Claude Code

…ntext

The 6b gap analysis now starts from the repo's agent-facing docs (AGENTS.md, CLAUDE.md, ARCHITECTURE.md, .cursor/rules) when present, instead of going straight to scanning source.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 14:08
@dkarasiewicz
dkarasiewicz requested a review from a team as a code owner July 13, 2026 14:08
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the self-driving program’s STEP 6b guidance so custom-scout gap analysis is grounded in repo-maintained “for-agents” context (e.g., AGENTS/CLAUDE/ARCHITECTURE/Cursor rules) before scanning source, improving the relevance and specificity of proposed scouts.

Changes:

  • Adjusted STEP 6b prompt text to instruct the agent to start from “for-agents” context when present.
  • Updated the self-driving ARCHITECTURE step summary and step table to reflect the same guidance.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/programs/self-driving/prompt.ts Refines STEP 6b prompt wording to ground custom-scout gap analysis in agent-facing repo context first.
src/lib/programs/self-driving/ARCHITECTURE.md Aligns documentation for STEP 6b (summary + table) with the updated prompt behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/programs/self-driving/prompt.ts
@dkarasiewicz

Copy link
Copy Markdown
Contributor Author

skill-side mirror (source of truth for the HOW): PostHog/context-mill#233 — merge that one for the change to take effect

dkarasiewicz added a commit to PostHog/context-mill that referenced this pull request Jul 14, 2026
…ntext (#233)

Mirrors PostHog/wizard#876 — the skill references are the source of truth
for the HOW, so the wizard prompt change alone doesn't take effect.

Co-authored-by: Dawid Karasiewicz <dawid.k@posthog.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@dkarasiewicz
dkarasiewicz enabled auto-merge (squash) July 14, 2026 14:40
@dkarasiewicz
dkarasiewicz merged commit 3ddf98e into main Jul 14, 2026
16 checks passed
@dkarasiewicz
dkarasiewicz deleted the self-driving-6b-agents-context branch July 14, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants