Skip to content

feat(self-driving): show codebase-detected tools first in the connected-tools ask - #291

Merged
gewenyu99 merged 1 commit into
mainfrom
tom/self-driving-detected-tools-first
Jul 29, 2026
Merged

feat(self-driving): show codebase-detected tools first in the connected-tools ask#291
gewenyu99 merged 1 commit into
mainfrom
tom/self-driving-detected-tools-first

Conversation

@Gilbert09

Copy link
Copy Markdown
Member

Problem

The step-5 connected-tools multi-select grew from 5 → ~36 options (#254) and overflows the terminal — you can't see the whole list (thread). The fix agreed there: show the tools detected in the user's codebase first, then the SaaS basics, then an "others" bucket.

Changes

Restructures only the step-5 ask construction — the connect / enable / record machinery (steps 2–5) is untouched:

  • Detected first. The wizard now injects a "Tools detected in this codebase" block (a deterministic dependency + env-key scan — companion PR PostHog/wizard#1022). Step 1 puts the detected tools that match the catalog first.
  • Then the SaaS basics — GitHub Issues, Linear, Jira, Sentry, Zendesk, always offered.
  • Then "Something else…" — one option that expands to the full ~36-tool catalog in a second ask (step 1b), only when the user asks for it.

Default view drops from ~36 options to ~6–10.

Degradation

Safe without the wizard PR: with no detected block, the first ask is just the basics + "Something else…" (still a big improvement), and ordering falls back to the old step-2 evidence. So the two PRs are independent — either can land first.

Test plan

pnpm build (bundles the self-driving-setup skill) and pnpm test:skills both pass (285 skill tests). The change is a markdown reorder within one skill reference; no connector, source_type, or responder mapping changed.

(Note: pnpm security-scan:skills fails locally with an unrelated ERR_MODULE_NOT_FOUND in the scan tooling — an env gap on my machine, not this change. Worth a CI check.)

…ed-tools ask

The step-5 connected-tools multi-select grew to ~36 options and overflows the
terminal — the user can't see the whole list. Restructure the ask so it stays
short:

- The wizard now injects a "Tools detected in this codebase" block (a
  deterministic dependency + env-key scan). Step 5 puts those tools first.
- Then the SaaS basics (GitHub Issues, Linear, Jira, Sentry, Zendesk), always
  offered.
- Then a single "Something else…" option that expands to the full catalog in a
  second ask — only when the user asks for it.

The default view drops from ~36 options to ~6-10. The connect / enable / record
machinery (steps 2-5) is unchanged; only the ask construction moves. Degrades
gracefully on an older wizard with no detected block — the list is still just
the basics + "Something else…", and ordering falls back to step-2 evidence.

Companion to the wizard change that emits the detected-tools block
(PostHog/wizard#1022).
@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
  • /wizard-ci self-driving

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
  • /wizard-ci self-driving/astro
  • /wizard-ci self-driving/fastapi
  • /wizard-ci self-driving/nuxt
  • /wizard-ci self-driving/react-router
  • /wizard-ci self-driving/sveltekit

Results will be posted here when complete.

@gewenyu99 gewenyu99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good stuff

@gewenyu99
gewenyu99 merged commit 6817761 into main Jul 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants