Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

The portfolio-analyst workflow attempts to use gh aw logs to collect workflow execution metrics, but the command was unavailable, causing the agent to report it cannot complete the analysis.

Changes

  • Added agentic-workflows: tool to portfolio-analyst.md
  • Changed safe-output from create-issue to create-discussion with category "Audits"
  • Recompiled portfolio-analyst.lock.yml with agentic-workflows MCP server configuration

The workflow now uses the agentic-workflows: tool which automatically configures the gh-aw MCP server, exposing CLI commands (logs, audit, status, compile) as MCP tools available to the agent without requiring manual setup or imports.

# Before
tools:
  github:
    toolsets: [default]
safe-outputs:
  create-issue:
    title-prefix: "[portfolio] "
    labels: [cost-optimization, automation, analysis]

# After
tools:
  agentic-workflows:  # Automatically enables gh-aw MCP server
  github:
    toolsets: [default]
safe-outputs:
  create-discussion:
    title-prefix: "[portfolio] "
    category: "Audits"
    close-older-discussions: true

This approach is simpler than using imports as it leverages the already-installed gh CLI extension and requires no manual build steps. Portfolio analysis results are now posted as discussions in the Audits category instead of issues, providing better organization and automatically closing older discussions to keep the board clean.

Original prompt

Look at actions run: https://github.com/githubnext/gh-aw/actions/runs/20098285866/job/57662210589
Fix Automated Portfolio Analyst so that it can access the gh-aw logs command. Currently we get:
✔ safeoutputs-missing_tool
└ {"result":"success"}

Analysis Status: Unable to Complete

I cannot complete the portfolio cost analysis because I don't have access to the required data collection tool (gh-aw logs command) to retrieve actual workflow execution metrics.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@pelikhan
Copy link
Contributor

@copilot use shared/gh-aw.md for access to agentic workflows MCP

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Automated Portfolio Analyst access to gh-aw logs command Add gh-aw MCP server to portfolio-analyst workflow Dec 10, 2025
Copilot AI requested a review from mnkiefer December 10, 2025 12:50
@mnkiefer mnkiefer marked this pull request as ready for review December 10, 2025 12:56
Copy link
Contributor Author

Copilot AI commented Dec 10, 2025

@copilot use shared/gh-aw.md for access to agentic workflows MCP

Done. Created shared/gh-aw.md and updated the import in portfolio-analyst.md. (commit 4832894)

@pelikhan
Copy link
Contributor

@copilot actually we don't see to need it anymore, you should be able to enable the agentic-workflows tools directly.

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

Copilot AI commented Dec 10, 2025

@copilot actually we don't see to need it anymore, you should be able to enable the agentic-workflows tools directly.

Done. Removed the shared/gh-aw.md import and file. Now using agentic-workflows: tool directly which automatically enables gh-aw MCP server without manual setup. (commit 13c56e1)

Copilot AI changed the title Add gh-aw MCP server to portfolio-analyst workflow Enable agentic-workflows tool in portfolio-analyst workflow Dec 10, 2025
@pelikhan
Copy link
Contributor

@copilot create discussion in audits category instead of issue

…ategory

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

Copilot AI commented Dec 10, 2025

@copilot create discussion in audits category instead of issue

Done. Changed from create-issue to create-discussion with category "Audits" and enabled close-older-discussions. (commit 69306b2)

Copilot AI changed the title Enable agentic-workflows tool in portfolio-analyst workflow Enable agentic-workflows tool and create discussions for portfolio-analyst workflow Dec 10, 2025
Copilot AI requested a review from pelikhan December 10, 2025 14:21
@pelikhan pelikhan merged commit a270e32 into main Dec 10, 2025
9 checks passed
@pelikhan pelikhan deleted the copilot/fix-automated-portfolio-analyst branch December 10, 2025 14:39
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