Skip to main content
subagent CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add legioncodeinc/vibe-coding-tools
/plugin install platform-and-release-tools@wasp-nest
Open on GitHub

What 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-nest

2Manually: put the files in place

.claude/agents/posthog-wasp-drone.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

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.

Similar subagents

All subagents for Frontend and UI →

From the same set172

The whole set →
security-wasp-drone security-wasp-drone — a subagent that audits SvelteKit projects with Neon Postgres, WorkOS, Stripe and GoHighLevel. Checks tenant isolation, webhooks, secret leaks and AI-code patterns against OWASP Top 10:2025. CX Codex ★ 96repo stars mcp-protocol-wasp-drone mcp-protocol-wasp-drone — a subagent for designing and auditing MCP servers against the protocol spec. Useful when tuning tool contracts, transport modes, and client configs. CX Codex ★ 96repo stars asset-wasp-drone The asset-wasp-drone subagent maintains a project-wide catalog of assets. Ask it to register an item or check whether the registry matches the code and database. CX Codex ★ 96repo stars ux-ui-svelte-wasp-drone ux-ui-svelte-wasp-drone keeps the UI layer of a Svelte 5 / SvelteKit app on the project's own tokens: reviews PRs, migrates surfaces, guards the @theme bridge and tenant theming. CX Codex ★ 96repo stars sentry-wasp-drone The sentry-wasp-drone subagent configures Sentry for SvelteKit projects on Vercel, covering SDK hooks, source maps, tracing, and Session Replay. Use it when working on error monitoring or event-quota controls. CX Codex ★ 96repo stars master-website-auditor master-website-auditor — a skill that orchestrates a complete website audit through 20 specialized analysis modules: platform fingerprinting, content scanning, crawling, and parallel checks for SEO, security, accessibility, and performance. CX Codex +1 ★ 96repo stars payments-wasp-drone payments-wasp-drone is a Claude Code subagent for Stripe integration in SvelteKit 5 projects on Vercel. It configures Stripe Elements checkouts, subscriptions, and webhook verification. CX Codex ★ 96repo stars harness-integration-wasp-drone harness-integration-wasp-drone — a subagent for Claude Code and Codex that wires a single capability—skill, plugin, hook, or MCP server—across all four Wasp Nest platforms at once. CX Codex ★ 96repo stars

Project sponsors

Companies that keep this analytics open