Skip to content

feat(cli): add squad config model command for model pinning (#618)#628

Merged
bradygaster merged 5 commits intodevfrom
squad/618-model-config
Mar 26, 2026
Merged

feat(cli): add squad config model command for model pinning (#618)#628
bradygaster merged 5 commits intodevfrom
squad/618-model-config

Conversation

@bradygaster
Copy link
Copy Markdown
Owner

Closes #618

What

Adds a \squad config model\ CLI command for managing model configuration — setting default models and pinning specific models to specific agents.

Subcommands

Command Description
\squad config model\ Show current model configuration
\squad config model \ Set default model for all agents
\squad config model --agent \ Pin model to a specific agent
\squad config model --clear\ Clear default model override
\squad config model --clear --agent \ Clear a specific agent's override

Implementation

  • New file: \packages/squad-cli/src/cli/commands/config.ts\
  • Wired into \cli-entry.ts\ command dispatch
  • Uses existing SDK functions (
    eadModelPreference, \writeModelPreference,
    eadAgentModelOverrides, \writeAgentModelOverrides)
  • Validates model names against \MODEL_CATALOG\
  • Validates agent names against .squad/agents/\ directory
  • Follows existing patterns from \�conomy.ts\

Working as EECOM (Systems Engineer)

Copilot AI added 5 commits March 26, 2026 00:25
Round 1 (Audit & Baseline):
- Flight audited PR/issue state after CLI crash
- FIDO verified baseline: 5,038 tests passing, dev green
- Scribe merged stale decision inbox

Round 2 (Execution):
- Flight closed duplicate PRs #605, #604, #602
- Procedures rebased & merged PR #619 (model catalog)
- FIDO reviewed 9 community PRs: approved 3, change-requested 6

Round 3 (Community Merges):
- Coordinator merged 3 approved community PRs (#625, #603, #608)

Outcomes:
- 10 PRs merged total (6 merge-plan, 3 community, 1 legacy)
- 3 PRs closed as duplicates
- 6 PRs awaiting author changes
- Dev green: 5,038 tests passing
- All 6 original merge-plan PRs complete
- Decision inbox merged & deleted

Artifacts:
- Orchestration logs for Flight, Procedures, FIDO
- Session log: 2026-03-26T06:41:00Z-crash-recovery.md
- Team history updated (Flight, FIDO, Procedures)
- Decisions merged to decisions.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…init-scaffold-*

consult.test.ts creates .test-setup-{hash}/ dirs in cwd and
init-scaffolding.test.ts creates .test-init-scaffold-{hash}/ dirs.
If tests crash before afterEach cleanup, these get left behind.
One .test-setup-* dir was accidentally committed and tracked.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ifact, consolidate .gitignore

Removed:
- publish-0.8.21.ps1, publish-0.8.22.ps1 (version-pinned one-off release helpers)
- PUBLISH-README.md (companion to publish scripts)
- squad-export.json (generated export snapshot, not needed in repo)

.gitignore: Consolidated 3 specific .test-* patterns into single .test-* glob
to cover all 15+ test artifact naming patterns that create temp dirs in cwd.

Also pruned 3 dead git worktrees (squad-337, squad-348, squad-356).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a new 'squad config' CLI command with 'model' subcommand that lets
users manage model configuration:

- squad config model              — show current model config
- squad config model <name>       — set default model for all agents
- squad config model <name> --agent <a> — pin model to specific agent
- squad config model --clear      — clear default model override
- squad config model --clear --agent <a> — clear agent override

Validates model names against MODEL_CATALOG and agent names against
the .squad/agents/ directory. Uses existing SDK functions for all
config read/write operations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…#597)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster merged commit 49a196b into dev Mar 26, 2026
3 checks passed
@bradygaster bradygaster deleted the squad/618-model-config branch March 26, 2026 08:31
bradygaster pushed a commit that referenced this pull request Mar 26, 2026
- Crash recovery: merged 10 PRs, closed 3 duplicates
- Repo hygiene: removed test artifacts, consolidated .gitignore, cleaned garbage files, pruned 21 local + 31 remote branches
- Issue triage: 12+ issues routed and closed
- PR management: merged #628 (model config), reviewed #629, routed Tamir PRs to dev branch pending proposals

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

explicit model picker - aligned to sesson model

2 participants