Skip to content

ci: install the plugin in Copilot CLI and Codex on every PR - #155

Merged
kazo0 merged 1 commit into
mainfrom
ci/agent-install-smoke-test
Sep 25, 2026
Merged

kazo0 merged 1 commit into
mainfrom
ci/agent-install-smoke-test

Conversation

@kazo0

@kazo0 kazo0 commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #

PR Type

  • Build or CI related changes

What is the current behavior?

CI only checks the plugin the way Claude Code reads it (claude plugin validate). Codex and Copilot CLI have no validate command. A manifest or marketplace change that breaks them only shows up when a user tries to install.

What is the new behavior?

A new agents job in validate-plugin.yml runs .github/scripts/Test-AgentInstall.ps1. It installs the plugin in pinned Copilot CLI (1.0.3) and Codex (0.154.0), using throwaway COPILOT_HOME/CODEX_HOME folders and no credentials:

  1. The plugin from this checkout:
    • Copilot CLI must report Installed <n> skills.
    • Codex must list every skill in the skill list it gives the model (codex debug prompt-input).
    • This catches manifest problems, such as a broken skills path, for both agents.
  2. Each agent's marketplace file from this checkout must install the plugin from its pinned tag. That's .github/plugin/marketplace.json for Copilot CLI (VS Code reads it too) and .agents/plugins/marketplace.json for Codex. Until now only Claude's marketplace was validated.
  3. Report only: how many characters of each skill description Codex actually shows the model. This goes to the job summary and never fails the build.

Why the Codex report matters. Codex lists every skill with only the first N characters of its description. It hands out characters round-robin within a budget of 2% of the model's context window, which is 5,440 tokens for a 272k model (codex-rs/ext/skills/src/render.rs). Our skills share that budget with Codex's built-in skills and anything else the user has installed. On my machine, with ~175 personal skills installed, Codex showed only 4–6 characters per description. That's effectively nothing to choose by. This job measures the clean case, with no other skills installed, so we can see how much room the start of each description really gets.

What this job does not cover: the contents of skill frontmatter. Copilot CLI counts skill folders, and Codex's own lenient parser still lists a skill with invalid YAML. claude plugin validate and, after #154, agentskills validate cover frontmatter.

VS Code has no headless way to install plugins. It reads the same marketplace file as Copilot CLI, so step 2 covers part of it.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

Additional Information

Testing, locally on Windows with no credentials:

  • Passes against current main.
  • Fails, naming each agent, on:
    • broken path values in the Copilot and Codex marketplace entries,
    • a broken skills path in the plugin manifests.
  • An earlier version left COPILOT_HOME set after the run, so I added a restore. The user's real Copilot config was untouched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea

Neither CLI has a validate command, so CI installs the plugin in each, with throwaway homes and no credentials. It checks that the checkout's plugin lists every skill in both agents, and that each agent's marketplace file installs the pinned release.

Also reports how much of each skill description Codex shows the model. Codex keeps only the first N characters of every description, within 2% of the context window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
@kazo0
kazo0 merged commit b371345 into main Sep 25, 2026
4 checks passed
@kazo0
kazo0 deleted the ci/agent-install-smoke-test branch September 25, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant