Skip to content

Add --deny-tool fetch_copilot_cli_documentation to Copilot engine by default#5888

Closed
Copilot wants to merge 4 commits intomainfrom
copilot/update-agentic-engine-deny-fetch
Closed

Add --deny-tool fetch_copilot_cli_documentation to Copilot engine by default#5888
Copilot wants to merge 4 commits intomainfrom
copilot/update-agentic-engine-deny-fetch

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 8, 2025

Prevents Copilot agents from accessing their own documentation tool by default for security.

Changes

  • pkg/workflow/copilot_engine.go: Added --deny-tool fetch_copilot_cli_documentation flag after --disable-builtin-mcps in the Copilot CLI argument builder
  • pkg/workflow/copilot_engine_test.go: Added test assertion to verify the deny-tool flag is present in generated commands
  • 61 workflow lock files: Recompiled to include the new flag in all Copilot-based workflows

Example

Generated Copilot commands now include:

copilot --disable-builtin-mcps --deny-tool fetch_copilot_cli_documentation --allow-tool shell ...

The flag appears in both agent execution jobs and threat detection jobs.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login it/ref/tags/v5 hanges) ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo i_documentation\git nds/plan.md 64/pkg/tool/linu--show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo ortc�� -go.git stmain.go ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet i_documentation\node E.md 64/pkg/tool/linu--help ache/go/1.25.0/x64/pkg/tool/linu--auto (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login ference.git ference.git ache/go/1.25.0/x64/pkg/tool/linudelete i_documentation\gh nds/taskstoissueapi 64/pkg/tool/linuuser ache/go/1.25.0/x--jq -1 tags/v5 64/pkg/tool/linux_amd64/vet e (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login tags/v5 --jq ab6519c5020aaab06fd90e016b9081c74cb/log.json i_documentation\gh START.md 64/pkg/tool/linuuser 1/x64/bin/npm @pla�� --help 64/pkg/tool/linux_amd64/vet (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Update copilot agentic engine to deny tool "fetch_copilot_cli_documentation" by default


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Changeset

  • Type: patch
  • Description: Add default --deny-tool fetch_copilot_cli_documentation flag to the Copilot engine so Copilot agents cannot access their own documentation tool by default. This updates generated Copilot CLI arguments and the corresponding workflow lockfiles.

🏴‍☠️ Ahoy! This treasure was crafted by Changeset Generator

Copilot AI and others added 2 commits December 8, 2025 17:33
Copilot AI changed the title [WIP] Update copilot agentic engine to deny fetch_copilot_cli_documentation by default Add --deny-tool fetch_copilot_cli_documentation to Copilot engine by default Dec 8, 2025
Copilot AI requested a review from pelikhan December 8, 2025 17:47
@pelikhan pelikhan added the smoke label Dec 8, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request...

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

📰⚠️🔥❌🚨🔧 https://github.com/githubnext/gh-aw/actions/runs/20037744110

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

Smoke Test Results - Claude Engine

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PR data
  • ✅ File Writing: Created /tmp/gh-aw/agent/smoke-test-claude-20037744139.txt
  • ✅ Bash Tool: Verified file contents
  • ✅ Playwright MCP: Navigated to github.com, title contains "GitHub"
  • ✅ Cache Memory: Created /tmp/gh-aw/cache-memory/smoke-test-20037744139.txt
  • ❌ Safe Input gh Tool: Not available in environment

Status: PASS (5/6 tests passed)

💥 [THE END] — Illustrated by Smoke Claude fer issue #5888 🗺️

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2025

Smoke test results:

🔮 The oracle has spoken through Smoke Codex fer issue #5888 🗺️

@pelikhan pelikhan closed this Dec 8, 2025
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Dec 8, 2025

no effect

@pelikhan pelikhan deleted the copilot/update-agentic-engine-deny-fetch branch December 8, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants