Repository navigation
feat: publish Agent Plugins packages for Codex and Copilot to glean-plugins - #37
Draft
steve-calvert-glean wants to merge 2 commits into
Draft
steve-calvert-glean wants to merge 2 commits into
steve-calvert-glean wants to merge 2 commits into
Conversation
…lugins Add an agent-plugins target that builds each plugin once as an Agent Plugins package, with a marketplace for Codex and one for GitHub Copilot, and publish it to gleanwork/glean-plugins on release. - The packages match the codex target's: the same plugin.json (Codex's card under extensions["com.openai"]), mcp.json and skills. The Codex interface and entry values are now shared constants, so the two targets can't drift. - Copilot also gets the ten custom agents, as com.github.copilot/agents/NAME.agent.md. - overrides/agent-plugins/ holds READMEs with install steps for both clients, plus the Codex override's MCP config and assets. skill-creation-guide uses the shared version. - validate, the changelog check, publish.yml, README and RELEASE.md cover the new target. Requires pluginpack with agent-plugins clients support.
Add npm run e2e:install. It installs both plugins from a local build or a GitHub marketplace ref in Codex and GitHub Copilot CLI, each with a throwaway home. It then checks the skills, the Copilot agents, and that the Glean MCP server answers initialize and tools/list from each client's resolved config. RELEASE.md now runs it against the glean-plugins sync branch before a release.
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.
Stacked on #35. Merge that first.
Problem
Codex reads the open Agent Plugins format, and so does GitHub Copilot. Our only Agent Plugins output is the
codextarget. It publishes tocodex-pluginswith a Codex-only marketplace, so Copilot users have nothing to install.Change
This adds an
agent-pluginstarget that builds each plugin once as an Agent Plugins package. It also writes a marketplace for Codex and one for Copilot. On release it publishes to the newgleanwork/glean-pluginsrepo.codextarget's: the sameplugin.json(with Codex's card underextensions["com.openai"]),mcp.jsonand skills. The Codexinterfaceand marketplaceentryvalues are now shared constants, so the two targets can't drift apart.com.github.copilot/agents/NAME.agent.md.overrides/agent-plugins/holds READMEs with install steps for both clients, plus the Codex override's MCP config and assets.validate, the changelog check,publish.yml,README.mdandRELEASE.mdall cover the new target.The
claude,cursorandcodexoutputs don't change.Testing
npm testpasses with@gleanwork/pluginpack0.12.0, and all four targets validate.publish.ymlrun from this branch passed every job and opened gleanwork/glean-plugins#1.npm run e2e:installpasses all 15 checks against that sync branch (--source gleanwork/glean-plugins --ref pluginpack/sync-agent-plugins) and against a local build. In Codex 0.160.1 and Copilot CLI 1.0.100, both plugins install, the 19gleanskills and Copilot's 10 agents are present, and the Glean MCP server answersinitializeandtools/listfrom each client's resolved config.Still to test before release: a signed-in Copilot session (agents, Glean sign-in, tool calls), VS Code and Cursor.
Open questions
skill-creation-guideuses the shared version. That version spawns thework-pattern-analyzerandskill-generatoragents. Copilot has them, but Codex doesn't. The Codex-only version hands off to$skill-creatorinstead, which Copilot lacks. The likely fix is a version that uses the agents when they exist and does the work itself otherwise.glean-dev-docsstill needs a manualmcp addin each client, as it does for Codex today.