[bot] Add /pr command, new hook types, agent invocation options, and SDK session APIs (CLI v1.0.5–v1.0.7)#14
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
…on options, and SDK session APIs New features from GitHub Copilot CLI v1.0.5–v1.0.7: - Add /pr Command section: autonomous PR creation, CI fix, review feedback, and merge conflict resolution from the CLI (v1.0.5) - Add preCompact hook type: runs before context compaction (v1.0.5) - Add subagentStart hook type: inject context when subagents spawn (v1.0.7-0) - Update Custom Agents: document user-invocable and disable-model-invocation invocation options (replacing the removed infer option) - Update Copilot SDK: document experimental session APIs for listing and managing skills, MCP servers, and plugins with auto-discovery (v1.0.7-0) - Update Quick Reference table, TOC, and ASCII At a Glance diagram Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
What was found
Checking GitHub Copilot CLI releases and community sources for the past 7 days (2026-03-10 to 2026-03-17):
CLI v1.0.5 (2026-03-13)
/prslash command — create PRs, fix failing CI, address reviewer comments, resolve merge conflicts from the terminalpreCompacthook — new lifecycle event that fires before context compaction starts/extensionscommand,/diffwith syntax highlighting,/version, enhanced/changelogCLI v1.0.7-0 (2026-03-17, prerelease)
subagentStarthook — fires when a subagent is spawned; supports injecting additional context into the subagent's promptawesome-copilot (2026-03-16)
inferoption removed and replaced withuser-invocableanddisable-model-invocationfor clearer agent behavior controlWhat was updated in the guide
Hooks section
preCompactandsubagentStartto the hook types tablehooks.jsonto demonstrate both new hook typesNew section: The /pr Command (Agentic Features)
Custom Agents section
user-invocable: trueto the example agent frontmatterInvocation optionsrow to the summary table documentinguser-invocableanddisable-model-invocationCopilot SDK section
listSkills,listMcpServers,listPlugins)Session APIsrow to the summary table noting the v1.0.7+ experimental statusSource announcements