Skip to content

Add a subagent roster command#3402

Closed
gantoine wants to merge 1 commit into
mainfrom
posthog-code/subagent-roster-command
Closed

Add a subagent roster command#3402
gantoine wants to merge 1 commit into
mainfrom
posthog-code/subagent-roster-command

Conversation

@gantoine

Copy link
Copy Markdown
Member

Problem

PostHog Code already supports bundled and project-local subagents with per-agent model and reasoning overrides, but there is no quick way to inspect the effective roster. A discoverable roster makes the configuration visible before delegating work.

Changes

  • Add /subagents to show bundled agents and their effective model, reasoning level, and purpose.
  • Add /subagents all to include project-local agents while respecting project trust settings.
  • Document the command and cover formatting behavior with focused tests.

How did you test this?

  • pnpm --filter @posthog/shared build
  • pnpm --filter @posthog/harness typecheck
  • pnpm --filter @posthog/harness exec vitest run src/extensions/subagent/roster.test.ts src/extensions/subagent/agents.test.ts src/extensions/subagent/settings.test.ts
  • pnpm exec biome check --write packages/harness/src/extensions/subagent/extension.ts packages/harness/src/extensions/subagent/roster.ts packages/harness/src/extensions/subagent/roster.test.ts
  • git diff --check

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Expose effective subagent model, reasoning, and purpose settings through a discoverable interactive command.

Generated-By: PostHog Code
Task-Id: 78394575-7800-419b-9e49-b52ef9fc069e
@trunk-io

trunk-io Bot commented Jul 13, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit b3c9cb5.

@gantoine gantoine closed this Jul 13, 2026
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