📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

Switching models in GitHub Copilot CLI | demo

GitHub2:54

Transcription

Hey friends, I'm Scott Hanssome. I'm going to load up the GitHub Copilot CLI here in PowerShell on Windows. It also runs, of course, on Linux, in this case WSL.

Uh, but over here in PowerShell, I'm going to go ahead and, uh, hit the slash command. And notice that I'm running Claude Opus 4.5. But I've got choices of, in this case, right now, 14 different models. So I could pick the models based on their cost. Like, Haiku is a third of the price.

Um, and we could go and grab, uh, oh, the new GPT 5.2 CodeX. Switch that model. And I'm gonna ask it, you know, like, what's its reasoning effort? How hard do I want you to think? We'll go ahead and start with high. I've switched to CodeX. And that model is going to be used right now for this, um, this conversation.

Now, this particular application is a Next.js app, but I'm pretty sure this is Nex.js, I want to say 15. What's the latest version of Nex.js? Make a plan for upgrading this, uh, this admin application. I'm using Handy, which is a dictation app that uses the Parakeet voice model. It's a lot faster than typing.

Uh, in this case here, uh, this is the administrative backend for my podcast. The podcast front end is written in .NET. Backends is written in Nex.js. And I'm pretty sure that there's an X.js 16 out right now. So right now we're having, uh, GPT CodeX 5.2 do that planning for me. It's thinking, and if I want to, I could say, show the reasoning. But looks like it's actually, uh, looking at our JSON files. We could go and expand that. You can see the reasoning happening in the background if you want to. You can also hit Control-R and expand the tool calls as well. So it's there. You go. I can actually see it doing a web search, making sure that it gets the latest stable Nex.js version. 99% sure. There you go. January 2026, it is 16.1.2. So, uh, there's the plan. So here's the work plan. Nice.

Okay. Now I'm going to go ahead and switch, uh, models and we'll switch over to Opus. Go ahead and make a new branch and then execute on that plan. So this is cool. So, we've got a nice plan that we just made a moment ago with CodeX. Now, we'll execute on that plan. It's going to ask me if I want to go and check out a new branch and whether or not I'm going to approve the URLs that it's going to need to talk to, because it's going to go and look at the guide for upgrading version, uh, to version 16. Create that upgrade branch and execute on that plan. And in this case here, the plan is going to be executed on by Claude Opus. I'll let that go and, uh, chew for a little bit.

You can check out GitHub Copilot CLI. It's on Brew. It's on WinGet for Windows. You can check it out at copilot.github.com.