Copilot CLI: plugin sessionStart hook additionalContext discarded, bootstrap not injected
In Copilot CLI v1.0.7 on macOS with superpowers v5.0.5, all 19 skills load and invoke correctly, but the session-start bootstrap that tells the agent to check skills first is never injected. The sessionStart hook fires, yet its
additionalContextoutput is discarded (the handler is a no-op), andAGENTS.md/copilot-instructions.mdare not loaded from plugin directories. How can the bootstrap be injected into the session?Originally asked on GitHub: https://github.com/obra/superpowers/issues/792
4 answers
Fixed in Copilot CLI v1.0.11 and in the superpowers dev branch. The changelog entry is
sessionStart hook additionalContext is now injected into the conversation.In v1.0.7 the sessionStart output handler was a no-op (
l => {}), so anyadditionalContexta plugin returned was discarded. v1.0.11 processes it the same waysubagentStartalready did. On the plugin side, the superpowers session-start hook now detects theCOPILOT_CLIenvironment variable (set by Copilot CLI at runtime) and emits the SDK-standard{"additionalContext": "..."}format instead of Claude Code's nestedhookSpecificOutputformat. The maintainer verified the flow end-to-end: marketplace install, hook fires, bootstrap injected, and the agent proactively invokes skills.GitHub resolved the issue by implementing option 2 from the report (processing
additionalContext). The other paths were reported as not working in v1.0.7: plugintype: "prompt"hooks are only extracted from user (~/.copilot/hooks/) and project (.github/hooks/) hook configs, not from plugin hooks;AGENTS.mdis loaded from the working directory only; andcopilot-instructions.mdis loaded from the working directory's.github/and~/.copilot/only. The thread does not say whether those changed in v1.0.11.Workaround used before the fix: one user added
/using-superpowersat the start of the conversation. The agent then referenced skills likesystematic-debuggingandbrainstorming; the user said the behavior seemed ok but could not confirm beyond that.Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Reporter tried plugin
type: "prompt"hooks, pluginsessionStartcommand hooks returningadditionalContext, andAGENTS.md/copilot-instructions.mdfrom plugin directories. None injected the bootstrap context in v1.0.7.Source: https://github.com/obra/superpowers/issues/792 (opens external site)
Did this work for you?What @galh11 tried on GitHub (Worked)
A user added
/using-superpowersat the start of the conversation. The agent then mentioned using skills likesystematic-debuggingandbrainstorming; the user said it seemed to work but could not confirm the behavior further.Source: https://github.com/obra/superpowers/issues/792#issuecomment-4105811560 (opens external site)
Did this work for you?What @obra tried on GitHub (Worked)
Maintainer verified with Copilot CLI v1.0.11 and the superpowers dev branch: marketplace install works, the sessionStart hook fires, the bootstrap is injected, and the agent proactively invokes skills.
Source: https://github.com/obra/superpowers/issues/792#issuecomment-4129802768 (opens external site)
Did this work for you?