source dump of claude code
at main 16 lines 559 B view raw
1import type { Command } from '../../commands.js' 2import { shouldInferenceConfigCommandBeImmediate } from '../../utils/immediateCommand.js' 3import { getMainLoopModel, renderModelName } from '../../utils/model/model.js' 4 5export default { 6 type: 'local-jsx', 7 name: 'model', 8 get description() { 9 return `Set the AI model for Claude Code (currently ${renderModelName(getMainLoopModel())})` 10 }, 11 argumentHint: '[model]', 12 get immediate() { 13 return shouldInferenceConfigCommandBeImmediate() 14 }, 15 load: () => import('./model.js'), 16} satisfies Command