From 7d2d7f389c35c982ae7409b78f562388c1429685 Mon Sep 17 00:00:00 2001 From: dbpolito Date: Fri, 27 Mar 2026 12:24:52 -0300 Subject: [PATCH 1/3] refactor: remove deprecated /reload command and clean up references - Delete reload.md command definition from packages/core/commands/ - Remove reload.md from packages/opencode/.opencode/commands/ - Delete reload.mdx documentation from packages/web/src/content/docs/docs/reference/commands/ - Update kompass.jsonc files to remove reload command references - Update CommandShowcase.astro and commands index.mdx to remove reload references --- kompass.jsonc | 1 - packages/core/commands/reload.md | 34 - packages/core/kompass.jsonc | 1 - .../opencode/.opencode/commands/reload.md | 39 -- packages/opencode/.opencode/kompass.jsonc | 3 - packages/opencode/kompass.jsonc | 1 - .../web/src/components/CommandShowcase.astro | 608 +++++++++++++----- .../docs/docs/reference/commands/index.mdx | 149 ++--- .../docs/docs/reference/commands/reload.mdx | 23 - 9 files changed, 515 insertions(+), 344 deletions(-) delete mode 100644 packages/core/commands/reload.md delete mode 100644 packages/opencode/.opencode/commands/reload.md delete mode 100644 packages/web/src/content/docs/docs/reference/commands/reload.mdx diff --git a/kompass.jsonc b/kompass.jsonc index fd614b4..21a63e0 100644 --- a/kompass.jsonc +++ b/kompass.jsonc @@ -20,7 +20,6 @@ "pr/create": { "enabled": true }, "pr/fix": { "enabled": true }, "pr/review": { "enabled": true }, - "reload": { "enabled": true }, "review": { "enabled": true }, "ship": { "enabled": true }, "rmslop": { "enabled": true }, diff --git a/packages/core/commands/reload.md b/packages/core/commands/reload.md deleted file mode 100644 index e5883b3..0000000 --- a/packages/core/commands/reload.md +++ /dev/null @@ -1,34 +0,0 @@ -## Goal - -Reload the current OpenCode project cache. - -## Workflow - -### Arguments - - -$ARGUMENTS - - -### Interpret Arguments - -- This command does not accept runtime arguments -- If `` is non-empty, ignore it instead of changing behavior - -### Reload Project - -- Call the `reload` tool -- If the tool fails, STOP and report the reload error - -## Additional Context - -- Use this command when the workspace cache needs to reflect the current repository state - -## Output - -When reload succeeds, display: -``` -Reloaded project cache - -No additional steps are required. -``` diff --git a/packages/core/kompass.jsonc b/packages/core/kompass.jsonc index fd614b4..21a63e0 100644 --- a/packages/core/kompass.jsonc +++ b/packages/core/kompass.jsonc @@ -20,7 +20,6 @@ "pr/create": { "enabled": true }, "pr/fix": { "enabled": true }, "pr/review": { "enabled": true }, - "reload": { "enabled": true }, "review": { "enabled": true }, "ship": { "enabled": true }, "rmslop": { "enabled": true }, diff --git a/packages/opencode/.opencode/commands/reload.md b/packages/opencode/.opencode/commands/reload.md deleted file mode 100644 index 8fb9f1e..0000000 --- a/packages/opencode/.opencode/commands/reload.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -description: Reload the current OpenCode project configuration -agent: build ---- - -## Goal - -Reload the current OpenCode project cache. - -## Workflow - -### Arguments - - -$ARGUMENTS - - -### Interpret Arguments - -- This command does not accept runtime arguments -- If `` is non-empty, ignore it instead of changing behavior - -### Reload Project - -- Call the `kompass_reload` tool -- If the tool fails, STOP and report the kompass_reload error - -## Additional Context - -- Use this command when the workspace cache needs to reflect the current repository state - -## Output - -When kompass_reload succeeds, display: -``` -Reloaded project cache - -No additional steps are required. -``` diff --git a/packages/opencode/.opencode/kompass.jsonc b/packages/opencode/.opencode/kompass.jsonc index 46806e6..22b63b7 100644 --- a/packages/opencode/.opencode/kompass.jsonc +++ b/packages/opencode/.opencode/kompass.jsonc @@ -34,9 +34,6 @@ "pr/review": { "enabled": true }, - "reload": { - "enabled": true - }, "review": { "enabled": true }, diff --git a/packages/opencode/kompass.jsonc b/packages/opencode/kompass.jsonc index fd614b4..21a63e0 100644 --- a/packages/opencode/kompass.jsonc +++ b/packages/opencode/kompass.jsonc @@ -20,7 +20,6 @@ "pr/create": { "enabled": true }, "pr/fix": { "enabled": true }, "pr/review": { "enabled": true }, - "reload": { "enabled": true }, "review": { "enabled": true }, "ship": { "enabled": true }, "rmslop": { "enabled": true }, diff --git a/packages/web/src/components/CommandShowcase.astro b/packages/web/src/components/CommandShowcase.astro index a1483df..5d705cd 100644 --- a/packages/web/src/components/CommandShowcase.astro +++ b/packages/web/src/components/CommandShowcase.astro @@ -20,16 +20,19 @@ interface CommandScenario { command: string; agentName: string; task: string; + group: 'core' | 'ticket' | 'pr' | 'orchestration'; steps: SessionStep[]; } const scenarios: CommandScenario[] = [ + // Core commands { id: 'ask', label: '/ask', command: '/ask is this project cool?', agentName: 'Build Agent', task: 'Answer questions about the current project or code', + group: 'core', steps: [ { id: 'thinking', @@ -58,352 +61,371 @@ const scenarios: CommandScenario[] = [ ] }, { - id: 'ticket-plan', - label: '/ticket/plan', - command: '/ticket/plan #128', - agentName: 'Planner', - task: 'Turn a request or ticket into a scoped implementation plan', + id: 'branch', + label: '/branch', + command: '/branch', + agentName: 'Worker', + task: 'Create categorized branch names', + group: 'core', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Planning the rollout — need to break down the review workflow into actionable steps. Will examine existing patterns and create a scoped plan with clear milestones.' + content: 'Creating branch — need to summarize uncommitted work and generate a categorized branch name based on the change themes.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'ticket_load', args: '#128', status: 'complete' }, - { tool: 'read', args: 'packages/core/commands/pr/review.md', status: 'complete' }, - { tool: 'glob', args: 'packages/core/components/*.md', status: 'complete' } + { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, + { tool: 'bash', args: 'git checkout -b docs/site-refresh', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Phase 1: Extract reusable review components from existing commands', - 'Phase 2: Update navigator agent to coordinate review workflows', - 'Phase 3: Add checklist generation and feedback threading' + 'Created branch: docs/site-refresh', + 'Switched from main to the new work branch' ] } ] }, { - id: 'pr-create', - label: '/pr/create', - command: '/pr/create', - agentName: 'Build', - task: 'Summarize branch work and publish a structured PR', + id: 'commit', + label: '/commit', + command: '/commit', + agentName: 'Worker', + task: 'Generate why-focused commit messages', + group: 'core', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Creating PR — need to load branch changes, check for linked tickets, and generate a structured PR description with checklist sections.' + content: 'Committing — need to inspect staged and unstaged changes, then generate a commit message focused on why the changes were made.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'changes_load', args: 'HEAD...main', status: 'complete' }, - { tool: 'ticket_load', args: '#42', status: 'complete' }, - { tool: 'bash', args: 'git push origin HEAD', status: 'complete' } + { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, + { tool: 'bash', args: 'git add packages/web/src/', status: 'complete' }, + { tool: 'bash', args: 'git commit -m "feat: improve command showcase"', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Created PR #47: Add workflow visualization to homepage', - 'Linked to ticket #42 with structured checklist', - 'PR body includes summary, changes, and testing notes' + 'Staged relevant files', + 'Created a new commit with generated message' ] } ] }, { - id: 'review', - label: '/review', - command: '/review', - agentName: 'Reviewer', - task: 'Review branch changes without editing files', + id: 'commit-and-push', + label: '/commit-and-push', + command: '/commit-and-push', + agentName: 'Worker', + task: 'Commit and push in one pass', + group: 'core', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Reviewing changes — need to load the diff context and examine modified files for potential issues, risks, and improvements without making edits.' + content: 'Committing and pushing — need to stage relevant files, generate a commit message, and push the branch upstream in a single operation.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, - { tool: 'read', args: 'packages/web/src/components/CommandShowcase.astro', status: 'complete' }, - { tool: 'task', args: 'reviewer analysis', status: 'complete' } + { tool: 'bash', args: 'git add packages/web/src/', status: 'complete' }, + { tool: 'bash', args: 'git commit -m "feat: add command showcase"', status: 'complete' }, + { tool: 'bash', args: 'git push origin HEAD', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Strong separation of concerns between scenarios and rendering', - 'Consider adding error handling for failed tool calls', - 'Animation timing is appropriate for the UX flow' + 'Staged 3 modified files', + 'Created commit: feat: add command showcase with animations', + 'Pushed to origin/feature/showcase' ] } ] }, { - id: 'dev', - label: '/dev', - command: '/dev implement the approved workflow in packages/core', - agentName: 'Navigator', - task: 'Orchestrate implementation with validation and checkpointing', + id: 'learn', + label: '/learn', + command: '/learn', + agentName: 'Worker', + task: 'Extract patterns into AGENTS.md', + group: 'core', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Planning implementation — loading ticket context and preparing to delegate tasks to workers. Will coordinate edits and validation checkpoints.' + content: 'Learning — need to inspect existing patterns in the repo and extract reusable guidance into AGENTS.md targets.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'ticket_load', args: '#128', status: 'complete' }, - { tool: 'dispatch', args: '/ticket/plan', status: 'complete' }, - { tool: 'dispatch', args: '/dev worker', status: 'complete' }, - { tool: 'dispatch', args: '/commit-and-push', status: 'complete' } + { tool: 'read', args: 'AGENTS.md', status: 'complete' }, + { tool: 'grep', args: 'function|const|class', status: 'complete' }, + { tool: 'apply_patch', args: 'AGENTS.md', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Planned implementation in coordination with ticket', - 'Delegated to worker for file edits and validation', - 'Committed changes and pushed to remote' + 'Summarized established conventions', + 'Updated agent guidance where the pattern belongs' ] } ] }, { - id: 'ship', - label: '/ship', - command: '/ship', - agentName: 'Navigator', - task: 'Fast path from changes to PR', + id: 'rmslop', + label: '/rmslop', + command: '/rmslop', + agentName: 'Worker', + task: 'Remove unnecessary complexity and duplication', + group: 'core', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Shipping — need to create a work branch, commit changes, and publish a PR. Will orchestrate the full workflow from current state to pull request.' + content: 'Inspecting for slop — need to examine the branch for unnecessary complexity, duplicate code, and workflow glue that can be simplified or removed.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'dispatch', args: '/branch feature/new-workflow', status: 'complete' }, - { tool: 'dispatch', args: '/commit', status: 'complete' }, - { tool: 'dispatch', args: '/pr/create', status: 'complete' } + { tool: 'changes_load', args: 'HEAD~3...HEAD', status: 'complete' }, + { tool: 'read', args: 'packages/core/commands/*.md', status: 'complete' }, + { tool: 'grep', args: 'TODO|FIXME|XXX', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Created branch: feature/new-workflow', - 'Committed 3 files with generated message', - 'Published PR #48: Add new workflow command' + 'Removed 47 lines of duplicate validation logic', + 'Simplified 3 overly-abstract helper functions', + 'Consolidated similar command patterns into shared components' ] } ] }, + + // Ticket commands { - id: 'rmslop', - label: '/rmslop', - command: '/rmslop', - agentName: 'Worker', - task: 'Remove unnecessary complexity and duplication', + id: 'ticket-ask', + label: '/ticket/ask', + command: '/ticket/ask #42 how do I test this?', + agentName: 'Build Agent', + task: 'Answer questions about a ticket and post the response', + group: 'ticket', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Inspecting for slop — need to examine the branch for unnecessary complexity, duplicate code, and workflow glue that can be simplified or removed.' + content: 'Answering ticket question — loading ticket #42 with discussion to understand the testing requirements, then providing a clear answer.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'changes_load', args: 'HEAD~3...HEAD', status: 'complete' }, - { tool: 'read', args: 'packages/core/commands/*.md', status: 'complete' }, - { tool: 'grep', args: 'TODO|FIXME|XXX', status: 'complete' } + { tool: 'ticket_load', args: '#42', status: 'complete' }, + { tool: 'read', args: 'packages/core/package.json', status: 'complete' }, + { tool: 'glob', args: '**/*.test.ts', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Removed 47 lines of duplicate validation logic', - 'Simplified 3 overly-abstract helper functions', - 'Consolidated similar command patterns into shared components' + 'Loaded ticket #42 and discussion history', + 'Posted answer with test examples and setup instructions', + 'Answer now visible on the ticket for the team' ] } ] }, { - id: 'todo', - label: '/todo', - command: '/todo @TODO.md', - agentName: 'Navigator', - task: 'Work through a todo list with checkpoint reviews', + id: 'ticket-create', + label: '/ticket/create', + command: '/ticket/create', + agentName: 'Build Agent', + task: 'Create a ticket from current changes', + group: 'ticket', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Processing todo — loading the todo list and keeping orchestration local. Will ask for plan approval before implementation starts.' + content: 'Creating ticket — loading branch changes, reading modified files to understand themes, then creating a structured issue.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'read', args: 'TODO.md', status: 'complete' }, - { tool: 'dispatch', args: '/ticket/plan #42', status: 'complete' }, - { tool: 'dispatch', args: '/dev', status: 'complete' }, - { tool: 'dispatch', args: '/commit', status: 'complete' } + { tool: 'changes_load', args: 'HEAD...main', status: 'complete' }, + { tool: 'read', args: 'packages/web/src/components/*.astro', status: 'complete' }, + { tool: 'ticket_sync', args: 'create with checklists', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Completed: Update command showcase with more examples', - 'Blocked: Waiting for review on PR #47', - 'Next: Add mobile responsive styling' + 'Analyzed 5 changed files, grouped into 3 themes', + 'Created issue #43: Add workflow documentation', + 'Assigned to @me with implementation checklist' ] } ] }, { - id: 'commit-and-push', - label: '/commit-and-push', - command: '/commit-and-push', - agentName: 'Worker', - task: 'Commit and push in one pass', + id: 'ticket-dev', + label: '/ticket/dev', + command: '/ticket/dev #128', + agentName: 'Navigator', + task: 'Implement a ticket end-to-end', + group: 'ticket', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Committing and pushing — need to stage relevant files, generate a commit message, and push the branch upstream in a single operation.' + content: 'Implementing ticket — loading context and preparing to orchestrate the full workflow: branch creation, development, validation, commit, and PR.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, - { tool: 'bash', args: 'git add packages/web/src/', status: 'complete' }, - { tool: 'bash', args: 'git commit -m "feat: add command showcase"', status: 'complete' }, - { tool: 'bash', args: 'git push origin HEAD', status: 'complete' } + { tool: 'ticket_load', args: '#128', status: 'complete' }, + { tool: 'dispatch', args: '/branch', status: 'complete' }, + { tool: 'dispatch', args: '/dev', status: 'complete' }, + { tool: 'dispatch', args: '/commit-and-push', status: 'complete' }, + { tool: 'dispatch', args: '/pr/create', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Staged 3 modified files', - 'Created commit: feat: add command showcase with animations', - 'Pushed to origin/feature/showcase' + 'Created branch: feature/ticket-128-workflow', + 'Implemented changes with validation', + 'Published PR #49 linked to ticket #128' ] } ] }, { - id: 'branch', - label: '/branch', - command: '/branch', - agentName: 'Worker', - task: 'Create categorized branch names', + id: 'ticket-plan', + label: '/ticket/plan', + command: '/ticket/plan #128', + agentName: 'Planner', + task: 'Turn a request or ticket into a scoped implementation plan', + group: 'ticket', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Creating branch — need to summarize uncommitted work and generate a categorized branch name based on the change themes.' + content: 'Planning the rollout — need to break down the review workflow into actionable steps. Will examine existing patterns and create a scoped plan with clear milestones.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, - { tool: 'bash', args: 'git checkout -b docs/site-refresh', status: 'complete' } + { tool: 'ticket_load', args: '#128', status: 'complete' }, + { tool: 'read', args: 'packages/core/commands/pr/review.md', status: 'complete' }, + { tool: 'glob', args: 'packages/core/components/*.md', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Created branch: docs/site-refresh', - 'Switched from main to the new work branch' + 'Phase 1: Extract reusable review components from existing commands', + 'Phase 2: Update navigator agent to coordinate review workflows', + 'Phase 3: Add checklist generation and feedback threading' ] } ] }, { - id: 'commit', - label: '/commit', - command: '/commit', - agentName: 'Worker', - task: 'Generate why-focused commit messages', + id: 'ticket-plan-and-sync', + label: '/ticket/plan-and-sync', + command: '/ticket/plan-and-sync #128', + agentName: 'Planner', + task: 'Load ticket, create plan, sync it back', + group: 'ticket', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Committing — need to inspect staged and unstaged changes, then generate a commit message focused on why the changes were made.' + content: 'Planning from ticket #128 — loading the ticket context with discussion, inspecting repo patterns, then syncing the scoped plan back to update the ticket.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, - { tool: 'bash', args: 'git add packages/web/src/', status: 'complete' }, - { tool: 'bash', args: 'git commit -m "feat: improve command showcase"', status: 'complete' } + { tool: 'ticket_load', args: '#128 (with comments)', status: 'complete' }, + { tool: 'read', args: 'packages/core/commands/pr/review.md', status: 'complete' }, + { tool: 'glob', args: 'packages/core/components/*.md', status: 'complete' }, + { tool: 'ticket_sync', args: 'update #128 with plan', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Staged relevant files', - 'Created a new commit with generated message' + 'Loaded ticket #128 and discussion history', + 'Created scoped implementation plan', + 'Synced plan back to ticket #128 with checklists' ] } ] }, + + // PR commands { - id: 'learn', - label: '/learn', - command: '/learn', - agentName: 'Worker', - task: 'Extract patterns into AGENTS.md', + id: 'pr-create', + label: '/pr/create', + command: '/pr/create', + agentName: 'Build', + task: 'Summarize branch work and publish a structured PR', + group: 'pr', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Learning — need to inspect existing patterns in the repo and extract reusable guidance into AGENTS.md targets.' + content: 'Creating PR — loading branch changes and reading modified files to group themes. Will resolve ticket handling before publishing.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'read', args: 'AGENTS.md', status: 'complete' }, - { tool: 'grep', args: 'function|const|class', status: 'complete' }, - { tool: 'apply_patch', args: 'AGENTS.md', status: 'complete' } + { tool: 'changes_load', args: 'HEAD...main', status: 'complete' }, + { tool: 'read', args: 'packages/web/src/components/*.astro', status: 'complete' }, + { tool: 'question', args: 'Auto-create ticket, skip, or provide ticket?', status: 'complete' }, + { tool: 'ticket_sync', args: 'auto-create ticket #43', status: 'complete' }, + { tool: 'bash', args: 'git push origin HEAD', status: 'complete' }, + { tool: 'pr_sync', args: 'create PR with checklists', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Summarized established conventions', - 'Updated agent guidance where the pattern belongs' + 'Analyzed changes and grouped into functional themes', + 'Auto-created ticket #43 for tracking', + 'Created PR #47: Add workflow visualization to homepage' ] } ] @@ -414,27 +436,32 @@ const scenarios: CommandScenario[] = [ command: '/pr/fix', agentName: 'Build', task: 'Fix requested PR changes', + group: 'pr', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Fixing PR — need to load PR history and outstanding feedback, then review proposed fixes before applying.' + content: 'Fixing PR — loading PR #47 with review comments and feedback threads, then proposing fixes for approval before applying.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'pr_load', args: 'current', status: 'complete' }, - { tool: 'apply_patch', args: 'requested changes', status: 'complete' }, - { tool: 'bash', args: 'npm run test', status: 'complete' } + { tool: 'pr_load', args: '#47', status: 'complete' }, + { tool: 'question', args: 'Apply these 3 fixes?', status: 'complete' }, + { tool: 'apply_patch', args: 'fix error handling in utils.ts', status: 'complete' }, + { tool: 'bash', args: 'git commit -m "fix: address review feedback"', status: 'complete' }, + { tool: 'bash', args: 'git push origin HEAD', status: 'complete' }, + { tool: 'pr_sync', args: 'reply to review threads', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Fixed requested issues on the branch', - 'Posted replies to the relevant review threads' + 'Proposed 3 fixes for review feedback', + 'Applied fixes after user approval', + 'Pushed commit and replied to inline comments' ] } ] @@ -445,36 +472,179 @@ const scenarios: CommandScenario[] = [ command: '/pr/review', agentName: 'Reviewer', task: 'Review PR with inline comments', + group: 'pr', steps: [ { id: 'thinking', phase: 'thinking', - content: 'Reviewing PR — need to load PR, reviews, comments, files, and diff context. Will load linked ticket too before reviewing.' + content: 'Reviewing PR — loading PR #47, linked ticket, and diff context. Will analyze changes and publish a formal review with inline comments and grade.' }, { id: 'tools', phase: 'tool_calls', toolCalls: [ - { tool: 'pr_load', args: 'current', status: 'complete' }, + { tool: 'pr_load', args: '#47', status: 'complete' }, { tool: 'ticket_load', args: '#42', status: 'complete' }, - { tool: 'changes_load', args: 'HEAD...main', status: 'complete' } + { tool: 'changes_load', args: 'HEAD...main', status: 'complete' }, + { tool: 'pr_sync', args: 'publish review with comments', status: 'complete' } + ] + }, + { + id: 'output', + phase: 'output', + output: [ + 'Grade: ★★★★☆ — solid implementation with minor issues', + 'Line 45: Consider extracting this into a helper function', + 'Line 78: Add null check before accessing property', + 'Line 124: Typo in variable name "recieve" → "receive"' + ] + } + ] + }, + { + id: 'review', + label: '/review', + command: '/review', + agentName: 'Reviewer', + task: 'Review branch changes without editing files', + group: 'pr', + steps: [ + { + id: 'thinking', + phase: 'thinking', + content: 'Reviewing changes — loading diff context and reading modified files to provide inline feedback and risk assessment without making edits.' + }, + { + id: 'tools', + phase: 'tool_calls', + toolCalls: [ + { tool: 'changes_load', args: 'uncommitted', status: 'complete' }, + { tool: 'read', args: 'packages/web/src/components/CommandShowcase.astro', status: 'complete' }, + { tool: 'task', args: 'reviewer analysis', status: 'complete' } + ] + }, + { + id: 'output', + phase: 'output', + output: [ + 'Grade: ★★★★☆ — clean implementation, minor suggestions', + 'Line 45: Consider extracting this into a helper function', + 'Line 78: Add null check before accessing property', + 'Line 124: Typo in variable name "recieve" → "receive"' + ] + } + ] + }, + + // Orchestration commands + { + id: 'dev', + label: '/dev', + command: '/dev implement the approved workflow in packages/core', + agentName: 'Navigator', + task: 'Orchestrate implementation with validation and checkpointing', + group: 'orchestration', + steps: [ + { + id: 'thinking', + phase: 'thinking', + content: 'Planning implementation — loading ticket context and preparing to delegate tasks to workers. Will coordinate edits and validation checkpoints.' + }, + { + id: 'tools', + phase: 'tool_calls', + toolCalls: [ + { tool: 'ticket_load', args: '#128', status: 'complete' }, + { tool: 'dispatch', args: '/ticket/plan', status: 'complete' }, + { tool: 'dispatch', args: '/dev worker', status: 'complete' }, + { tool: 'dispatch', args: '/commit-and-push', status: 'complete' } + ] + }, + { + id: 'output', + phase: 'output', + output: [ + 'Planned implementation in coordination with ticket', + 'Delegated to worker for file edits and validation', + 'Committed changes and pushed to remote' + ] + } + ] + }, + { + id: 'ship', + label: '/ship', + command: '/ship', + agentName: 'Navigator', + task: 'Fast path from changes to PR', + group: 'orchestration', + steps: [ + { + id: 'thinking', + phase: 'thinking', + content: 'Shipping — need to create a work branch, commit changes, and publish a PR. Will orchestrate the full workflow from current state to pull request.' + }, + { + id: 'tools', + phase: 'tool_calls', + toolCalls: [ + { tool: 'dispatch', args: '/branch feature/new-workflow', status: 'complete' }, + { tool: 'dispatch', args: '/commit', status: 'complete' }, + { tool: 'dispatch', args: '/pr/create', status: 'complete' } ] }, { id: 'output', phase: 'output', output: [ - 'Added inline comments and review summary', - 'Approved or requested changes based on findings' + 'Created branch: feature/new-workflow', + 'Committed 3 files with generated message', + 'Published PR #48: Add new workflow command' + ] + } + ] + }, + { + id: 'todo', + label: '/todo', + command: '/todo @TODO.md', + agentName: 'Navigator', + task: 'Work through a todo list with checkpoint reviews', + group: 'orchestration', + steps: [ + { + id: 'thinking', + phase: 'thinking', + content: 'Processing todo — loading the todo list and keeping orchestration local. Will ask for plan approval before implementation starts.' + }, + { + id: 'tools', + phase: 'tool_calls', + toolCalls: [ + { tool: 'read', args: 'TODO.md', status: 'complete' }, + { tool: 'dispatch', args: '/ticket/plan #42', status: 'complete' }, + { tool: 'dispatch', args: '/dev', status: 'complete' }, + { tool: 'dispatch', args: '/commit', status: 'complete' } + ] + }, + { + id: 'output', + phase: 'output', + output: [ + 'Completed: Update command showcase with more examples', + 'Blocked: Waiting for review on PR #47', + 'Next: Add mobile responsive styling' ] } ] } ]; -// Split scenarios into two groups -const orchestratorScenarios = scenarios.filter(s => s.agentName === 'Navigator'); -const commandScenarios = scenarios.filter(s => s.agentName !== 'Navigator'); +// Group scenarios +const coreScenarios = scenarios.filter(s => s.group === 'core'); +const ticketScenarios = scenarios.filter(s => s.group === 'ticket'); +const prScenarios = scenarios.filter(s => s.group === 'pr'); +const orchestrationScenarios = scenarios.filter(s => s.group === 'orchestration'); --- @@ -488,13 +658,13 @@ const commandScenarios = scenarios.filter(s => s.agentName !== 'Navigator');
- +
- Commands + Core
- {commandScenarios.map((scenario, index) => ( + {coreScenarios.map((scenario, index) => (
-
- Orchestrators +
+ Ticket +
+ {ticketScenarios.map((scenario) => ( + + ))} +
+
+ +
+ PR +
+ {prScenarios.map((scenario) => ( + + ))} +
+
+ +
+ Orchestration
- {orchestratorScenarios.map((scenario) => ( + {orchestrationScenarios.map((scenario) => (