posthog-wasp-drone — Claude Code subagent: setup and features
posthog-wasp-drone integrates PostHog into SvelteKit codebases, covering client and server tracking, feature flags, experiments, and Vercel proxies.
AGPL-3.0-or-later ★ 96 updated 2026-10-18
/plugin marketplace add legioncodeinc/vibe-coding-tools
/plugin install platform-and-release-tools@wasp-nestWhat posthog-wasp-drone does
This subagent implements PostHog capabilities across SvelteKit applications. Because client and server environments remain distinct in SvelteKit, it installs both posthog-js and posthog-node. The agent wires pageview signals directly into SvelteKit's client router, defines event property naming rules, and configures identity stitching using identify() and alias(). It also bootstraps feature flags to prevent layout flicker during experiment runs.
When tracking events fail silently, an unconfigured Content Security Policy blocking https://*.posthog.com or your proxy URL is usually the cause. The drone prioritizes user-behavior session replays with privacy masking rather than exception debugging. System-level error tracing, underlying session token mechanics, and full deployment pipelines remain outside this subagent's scope.
What it helps with
- install client and server PostHog packages in SvelteKit
- track page transitions within SvelteKit's client router
- bootstrap feature flags to eliminate visual UI flicker
- route analytics traffic through rewrites in
vercel.json - configure privacy masking for user session recordings
Example prompts for the agent
- Set up PostHog in our SvelteKit app and capture client router pageviews
- Add a feature flag with bootstrapping to avoid layout flicker
- Configure a PostHog reverse proxy in vercel.json
How to install posthog-wasp-drone
1Plugin marketplace
/plugin marketplace add legioncodeinc/vibe-coding-tools/plugin install platform-and-release-tools@wasp-nest2Manually: put the files in place
.claude/agents/posthog-wasp-drone.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/posthog-wasp-drone.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/posthog-wasp-drone.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about posthog-wasp-drone
How do I install posthog-wasp-drone in Claude Code?
Register the marketplace with /plugin marketplace add legioncodeinc/vibe-coding-tools, run /plugin install platform-and-release-tools@wasp-nest, or place .claude/agents/posthog-wasp-drone.md in your project.
What does posthog-wasp-drone do?
It instruments PostHog in SvelteKit projects, configuring router pageviews, feature flags, A/B experiments, B2B group analytics, and reverse proxy routing.
How does it handle session replay versus crash reporting?
It configures replay solely for analyzing user behavior and interface interactions. Exception debugging, performance traces, and crash-related replays belong to dedicated tools such as Sentry.