Skip to content

Clarify source and skill summaries in aspire agent init - #21883

Merged
James Newton-King (JamesNK) merged 3 commits into
microsoft:mainfrom
ellahathaway:ellahathaway-clarify-agent-init-output
Nov 7, 2026
Merged

James Newton-King (JamesNK) merged 3 commits into
microsoft:mainfrom
ellahathaway:ellahathaway-clarify-agent-init-output

Conversation

@ellahathaway

Copy link
Copy Markdown
Contributor

aspire agent init shows a generic installation-location preview that can be mistaken for plugin configuration. Its result summary omits configured source URLs and does not show where Playwright skills are installed.

This PR separates configured remote sources from installed local skills:

  • Show repository URLs and the actual OpenCode catalogs, including retained version pins, alongside configuration locations.
  • Include successfully installed Playwright skills and already-current static skills in the installed-skills summary.
  • Group locations with their supported agents, separate result sections with blank lines, and dim the shared-location notice.

The excerpts below show project-scoped setup with GitHub Copilot, Claude Code, and OpenCode selected, installing Aspire configuration and Playwright CLI.

Before

Installation locations:
  Skills: .agents/skills (shared: GitHub Copilot, OpenCode)
  Skills: .claude/skills
Shared files may be discovered by agents that aren't selected.
🤖 Configured Aspire plugin:
     GitHub Copilot: .github/copilot/settings.json
     Claude Code: .claude/settings.json
     OpenCode: opencode.jsonc
✅ Installed Playwright CLI.
✅ Agent environment configuration complete.

After

🤖 Configured sources:
     Sources: https://github.com/microsoft/aspire-skills, https://raw.githubusercontent.com/microsoft/aspire-skills/main/opencode/v1/
     Locations: .github/copilot/settings.json (GitHub Copilot), .claude/settings.json (Claude Code), opencode.jsonc (OpenCode)

✅ Installed Playwright CLI.

🤖 Installed skills:
     Skills: playwright-cli
     Locations: .agents/skills (GitHub Copilot, OpenCode), .claude/skills (Claude Code)
     Shared files may be discovered by agents that aren't selected.

✅ Agent environment configuration complete.

The shared-location notice is dim in the terminal; the text block does not show that styling.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: a47a61ad-c59b-4674-8e74-e493bff49b02
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21883

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21883"

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.

🟡 Changes recommended

Partial Playwright installation failures hide successfully installed skills and their locations from the summary, leaving Playwright-only runs without an installed-skills section.

1 open issue
1 file not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
What changed in this PR

This PR clarifies aspire agent init output by separating configured remote sources from locally installed skills.

Changes:

  • Display repository URLs, retained OpenCode catalogs, and configuration locations grouped by agent.
  • Include Playwright and already-current static skills in installation summaries, with clearer spacing and a dimmed shared-location notice.
  • Update localized resources and add snapshot coverage for source configuration and installation outcomes.
