Skip to content

Add NO_SKILLS env var - #2179

Merged
JasonYeMSFT (JasonYeMSFT) merged 2 commits into
microsoft:mainfrom
JasonYeMSFT:chuye/skill-override
May 6, 2026
Merged

Add NO_SKILLS env var#2179
JasonYeMSFT (JasonYeMSFT) merged 2 commits into
microsoft:mainfrom
JasonYeMSFT:chuye/skill-override

Conversation

@JasonYeMSFT

Copy link
Copy Markdown
Member

Description

Add an environment variable that can optionally let the agent runner run without loading any skills.

Checklist

  • Tests pass locally (cd tests && npm test)
  • If modifying skill descriptions: verified routing correctness with integration tests (npm run test:skills:integration -- <skill>)
  • If modifying skill USE FOR / DO NOT USE FOR / PREFER OVER clauses: confirmed no routing regressions for competing skills

Related Issues

Copilot AI review requested due to automatic review settings May 6, 2026 19:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support in the test agent runner for an opt-in environment variable (NO_SKILLS) to start a Copilot session without loading any skill directories, enabling runs that don’t rely on output/skills.

Changes:

  • Read process.env.NO_SKILLS when creating a session.
  • When set, pass an empty skillDirectories array to client.createSession(...) instead of the default skills directory.
Show a summary per file
File Description
tests/utils/agent-runner.ts Adds NO_SKILLS env var support to optionally disable skill loading in the agent runner session configuration.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread tests/utils/agent-runner.ts Outdated
@JasonYeMSFT
JasonYeMSFT (JasonYeMSFT) merged commit d6841e2 into microsoft:main May 6, 2026
11 checks passed
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.

3 participants