feat(plugin): add review and sweep commands, update dispatch with persona

New commands:
- /core:review — review agent workspace output, diff, merge options
- /core:sweep — batch dispatch audit across all Go repos

Updated /core:dispatch with persona argument support.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-15 16:45:39 +00:00
parent 99e8456c57
commit 290a582656
3 changed files with 47 additions and 1 deletions

View file

@ -16,6 +16,8 @@ arguments:
default: coding
- name: plan
description: Plan template (bug-fix, code-review, new-feature, refactor, feature-port)
- name: persona
description: Persona slug (e.g. engineering/engineering-backend-architect)
---
Dispatch a subagent to work on `$ARGUMENTS.repo` with task: `$ARGUMENTS.task`
@ -26,5 +28,6 @@ Use the `mcp__core__agentic_dispatch` tool with:
- agent: $ARGUMENTS.agent
- template: $ARGUMENTS.template
- plan_template: $ARGUMENTS.plan (if provided)
- persona: $ARGUMENTS.persona (if provided)
After dispatching, report the workspace dir and PID.
After dispatching, report the workspace dir, PID, and whether it was queued or started immediately.

View file

@ -0,0 +1,19 @@
---
name: core:review
description: Review completed agent workspace — show output, git diff, and merge options
arguments:
- name: workspace
description: Workspace name (e.g. go-html-1773592564). If omitted, shows all completed.
---
If no workspace specified, use `mcp__core__agentic_status` to list all workspaces, then show only completed ones with a summary table.
If workspace specified:
1. Read the agent log file: `.core/workspace/{workspace}/agent-*.log`
2. Show the last 30 lines of output
3. Check git diff in the workspace: `git -C .core/workspace/{workspace}/src log --oneline main..HEAD`
4. Show the diff stat: `git -C .core/workspace/{workspace}/src diff --stat main`
5. Ask if the user wants to:
- **Merge**: fetch branch into real repo, push to forge
- **Discard**: delete the workspace
- **Resume**: dispatch another agent to continue the work

View file

@ -0,0 +1,24 @@
---
name: core:sweep
description: Dispatch a batch audit across all Go repos in the ecosystem
arguments:
- name: template
description: Audit template (conventions, security)
default: conventions
- name: agent
description: Agent type for the sweep
default: gemini
- name: repos
description: Comma-separated repos to include (default: all Go repos)
---
Run a batch conventions or security audit across the Go ecosystem.
1. If repos not specified, find all Go repos in ~/Code/core/ that have a go.mod
2. For each repo, call `mcp__core__agentic_dispatch` with:
- repo: {repo name}
- task: "{template} audit - UK English, error handling, interface checks, import aliasing"
- agent: $ARGUMENTS.agent
- template: $ARGUMENTS.template
3. Report how many were dispatched vs queued
4. Tell the user they can check progress with `/core:status` and review results with `/core:review`