File Description
tests/​Aspire.Cli.Tests/​TestServices/​FakePlaywrightServices.cs Allows tests to simulate an installed Playwright version.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.Remote_SummaryUsesConfiguredOpenCodeCatalog_array=True_pinned=True.verified.txt Captures retained release-pinned catalog output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.Remote_SummaryUsesConfiguredOpenCodeCatalog_array=True_pinned=False.verified.txt Captures V2 catalog output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.Remote_SummaryUsesConfiguredOpenCodeCatalog_array=False_pinned=False.verified.txt Captures V1 catalog output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.Remote_SummaryListsConfiguredSourcesAndAgentLocations.verified.txt Captures multiple source URLs and agent locations.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_SkillSummary_GroupsInstalledSkillsByLocationAndAgent_scope=project_playwrightOutcome=skipped.verified.txt Captures the summary when Playwright is skipped.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_SkillSummary_GroupsInstalledSkillsByLocationAndAgent_scope=project_playwrightOutcome=installed.verified.txt Captures project-scoped skill installation output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_SkillSummary_GroupsInstalledSkillsByLocationAndAgent_scope=project_playwrightOutcome=failed.verified.txt Captures the summary when Playwright fails.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_SkillSummary_GroupsInstalledSkillsByLocationAndAgent_scope=global_playwrightOutcome=installed.verified.txt Captures global skill installation output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_InstallationLocations_ShowSelectedAssetsAndSharedConsumers_scope=project_installSkills=True_configureMcp=True.verified.txt Updates project skill and MCP result output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_InstallationLocations_ShowSelectedAssetsAndSharedConsumers_scope=project_installSkills=True_configureMcp=False.verified.txt Updates project skills-only output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_InstallationLocations_ShowSelectedAssetsAndSharedConsumers_scope=project_installSkills=False_configureMcp=True.verified.txt Updates project MCP-only output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_InstallationLocations_ShowSelectedAssetsAndSharedConsumers_scope=global_installSkills=True_configureMcp=True.verified.txt Updates global skill and MCP result output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_InstallationLocations_ShowSelectedAssetsAndSharedConsumers_scope=global_installSkills=True_configureMcp=False.verified.txt Updates global skills-only output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitClientSelectionTests.AgentInit_InstallationLocations_ShowSelectedAssetsAndSharedConsumers_scope=global_installSkills=False_configureMcp=True.verified.txt Updates global MCP-only output.
tests/​Aspire.Cli.Tests/​Commands/​AgentInitCommandTests.cs Tests source URLs, catalog formats, and retained pins.
tests/​Aspire.Cli.Tests/​Commands/​AgentInitClientSelectionTests.cs Tests grouped locations, Playwright outcomes, and repeat runs.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.zh-Hant.xlf Synchronizes Traditional Chinese localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.zh-Hans.xlf Synchronizes Simplified Chinese localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.tr.xlf Synchronizes Turkish localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.ru.xlf Synchronizes Russian localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.pt-BR.xlf Synchronizes Brazilian Portuguese localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.pl.xlf Synchronizes Polish localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.ko.xlf Synchronizes Korean localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.ja.xlf Synchronizes Japanese localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.it.xlf Synchronizes Italian localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.fr.xlf Synchronizes French localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.es.xlf Synchronizes Spanish localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.de.xlf Synchronizes German localization entries.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.cs.xlf Synchronizes Czech localization entries.
src/​Aspire.Cli/​Resources/​AgentCommandStrings.resx Defines revised headings and source/location labels.
src/​Aspire.Cli/​Resources/​AgentCommandStrings.Designer.cs Exposes matching resource accessors.
src/​Aspire.Cli/​Commands/​AgentInitCommand.cs Replaces the location preview with source and installed-skill summaries.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

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.

🔵 Needs a closer look

Partial Playwright installations omit successful destinations from the installed-skills summary, potentially hiding it entirely when only Playwright is selected.

1 open issue
1 file not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file

Review effort: Balanced

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.

🟢 Approval recommended

No active review issues were identified for the agent initialization summary changes.

No open issues 🎉

1 resolved since last review
1 file not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed commit 06ed924. No new high-confidence issues found. The previous partial-success Playwright summary finding is addressed and covered by a command-level regression test.

Validation: 270 tests passed, 0 failed, 0 skipped.

Command: dotnet test --project tests\Aspire.Cli.Tests\Aspire.Cli.Tests.csproj --no-launch-profile --filter-class '*.AgentInitCommandTests' --filter-class '*.AgentInitClientSelectionTests' --filter-class '*.PlaywrightCliInstallerTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' (with MSBUILDTERMINALLOGGER=false).

@JamesNK
James Newton-King (JamesNK) merged commit 2fefac5 into microsoft:main Nov 7, 2026
642 of 649 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.1 milestone Nov 7, 2026
@ellahathaway

Copy link
Copy Markdown
Contributor Author

