-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow workspace specific custom agents #15457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@eneufeld Ping! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine. The feature is nice.
But I observe this behavior:
- I added customAgents.yml to my workspace .prompts folder and pressed
Add Custom Agent
button - I don't get the quickpick but just my global file opens
- Only after restarting this was consumed
- Same in reverse, I deleted the customAgents.yml from the workspace and I still get the quickpick
I cannot reproduce this. |
In the first case I don't get a quickpick. Did you modify any of the other settings, eg WorkSpace Template Directories? Do I have to manually add the .prompts folder there? |
It is not added by default, so yes, the very first time you have to add it. |
ok that helped. |
fixed #15456
What it does
Allows workspace specific agents.
If workspace specific prompt locations are configured, the user can choose now whether to use the global prompt directory or a workspace directory for adding a custom agent. Workspace specific custom agents win. Within workspace locations, the first one loaded wins.
How to test
Add a project specific prompt directory (settings prompt templates)
Click on "Add custom agent" in the AI configuration view
Choose where you want to add the agent, it should show two locations now
Check that workspace specific custom agents "win"
Check updates when modifying, deleting and adding files.
Follow-ups
@sgraband Do you consider custom agents in your new view already?
Breaking changes
Attribution
Review checklist
Reminder for reviewers