diff --git a/claude/code/commands/dispatch.md b/claude/code/commands/dispatch.md new file mode 100644 index 0000000..be39cf1 --- /dev/null +++ b/claude/code/commands/dispatch.md @@ -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. diff --git a/claude/code/commands/recall.md b/claude/code/commands/recall.md new file mode 100644 index 0000000..487b4cd --- /dev/null +++ b/claude/code/commands/recall.md @@ -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. diff --git a/claude/code/commands/scan.md b/claude/code/commands/scan.md new file mode 100644 index 0000000..b00d51a --- /dev/null +++ b/claude/code/commands/scan.md @@ -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. diff --git a/claude/code/commands/status.md b/claude/code/commands/status.md new file mode 100644 index 0000000..2a912a5 --- /dev/null +++ b/claude/code/commands/status.md @@ -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. diff --git a/claude/code/mcp.json b/claude/code/mcp.json index 7abf764..58858ae 100644 --- a/claude/code/mcp.json +++ b/claude/code/mcp.json @@ -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" },