/backport to release/17.0

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Started backporting to release/17.0 (link to workflow run)

Mitch Denny (mitchdenny) pushed a commit that referenced this pull request Nov 10, 2026
`aspire agent init` shows a generic installation-location preview that
can be mistaken for plugin configuration. Its result summary omits
configured source URLs and does not show where Playwright skills are
installed.

This PR separates configured remote sources from installed local skills:

- Show repository URLs and the actual OpenCode catalogs, including
retained version pins, alongside configuration locations.
- Include successfully installed Playwright skills and already-current
static skills in the installed-skills summary.
- Group locations with their supported agents, separate result sections
with blank lines, and dim the shared-location notice.

The excerpts below show project-scoped setup with GitHub Copilot, Claude
Code, and OpenCode selected, installing Aspire configuration and
Playwright CLI.

### Before

```text
Installation locations:
  Skills: .agents/skills (shared: GitHub Copilot, OpenCode)
  Skills: .claude/skills
Shared files may be discovered by agents that aren't selected.
🤖 Configured Aspire plugin:
     GitHub Copilot: .github/copilot/settings.json
     Claude Code: .claude/settings.json
     OpenCode: opencode.jsonc
✅ Installed Playwright CLI.
✅ Agent environment configuration complete.
```

### After

```text
🤖 Configured sources:
     Sources: https://github.com/microsoft/aspire-skills, https://raw.githubusercontent.com/microsoft/aspire-skills/main/opencode/v1/
     Locations: .github/copilot/settings.json (GitHub Copilot), .claude/settings.json (Claude Code), opencode.jsonc (OpenCode)

✅ Installed Playwright CLI.

🤖 Installed skills:
     Skills: playwright-cli
     Locations: .agents/skills (GitHub Copilot, OpenCode), .claude/skills (Claude Code)
     Shared files may be discovered by agents that aren't selected.

✅ Agent environment configuration complete.
```

The shared-location notice is dim in the terminal; the text block does
not show that styling.

---------

Co-authored-by: Copilot <[email protected]>
Copilot-Session: a47a61ad-c59b-4674-8e74-e493bff49b02
(cherry picked from commit 2fefac5)
Mitch Denny (mitchdenny) pushed a commit that referenced this pull request Nov 10, 2026
`aspire agent init` shows a generic installation-location preview that
can be mistaken for plugin configuration. Its result summary omits
configured source URLs and does not show where Playwright skills are
installed.

This PR separates configured remote sources from installed local skills:

- Show repository URLs and the actual OpenCode catalogs, including
retained version pins, alongside configuration locations.
- Include successfully installed Playwright skills and already-current
static skills in the installed-skills summary.
- Group locations with their supported agents, separate result sections
with blank lines, and dim the shared-location notice.

The excerpts below show project-scoped setup with GitHub Copilot, Claude
Code, and OpenCode selected, installing Aspire configuration and
Playwright CLI.

### Before

```text
Installation locations:
  Skills: .agents/skills (shared: GitHub Copilot, OpenCode)
  Skills: .claude/skills
Shared files may be discovered by agents that aren't selected.
🤖 Configured Aspire plugin:
     GitHub Copilot: .github/copilot/settings.json
     Claude Code: .claude/settings.json
     OpenCode: opencode.jsonc
✅ Installed Playwright CLI.
✅ Agent environment configuration complete.
```

### After

```text
🤖 Configured sources:
     Sources: https://github.com/microsoft/aspire-skills, https://raw.githubusercontent.com/microsoft/aspire-skills/main/opencode/v1/
     Locations: .github/copilot/settings.json (GitHub Copilot), .claude/settings.json (Claude Code), opencode.jsonc (OpenCode)

✅ Installed Playwright CLI.

🤖 Installed skills:
     Skills: playwright-cli
     Locations: .agents/skills (GitHub Copilot, OpenCode), .claude/skills (Claude Code)
     Shared files may be discovered by agents that aren't selected.

✅ Agent environment configuration complete.
```

