Skip to content

Add Q agentic workflow for optimizing workflows#1611

Merged
pelikhan merged 3 commits into
mainfrom
copilot/add-agentic-workflow-q
Oct 12, 2025
Merged

Add Q agentic workflow for optimizing workflows#1611
pelikhan merged 3 commits into
mainfrom
copilot/add-agentic-workflow-q

Conversation

Copilot AI commented Oct 12, 2025

Copy link
Copy Markdown
Contributor
  • Understand the requirements for the Q workflow (James Bond reference)
  • Create the workflow file .github/workflows/q.md with all features
  • Compile the workflow to generate .lock.yml file (235KB)
  • Test the workflow configuration
  • Run make agent-finish for final validation (all passed)
  • Code review completed
  • Address PR feedback:
    • Wrapped Current Context section in XML tags (<current_context>) for better prompt parsing
    • Added explicit mention of safe-outputs MCP server in Phase 6
    • Verified strict mode is already enabled (strict: true)
    • Recompiled workflow successfully (235.8 KB)
    • All tests passing
Original prompt

Add an agentic workflow, q (récente de James bond) whose task is to improve/optimize/fix Agentic workflows.

This workflows starts with the command "/q" on an issue or an issue comment and processes the current text context. Creates a pull request with changes.

Imports the gh-aw,serena,Tavily shared workflows.

It should ignore changes to lock files and let copilot agent compile them later.

It should use the gh-aw tools to investigate logs and audits to get live information from agentic workflows. NEVER EVER make up a log, always pull from live data.

Use the gh-aw compiler to ensure changes to the workflows are syntactically correct. Keep changes to a minimum.

Areas to look into: adding missing tools (from missing tools report, permissions issue), detecting poor performance through excessive repetitive mcp cools, try to extract common execution pathway and generate those as steps in the workflow.

Uses copilot engine.


💡 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.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

@pelikhan pelikhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot

  • mention safe outputs
  • use compilation in strict mode

Comment thread .github/workflows/q.md
## Current Context

- **Repository**: ${{ github.repository }}
- **Triggering Content**: "${{ needs.activation.outputs.text }}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot wrap this content in xml tags following prompt best practices

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Wrapped the Current Context section in <current_context> XML tags following prompt best practices. This makes it easier for the AI to parse structured information. (commit b164bbd → updated)

Copilot AI changed the title [WIP] Add agentic workflow Q for optimizing workflows Add Q agentic workflow for optimizing workflows Oct 12, 2025
Copilot AI requested a review from pelikhan October 12, 2025 16:12
… MCP

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Oct 12, 2025

Copy link
Copy Markdown
Contributor Author

@copilot

  • mention safe outputs...

✅ Both items addressed:

  1. safe-outputs: Added explicit mention of the safe-outputs MCP server in Phase 6, explaining to use the create-pull-request tool from the safe-outputs MCP server
  2. strict mode: Already enabled in frontmatter (strict: true on line 23)

Workflow recompiled successfully (235.8 KB). (commit b164bbd → updated)

@pelikhan pelikhan marked this pull request as ready for review October 12, 2025 16:27
@pelikhan pelikhan merged commit 29d5904 into main Oct 12, 2025
5 checks passed
@pelikhan pelikhan deleted the copilot/add-agentic-workflow-q branch October 12, 2025 16:27
@github-actions

Copy link
Copy Markdown
Contributor

Agentic Changeset Generator triggered by this pull request

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