diff --git a/claude/code/commands/dispatch.md b/claude/code/commands/dispatch.md index 80d241d..bd0d840 100644 --- a/claude/code/commands/dispatch.md +++ b/claude/code/commands/dispatch.md @@ -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. diff --git a/claude/code/commands/review.md b/claude/code/commands/review.md new file mode 100644 index 0000000..e0fb463 --- /dev/null +++ b/claude/code/commands/review.md @@ -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 diff --git a/claude/code/commands/sweep.md b/claude/code/commands/sweep.md new file mode 100644 index 0000000..77ed30f --- /dev/null +++ b/claude/code/commands/sweep.md @@ -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`