The shared-location notice is dim in the terminal; the text block does
not show that styling.

---------

Co-authored-by: Copilot <[email protected]>
Copilot-Session: a47a61ad-c59b-4674-8e74-e493bff49b02
(cherry picked from commit 2fefac5)
Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Nov 11, 2026
## Description

Backport five merged CLI changes to `release/17.0` so users can identify
configured content sources, understand agent setup results, and see
acquisition progress without routine Git output clutter.

Cherry-picked in order:

1. #21831 (`db62c35564`) - Show repository and ref in template picker
group headings.
2. #21883 (`2fefac5abe`) - Clarify source and skill summaries in `aspire
agent init`.
3. #21855 (`4954c76a62`) - Unify CLI source onboarding, presentation,
and selection.
4. #21852 (`575c3bc76b`) - Quiet routine Git acquisition output.
5. #21982 (`7f897adec4`) - Show configuration source repositories and
Git acquisition progress.

The first four cherry-picks applied cleanly. The fifth conflicted in
four dashboard resource designer files; those changes were excluded by
retaining the release branch's versions. This PR contains no dashboard
changes and no additional prerequisite commits.

### User-facing usage

With configuration and template sources configured, run:

```shell
aspire new --use-config-source
```

The CLI identifies source repositories, shows acquisition progress, and
includes repository/ref information in template-source headings.

```shell
aspire agent init
```

The setup summary separates configured remote sources from installed
skills and identifies their agent-specific locations.

### Screenshots / Recordings

> **This PR includes UI changes.** Please add screenshots or screen
recordings so reviewers can evaluate the visual changes without running
locally.
>
> - For before/after comparisons, place them side-by-side or label them
clearly.
> - For interactive changes (animations, transitions, new flows), prefer
a short screen recording (GIF or video).
> - If you cannot capture visuals now, note what scenario to test and
mark this section as TODO.

TODO: Capture the template-source picker, configuration-source
acquisition progress, and `aspire agent init` source/skill summaries. No
screenshots or recordings were captured for this backport.

<!-- Add screenshots/recordings here -->

### Validation

Focused CLI tests using the repository's existing .NET SDK
(`11.0.100-rc.2.26504.105`):

```powershell
dotnet test --project tests\Aspire.Cli.Tests\Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-class '*.ConfigSourceServiceGitTests' --filter-class '*.ConfigSourceServiceTests' --filter-class '*.ConfigSourceCommandTests' --filter-class '*.AgentInitCommandTests' --filter-class '*.AgentInitClientSelectionTests' --filter-class '*.GitClientTests' --filter-class '*.GitCommandRunnerTests' --filter-class '*.ConsoleInteractionServiceTests' --filter-class '*.NewCommandLocalTemplateTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
```

**Passed:** 1,453 succeeded, 2 skipped, 0 failed.

The build emitted the existing NU1903 advisory for the pinned
`Microsoft.DotNet.ILCompiler` package. This PR does not change
dependency versions.

Verified that the branch contains exactly five commits on top of
`release/17.0`, that the cherry-picked patches match the originals apart
from the excluded dashboard files, and that the backport worktree is
clean. CLI E2E tests and live interactive scenarios were not run.

Fixes # (issue)

## Checklist

- Is this feature complete?
  - [x] Yes. Ready to ship.
  - [ ] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] Yes
  - [ ] No
- Did you add public API?
  - [ ] Yes
    - If yes, did you have an API Review for it?
      - [ ] Yes
      - [ ] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
      - [ ] Yes
      - [ ] No
  - [x] No
- Does the change make any security assumptions or guarantees?
  - [ ] Yes
    - If yes, have you done a threat model and had a security review?
      - [ ] Yes
      - [ ] No
  - [x] No

---------

Co-authored-by: Mitch Denny <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Ella Hathaway <[email protected]>
Copilot-Session: a47a61ad-c59b-4674-8e74-e493bff49b02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants