Skip to content

feat(ask): add capability context — command surface, open PRs, live milestones#145

Merged
snipcodeit merged 1 commit intomainfrom
issue/144-mgw-ask-capability-context
Mar 2, 2026
Merged

feat(ask): add capability context — command surface, open PRs, live milestones#145
snipcodeit merged 1 commit intomainfrom
issue/144-mgw-ask-capability-context

Conversation

@snipcodeit
Copy link
Owner

Summary

  • Adds new load_capability_context step to mgw:ask that builds a compact command surface index from commands/*.md front matter, fetches open PRs via gh pr list, and fetches live GitHub milestones via gh api
  • Injects all three into a <mgw_capabilities> block in the classification agent prompt, giving it full awareness of MGW's command surface and live project state
  • No new files, no lib changes — purely additive context in a single command file

Closes #144

Milestone Context

  • Milestone: v3.5 — Foundation Hardening
  • Phase: quick task — single file, no phase plan required

Changes

commands/ask.md

  • New step load_capability_context inserted between load_project_context and load_active_state
  • <mgw_capabilities> block (${COMMAND_SURFACE}, ${PR_CONTEXT}, ${MILESTONE_LIST}) added to Task() prompt after <recent_changes>, before <classification_rules>
  • <context> header updated to document the two new sources
  • success_criteria extended with 3 new checklist items

Test Plan

  • Run mgw:ask with a capability question (e.g. "does mgw:run handle --dry-run?") — verify agent response references the command surface
  • Run mgw:ask with no .mgw/project.json present — verify milestone list falls back to live GitHub API data instead of empty
  • Run mgw:ask with an open PR in flight — verify agent context includes the PR
  • Run mgw:ask with a standard issue-classification question — verify no regression in classification behavior (issue/active-state context unchanged)

…Rs, live milestones (#144)

Adds a new `load_capability_context` step to commands/ask.md that gives
the classification agent awareness of all MGW command names/descriptions
(from commands/*.md front matter), open PRs (gh pr list), and live GitHub
milestones (gh api). Injects these into a <mgw_capabilities> block in the
agent prompt, and updates the <context> header and success_criteria to
document the new sources.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the slash-commands Changes to slash command files label Mar 2, 2026
@snipcodeit snipcodeit merged commit 060db30 into main Mar 2, 2026
1 check passed
@snipcodeit snipcodeit deleted the issue/144-mgw-ask-capability-context branch March 2, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

slash-commands Changes to slash command files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mgw:ask missing capability context — does not read command definitions or live PR/milestone state

1 participant