Skip to content

Add /model slash command#85

Merged
shellicar merged 4 commits intomainfrom
feature/model-slash-command
Mar 14, 2026
Merged

Add /model slash command#85
shellicar merged 4 commits intomainfrom
feature/model-slash-command

Conversation

@shellicar
Copy link
Copy Markdown
Owner

Summary

  • Add /model [haiku|sonnet|opus] slash command for per-session model override
  • Override survives config hot reload
  • Status line shows amber model: sonnet* indicator when override is active
  • /model with no argument clears override and reverts to config

Related Issues

Closes #81

Changes

  • src/session.tssessionModelOverride field, getters, set/clear methods
  • src/ClaudeCli.tsMODEL_ALIASES map, /model command handler, help text
  • src/terminal.tsmodelOverride property, idle status line indicator

Co-Authored-By: Claude noreply@anthropic.com

@shellicar shellicar added this to the 1.0 milestone Mar 14, 2026
@shellicar shellicar added the enhancement New feature or request label Mar 14, 2026
@shellicar shellicar self-assigned this Mar 14, 2026
@shellicar shellicar requested a review from bananabot9000 March 14, 2026 14:54
@shellicar shellicar enabled auto-merge (squash) March 14, 2026 14:54
Copy link
Copy Markdown
Collaborator

@bananabot9000 bananabot9000 left a comment

Choose a reason for hiding this comment

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

LGTM — the two-phase dispatch enabler! Override chain is clean: per-call → sessionModelOverride → config. Survives hot reload, dies with process, amber status indicator. Session log documents the naming decision well. Ship it! 🍌

@shellicar shellicar merged commit 2392185 into main Mar 14, 2026
3 checks passed
@shellicar shellicar deleted the feature/model-slash-command branch March 14, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add /model command: process-level model override

2 participants