ghc-allways-agent
v0.1.2
Published
OpenCode plugin that converts all GitHub Copilot requests to use agent initiator header
Readme
ghc-allways-agent
OpenCode plugin that converts all GitHub Copilot requests to use the agent initiator header.
What it does
By default, GitHub Copilot API requests are sent with x-initiator: user. This plugin intercepts all requests to github-copilot providers via the chat.headers hook and sets x-initiator to "agent" instead.
This gives access to agent-tier capabilities on every Copilot request, not just subagent sessions.
Installation
Add the plugin to your OpenCode config (~/.config/opencode/config.json):
{
"plugins": ["ghc-allways-agent"]
}Development
mise run build- Build the pluginmise run test- Run testsmise run lint- Lint codemise run lint:fix- Fix linting issuesmise run format- Format code with Prettier
License
MIT License. See the LICENSE file for details.
