feat: Programmatic implementation of /gsd:set-profile command#1007
Open
alythobani wants to merge 7 commits intogsd-build:mainfrom
Open
feat: Programmatic implementation of /gsd:set-profile command#1007alythobani wants to merge 7 commits intogsd-build:mainfrom
/gsd:set-profile command#1007alythobani wants to merge 7 commits intogsd-build:mainfrom
Conversation
- inject the script's output as dynamic context into the set-profile skill, so that Claude doesn't need to invoke it and can simply read + print the output to the user - reference: https://code.claude.com/docs/en/skills#inject-dynamic-context
…markdown reference table
alythobani
commented
Mar 10, 2026
| description: Switch model profile for GSD agents (quality/balanced/budget) | ||
| argument-hint: <profile> | ||
| argument-hint: <profile (quality|balanced|budget)> | ||
| model: haiku |
Author
There was a problem hiding this comment.
The instructions for Claude are now simple enough (just printing the injected output to the user) that I think it's safe to just always use haiku for this command, making it even faster + fewer tokens
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1006
What
Changes the
/gsd:set-profilecommand implementation into a script, whose output is injected into the command file, and Claude just has to print the output to the user.Why
Runs much faster + more predictably, with far fewer tokens used, than the current implementation.
Testing
Checklist
Breaking Changes
None
Comparisons
Existing implementation
With model set to Opus, took 44s to create config and set profile:
With Sonnet, took 32s to set profile:
Both of the above runs also involved errors that Claude made or had to work around.
Programmatic implementation
Consistently runs within a few seconds with predictable and error-free output: