feat: Enable agent auto-discovery and add source location indicators #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR enables agent auto-discovery from
.amplifier/agents/and~/.amplifier/agents/directories, and enhances the/agentsCLI command to show where each agent comes from.Changes
1. Fix: Enable agent auto-discovery in foundation profile
Problem: The foundation profile was missing the
agents:field, which prevented automatic discovery of agents from:.amplifier/agents/(project level)~/.amplifier/agents/(user level)Solution: Added
agents: allto the foundation profile YAML, which triggers the agent loading system to discover agents from all configured search paths.File changed:
amplifier_app_cli/data/collections/foundation/profiles/foundation.md2. Enhancement: Add source location indicators to /agents command
Feature: The
/agentscommand now displays the source location next to each agent name:(project)- from.amplifier/agents/(user)- from~/.amplifier/agents/(bundle)- from bundle/collectionThis helps users understand:
File changed:
amplifier_app_cli/main.pyTesting
Before
After
Impact
.amplifier/agents/or~/.amplifier/agents/and they'll be automatically availableRelated
This is Phase 1 of a larger enhancement plan inspired by Claude Code's agent management features. Future phases will add interactive creation, editing, and deletion capabilities.
See: https://code.claude.com/docs/en/sub-agents