feat(ask): add capability context — command surface, open PRs, live milestones#145
Merged
snipcodeit merged 1 commit intomainfrom Mar 2, 2026
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
load_capability_contextstep tomgw:askthat builds a compact command surface index fromcommands/*.mdfront matter, fetches open PRs viagh pr list, and fetches live GitHub milestones viagh api<mgw_capabilities>block in the classification agent prompt, giving it full awareness of MGW's command surface and live project stateCloses #144
Milestone Context
Changes
commands/ask.mdload_capability_contextinserted betweenload_project_contextandload_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 sourcessuccess_criteriaextended with 3 new checklist itemsTest Plan
mgw:askwith a capability question (e.g. "does mgw:run handle --dry-run?") — verify agent response references the command surfacemgw:askwith no.mgw/project.jsonpresent — verify milestone list falls back to live GitHub API data instead of emptymgw:askwith an open PR in flight — verify agent context includes the PRmgw:askwith a standard issue-classification question — verify no regression in classification behavior (issue/active-state context unchanged)