Skip to content

Remove hardcoded safeoutputs tool list from agent prompt#12132

Merged
lpcox merged 2 commits intomainfrom
copilot/remove-tool-listing-in-prompt
Jan 28, 2026
Merged

Remove hardcoded safeoutputs tool list from agent prompt#12132
lpcox merged 2 commits intomainfrom
copilot/remove-tool-listing-in-prompt

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

The agent prompt hardcoded available safeoutputs tools instead of letting agents discover them from the MCP server at runtime.

Changes

  • Modified pkg/workflow/unified_prompt_step.go to remove tool list generation and formatting
  • Updated prompt text to instruct discovery from safeoutputs MCP server
  • Recompiled all workflows (133 affected)

Before/After

- **Available tools**: add_comment, assign_to_agent, missing_tool, noop
+ Discover available tools from the safeoutputs MCP server.

This ensures the agent always sees the current tool set without requiring workflow recompilation when tools are added or removed.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Removed the "**Available tools**: ..." line that listed all safe output tools
- Updated prompt to say "Discover available tools from the safeoutputs MCP server"
- Tools are now dynamically discovered from the MCP server instead of being hardcoded
- Recompiled all 140 workflows with the updated prompt text
- All tests pass and code is formatted/linted

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove available tools listing from agent prompt Remove hardcoded safeoutputs tool list from agent prompt Jan 28, 2026
Copilot AI requested a review from lpcox January 28, 2026 00:16
@github-actions
Copy link
Contributor

🔍 PR Triage Results

Category: chore | Risk: medium | Priority: 40/100

Scores Breakdown

  • Impact: 20/50 - Maintenance work
  • Urgency: 10/30 - Recent PR, CI blocked
  • Quality: 10/20 - CI status unknown

📋 Recommended Action: batch_review

This PR removes hardcoded tool lists from the agent prompt, allowing dynamic discovery from the safeoutputs MCP server. This is a maintenance improvement that touches 134 workflow files.

⚠️ CI is currently blocked - needs investigation before merge.

Impact: Once the tool set changes, workflows won't require recompilation to reflect the updates.


Triaged by PR Triage Agent on 2026-01-28T00:34:49Z

AI generated by PR Triage Agent

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.

2 participants