chore: fallback v2#431
Open
sarahxsanders wants to merge 1 commit intomainfrom
Open
Conversation
🧙 Wizard CIRun 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:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
our basic language skills are flaky at best - sometimes they work, but they never produce as good of an outcome as the framework-specific skills
the fallback skills are too constrained. strict detection requirements were causing it to do weird things with projects we can't predict the shape of
sister PR: PostHog/context-mill#123
changes
Vanilla HTML/CSS/JS:
package.jsonnow auto-detect instead of requiring manual selectionNode.js:
utils.tswith shared detection helpersPython:
main.py,app.py, etc.) and passes it to the agentRuby:
detection order in
constants.tsis unchanged. frameworks are checked first, fallbacks lastTesting
A/B tested all four fallback languages across three configurations:
npx @posthog/wizard@latest(current production)Each test ran on minimal, no-framework apps: plain
http.server, plainhttp.createServer, vanilla HTML, plain WEBrickVanilla HTML/CSS/JS
signup_clickedsignup_clickedsignup_clickedPython
os.environos.environsignup_form_viewed,signup_completedpage_viewed,user_signed_upsignup_form_viewed,user_signed_upposthog.set()capture_exception+ autocaptureatexit)atexit)Node.js
user signed up(spaces!)page_viewed,user_signed_upsignup_page_viewed,user_signed_upcrypto.randomUUID()captureExceptioncaptureException+ autocaptureRuby
SecureRandom.uuidSecureRandom.uuidplan: 'free'capture_exceptionin rescue blocksat_exit+trap)with example apps connected, the agent was copying patterns from the example but skipping identify, error tracking, and graceful shutdown. it was too constrained.
without them, the agent leaned on the SDK docs and our
fallback-description.mdguidance – and consistently produced more complete integrationsseems fallback skills just need some docs, general guidance, and some freedom
The big wins