Skip to content

feat: Programmatic implementation of /gsd:set-profile command#1007

Open
alythobani wants to merge 7 commits intogsd-build:mainfrom
alythobani:1/set-model-profile-programmatic-impl
Open

feat: Programmatic implementation of /gsd:set-profile command#1007
alythobani wants to merge 7 commits intogsd-build:mainfrom
alythobani:1/set-model-profile-programmatic-impl

Conversation

@alythobani
Copy link

@alythobani alythobani commented Mar 10, 2026

Closes #1006

What

Changes the /gsd:set-profile command 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

  • Tested on macOS
  • Tested on Windows
  • Tested on Linux

Checklist

  • Follows GSD style (no enterprise patterns, no filler)
  • Updates CHANGELOG.md for user-facing changes
  • No unnecessary dependencies added
  • Works on Windows (backslash paths tested)

Breaking Changes

None

Comparisons

Existing implementation

With model set to Opus, took 44s to create config and set profile:

Screen Shot 2026-03-10 at 10 23 38 PM

With Sonnet, took 32s to set profile:

Screen Shot 2026-03-10 at 10 25 12 PM

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:

Screen Shot 2026-03-10 at 10 33 22 PM Screen Shot 2026-03-10 at 10 33 32 PM

description: Switch model profile for GSD agents (quality/balanced/budget)
argument-hint: <profile>
argument-hint: <profile (quality|balanced|budget)>
model: haiku
Copy link
Author

Choose a reason for hiding this comment

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

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

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.

Implement the /gsd:set-profile command in a more programmatic way

1 participant