Skip to content

feat: Subagent audit#440

Draft
gewenyu99 wants to merge 1 commit intomainfrom
posthog-code/audit-subagent
Draft

feat: Subagent audit#440
gewenyu99 wants to merge 1 commit intomainfrom
posthog-code/audit-subagent

Conversation

@gewenyu99
Copy link
Copy Markdown
Collaborator

@gewenyu99 gewenyu99 commented May 6, 2026

PoC PR, this is not ready for review :) Functionality not as advertised.

CleanShot.2026-05-06.at.16.12.43.mp4
  • Allow subagent audit
  • create command args for auditing only specific products with --area="feature flags, web analytics" (these don't work yet)
  • agent tool for checking which products were specifically requested to be checked

Created with PostHog Code

Wizard-side support for discoverable specialist audits. The audit
runner now ships an `--areas` flag, exposes the constraint to the
agent at runtime, and surfaces five new placeholder slides for
discoverable specialists.

- New `--areas="web analytics, feature flags"` CLI flag constrains
  the audit to a subset of the canonical 8-area enum
  (Installation, Identification, Event Capture, Web Analytics,
  Feature Flags, Experiments, LLM Analytics, Error Tracking).
  Unknown values log a hint listing valid areas and continue.
- New `mcp__wizard-tools__audit_get_areas` MCP tool returns
  `{ areas, allowed, constrained }` so the SKILL can honor the
  filter at runtime.
- AuditAreaPane state machine grows two intermediate states for
  the gap between basic specialists finishing and the discovery /
  dispatch agent enrolling discoverable specialists via
  `audit_add_checks`: "Essentials checked" (no enrollments yet)
  and "Running expert subagents" (with the live area list).
- Five placeholder slides — Web Analytics, Feature Flags,
  Experiments, LLM Analytics, Error Tracking — with intro copy and
  docs URLs.
- Specialist registry split: `AUDIT_SPECIALISTS` only enumerates
  the always-pre-seeded basic specialists (identification,
  event-capture). Discoverable specialists are owned by the audit
  SKILL.md in context-mill.

Generated-By: PostHog Code
Task-Id: e4fb6677-7de2-41d1-b78c-56f27096d628
@gewenyu99 gewenyu99 force-pushed the posthog-code/audit-subagent branch from 5420d38 to beb3715 Compare May 6, 2026 20:40
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.

1 participant