feat(plugin): add dispatch, status, recall, scan commands
New slash commands for the agentic system: - /dispatch — dispatch subagent to sandboxed workspace - /status — show workspace status (running/blocked/completed) - /recall — search OpenBrain memories - /scan — find actionable Forge issues Fix MCP URL: api.lthn.sh/mcp → mcp.lthn.sh (subdomain routing). Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
7da0294100
commit
6045805dfc
5 changed files with 73 additions and 1 deletions
30
claude/code/commands/dispatch.md
Normal file
30
claude/code/commands/dispatch.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
name: dispatch
|
||||
description: Dispatch a subagent to work on a task in a sandboxed workspace
|
||||
arguments:
|
||||
- name: repo
|
||||
description: Target repo (e.g. go-io, go-scm, mcp)
|
||||
required: true
|
||||
- name: task
|
||||
description: What the agent should do
|
||||
required: true
|
||||
- name: agent
|
||||
description: Agent type (claude, gemini, codex)
|
||||
default: claude
|
||||
- name: template
|
||||
description: Prompt template (coding, conventions, security)
|
||||
default: coding
|
||||
- name: plan
|
||||
description: Plan template (bug-fix, code-review, new-feature, refactor, feature-port)
|
||||
---
|
||||
|
||||
Dispatch a subagent to work on `$ARGUMENTS.repo` with task: `$ARGUMENTS.task`
|
||||
|
||||
Use the `mcp__core__agentic_dispatch` tool with:
|
||||
- repo: $ARGUMENTS.repo
|
||||
- task: $ARGUMENTS.task
|
||||
- agent: $ARGUMENTS.agent
|
||||
- template: $ARGUMENTS.template
|
||||
- plan_template: $ARGUMENTS.plan (if provided)
|
||||
|
||||
After dispatching, report the workspace dir and PID.
|
||||
19
claude/code/commands/recall.md
Normal file
19
claude/code/commands/recall.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
name: recall
|
||||
description: Search OpenBrain for memories and context
|
||||
arguments:
|
||||
- name: query
|
||||
description: What to search for
|
||||
required: true
|
||||
- name: project
|
||||
description: Filter by project
|
||||
- name: type
|
||||
description: Filter by type (decision, plan, convention, architecture, observation, fact)
|
||||
---
|
||||
|
||||
Use the `mcp__core__brain_recall` tool with:
|
||||
- query: $ARGUMENTS.query
|
||||
- top_k: 5
|
||||
- filter with project and type if provided
|
||||
|
||||
Show results with score, type, project, date, and content preview.
|
||||
12
claude/code/commands/scan.md
Normal file
12
claude/code/commands/scan.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
name: scan
|
||||
description: Scan Forge repos for open issues with actionable labels (agentic, help-wanted, bug)
|
||||
arguments:
|
||||
- name: org
|
||||
description: Forge org to scan
|
||||
default: core
|
||||
---
|
||||
|
||||
Use the `mcp__core__agentic_scan` tool with org: $ARGUMENTS.org
|
||||
|
||||
Show results as a table with columns: Repo, Issue #, Title, Labels.
|
||||
11
claude/code/commands/status.md
Normal file
11
claude/code/commands/status.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
name: status
|
||||
description: Show status of all agent workspaces (running, completed, blocked, failed)
|
||||
---
|
||||
|
||||
Use the `mcp__core__agentic_status` tool to list all agent workspaces.
|
||||
|
||||
Show results as a table with columns: Name, Status, Agent, Repo, Task, Age.
|
||||
|
||||
For blocked workspaces, show the question from BLOCKED.md.
|
||||
For completed workspaces with output, show the last 10 lines of the agent log.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
"mcpServers": {
|
||||
"core": {
|
||||
"type": "http",
|
||||
"url": "https://api.lthn.sh/mcp",
|
||||
"url": "https://mcp.lthn.sh",
|
||||
"headers": {
|
||||
"Authorization": "Bearer $CORE_BRAIN_KEY"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue