“The GitHub Copilot SDK IS INSANE! Put Copilot INSIDE Your Apps!”의 전체 스크립트입니다. 타임스탬프를 클릭하면 해당 장면부터 영상이 열려요. 다른 영상이 필요하다면 유튜브 스크립트 추출기를 이용하세요.
0:00 GitHub Copilot is everywhere. I use it every single day to write code in VS code and in Visual Studio 2026. But that's not the only place I use it. I'm constantly delegating tasks and assigning issues to the coding agent in the cloud. And actually most of the time directly from my phone with the GitHub mobile app, where I can pull it up, pull up a repo, give it an idea and it gets to work. I'm constantly asking questions on getup.com and even working across code bases and Xcode and IntelliJ. when I have to work in Swift or Kotlin libraries. So truly I take GitHub Copilot with me everywhere on every single machine across every single code base. Now, one thing I find myself doing more and more is running these background tasks and booting up multiple instances of the GitHub Copilot CLI.
0:46 Now this thing has been updating all the time, nearly every single day. They've recently added planning mode, cloud delegation, custom agents, sub agents, and so much more. So if you tried out the Co-Pilot CLI before and haven't picked it up in a while, give it another go and update to the latest version. I'll link to the changelog below. Now I also build AI into my apps, often leveraging Microsoft Foundry so I can build and deploy AI at scale. But what if I wanted to actually integrate the GitHub Co-Pilot agent, you know, the one that powers the CLI directly into my apps and services that I build for myself and for others? Like, wouldn't that be a crazy concept to directly have access GitHub Copilot through your own applications? Well, that's exactly what the brand new Copilot SDK enables you to do. You can
1:34 integrate the Copilot SDK into your apps to manage and communicate directly with the Copilot CLI, pragmatically. This is crazy. We're talking about full session management, access to models across all providers, tool calling, streaming results, and so much more. It unlocks so much potential of apps and ideas leveraging the Copilot CLI. Now this new Copilot SDK just stealth launched into technical preview. And in minutes I started building and leveraging it to create some astonishing apps to really help streamline my workflow. So what I want to do today is take a look at it in action and what I built and how you can get started using the Copilot SDK to leverage all of this power of the Copilot CLI. So let's get into it.
2:32 All right, let's go ahead and level set a little bit here. First, you have GitHub Copilot, right? This is your main hub. This is your subscription. This is your AI Copilot to help you with all things software development. You've seen it inside of VS Code, Visual Studio, IntelliJ, all the places. out there that I've talked about. And this really enables you to be hyperproductive and pull in the latest and greatest, including MCPs, skills, agents, and so much more to iterate rapidly on your code base. Now, beyond that, there's a bunch of agents as well. So of course you can plug into the GitHub coding agent to delegate work and assign to other agents as well that you have super focused on specific tasks. This is sort of the mission controller, which I love doing and assigning work. And then you have the co-pilot CLI, right? And this is all part of the same GitHub co-pilot ecosystem, enabling you to
3:18 basically have GitHub co-pilot directly inside of your terminal via the CLI. And you have the same exact things, MCP servers, skills, agents, all those goodies all inside of there, right? So it's all available, diffing, starting up different instances, a whole bunch of things. You can just have as many of them as you want. So let's first just take a look here, right? So here I am inside of my terminal and I'm inside of this, you know, my switch library app that I've been building. I'm gonna say copilot and then I'm gonna also say dash dash banner here. So you can see the cool copilot banner come up. Boop, there it is. Cool. So the first thing we're gonna see here is like, do we trust the files in this folder? And I'm gonna say yes. So from here I'm logged in. You can also do slash login, log out there. And then you can just ask it anything. So you
4:04 could say, can you give me an overview of this app? Right? So this is that sort of normal experience here. This is going in, it's going to take a look at the code base and this interactive CLI experience. It's going to understand the readme, the package.json, the list here. And this is going to say, hey, this is my switch. It's a progressive web app tracking switch games. And it gives me a bunch of overview of the architecture. including a React app, Azure Functions backend, Supabase integration, and a lot more. Now I can do other things. So I could say, here's library. So I could say, what is this file all about? So you can reference files, give it context, obviously ask for modifications as well. So here,
4:51 this is going to break down the library page components for me, and then give me an overview of exactly what this page is going to do and how it makes up the library inside of the application. Now, beyond this though, we can do other things besides at mentions of different files. You can also use slash commands. So here we're at directories, we can browse selected agents, we can obviously clear the conversation, compact the conversation, which it also does automatically. You can delegate the work as well. So we could delegate something off to the coding agent. From here, you can share your entire session in a GIST or a markdown. You can obviously log in, log out, add MCPs. You have different models, plan mode. Here in models, you can go
5:36 in and just say, what model do you want? So whether it's a Claude model, a GPT model, a Gemini model, you're good to go. I could also come and say plan. So here I can implement, kind of create a plan ahead of time. So say, how would I implement a NES theme in the app? So now this is gonna go into that plan mode agent, if you will, that we're sort of used to as well. So we're gonna say, all right, let's put this plan together. Again, it's gonna understand, ask me questions, understand the code base here. We're looking at the user preferences, understands the theming, and then it's gonna do some clarifying questions here for the different theme approach that's going on. Should it be NES, be a third theme, visual scoping, and a lot more. So I could
6:22 say here, delegate, create, create, create the NES theme and best pick options for me. There we go. So this is now going to go off and say, hey, we're going to create a pull requests based on your local changes and then you draft pull requests and it's going to get to work, right? So now it's going to summarize the conversation, start a copiling coding agent session for me and get to work. So I could have it implemented locally on my machine, just right directly inside of here, or I could go off and just fire this off and delegate and get onto something else. Okay. Let's talk a little bit though. Now that you have a grasp of the CLI and the power inside of it, the actual SDK. So this is on getup.com. com slash getup slash copilot sdk so it's
7:12 multi-platform sdk leveraging get a copilot agent into your apps and services so it's available in node python go and in c sharp for.net developers and you'll be good to go and of course you need the copilot cli so from here though this is sort of the architecture how it works you have your application you just integrate the client sdk and then over json rpc it'll communicate back and forth with the Copilot CLI that will be running in server mode on either your machine or some, you know, remote connection, external CLI server, whatever you have on it. And it's crazy simple. So if you go into any of the libraries, so here for.net, there's a test, there's a source and you can take a look at it. So it's just a NuGet package, github.copilot.sdk. And this is really neat. You just create a Copilot
8:00 client, you start it up. and then you start a session. So in this case, I'm gonna start a new session with GPT-5 and we'll actually see how to see all the different models You know, if you want to use standard IO, the logging level restarts,
8:46 environment So let's get back over to the CLI. This is by delegating and doing some stuff, but I create a little hello world of the SDK. So I did this all in C sharp. So I'm gonna say.net run here. And what I wanted to do is sort of show off this interactive mode. So the first thing here, we're gonna see it's a copilot SDK interactive demo. All the source code will be available. I'll put it in the show notes. And it's going to say, what models do you want? So here are the same exact models that we saw earlier in the Copilot CLI listing them out. So I could detect Claude Sonnet, Haiku, GPT
9:33 here. So let's do GPT, uh, five, two. Perfect. Okay. Now from here, I've come up with a few different demos so we can see that first it has selected GPT five, two it's starting the session and it's even going to ping it and has a unique session ID here. So that's kind of cool. Then we have some kind of code focus. I wanna say, hey, imagine you're building your own sort of application on top of the CLI to help you triage your work, do performance or work, delegate out tasks and do a bunch of stuff based on how your team works, interact with your own stuff. Here, I can just type any message. I can type in a demo, I can change a model. So I could say, you know, what's two plus two. question mark, and then it should hopefully come back with four. So this is gonna send it off and boom, copilot
10:20 comes back two plus two equals four. Cool. But let's look at some other things like maybe a code review. So you can maybe automate some code review happening on your machine. So I'm gonna say demo one. There we go. And now this is gonna go off. It's gonna say, hey, review this code. And this is doing a new database. It's doing query. And it's gonna say, hey, listen, you can prevent SQL injection, avoid creating a database per call, dispose resources, async cancellation, user research service, and actually gives you this code quality coming in, right? So you're gonna get that same exact experience, but it's from my application that's streaming in automatically. And again, it's using my GitHub co-pilot login, right? It's using my account, which is nice. So let's do another one here,
11:09 maybe performance, for example. So I'm gonna say demo six, demo six here. And this is gonna go off and ask for just like best performance for improving a .NET web application. Again, if you're into scripting, you're into like figuring this out, this is really crazy powerful to come in and create your own application. So this is gonna show me exactly how to do performance improvements based on this knowledge tree that's coming in. I can provide additional comments, code suggestions, URLs. I could also come in and give it, you know, uh, tools and MCP servers. I could connect that up as, as well, which is awesome. Okay. So there we go. So we exited out now, let's see exactly what, how that was created. So I'm going to come into VS code here. And what I want to show you is just kind of how easy it is. So this is the program. So we can see that
11:56 have a bunch of sort of ASCII artwork here. And the first thing we do is we have output some, some lines and we do this CLI check for status. So again, what's cool here is that, you know, we're inside of this file so I can check the copilot status. I can just check environment variables, see if the GitHub token is set. Else I can go off and see if it is installed. So I can go to definition here and we can see that it's just going to start up a process, look for copilot version and understand what's installed. Here it's going to double check to see if I'm authenticated or not inside of here. And then from there, once I have the status, it's going to select the model asynchronously. And the model selector, yeah, you guessed it goes off and just kind of queries and sends the same command of dash dash model to the CLI to grab
12:44 that back for me automatically. So then I can select the model. Now, what's really cool here is that when I start the conversation, I'm able to go in ping just to make sure it has a connection. I create the session. I say, I'm going to stream in the results you saw popping in there back and forth. And then I go in and I have this loop basically of going in. and just reading the line and understanding what I want to select. So do I wanna select a new model? Do I just type something? Do I clear it? Or do I have a demo specifically in here? And when I select a demo, I just have this simple chat helper. And all it's doing is what we saw before, right? It has the Copilot session. It's gonna say session on. and then it's gonna output. So there's Delta events, main messages. Inside of here, we have some error logging,
13:32 and then I just send the message off to it and stream the results back into my application. So it's really, really simple just to go off and pull all these in. And these demo prompts are just that, they're prompts, just like you would prompt anything. So we can see all the prompts that are going in, pretty straightforward inside this one to just send that prompt off, give it additional context, anything I may need to send it. Well, let's talk about something a little bit more unique, right? Because if we have code, I could just do this in VS code. What about when to create an application leveraging the co-pilot CLI to do something that I do every single day? So something I do every single day for like merge conflict or the VS code podcast is I generate different titles, descriptions, YouTube chapters, and things like that. So I created a podcast, a metadata generator,
14:17 leveraging the co-pilot CLI. So if I go in, let me go in here and see what I have here. So I'm going to CD source. I've created a blazer web app and a council web app to show this off. So I'm going to go and boot up the council first and let's say.net run. Now this is using Spectre console. Um, and this is going off and here they have this podcast metadata generator. and we can see that I again have the CLI installed and it's ready to use. So inside of here, I'm able to do a few things. So I want to have very similar settings so I can change the model that I want to use. It's using the same exact thing. So I'll use 5.2. I can change output directories, podcast information, episode context for settings. So if I want to generate like eight different titles, for example, and I'll say maybe 15 words max,
15:07 description lengths, chapter settings. I have all these settings that are saved for me. So let me save settings. Let me go back here. And the power of this is I can load up a transcript and then from that transcript, leverage the Copilot CLI through the SDK to generate all this stuff for me. So I'm gonna say browse for files and I have one in here from the most recent merge conflict, which is a pretty deep dive episode. So it's a pretty long transcript. So I'm gonna send this. I was gonna say, do I wanna add any contacts? I'm gonna say no. And then from here, I can go ahead and generate all the metadata, generate titles, convert it to an SRT, generate descriptions. Let's go ahead and do title here. So again, this is now starting that session up. It's going to go and prompt off and then give that over to the co-pilot CLI. So now I have all
15:55 of these inside of yours. This is all about CI CD for Mac apps. So let's do this one. Cool. And then I can generate descriptions. So this is now going to go off and generate these descriptions in real time here that I can then copy and paste inside of, um, YouTube and Fireside where I host the podcast. So here we can see everything coming in of these different descriptions. I can go in, I can view the results, I can view the titles that were here, I can view the descriptions that were here. I can go back and generate chapters, for example. That's a long one, that's a really complex process. So I'm creating these system prompts that go off and generate and do this work for me. And then it's gonna come back and generate this. Um, which is really, really neat. Like the ability to do this previously would mean I would need
16:43 to spin up and talk to different APIs or talk and spin up my own, you know, backend and foundry, for example. But now I'm able to just send the prompts off, leverage the CLI and then get it back. So we're able to get this all here. So this is really neat. Look at this. So not only did it generate five chapters, uh, it gave me sort of like, you know, um, the YouTube chapters, a copy paste format here, which is really cool. And just seeing everything. And then from there I can save the results, export and a lot more. But I didn't stop there because if we go into the Blazor one, I can .NET run that and I created a full web application. And this web application is you guessed it is a Blazor web app. So I'm just going to go ahead and tap on that. Let's go back over to edge here, paste it in here. Perfect.
17:30 And we have this full podcast metadata generator. Now it's a Blazor server application. It's a server. It can actually connect through the SDK to the CLI, but we can see the same exact thing. We have settings and we can see all of the different models here. And it's going to pick the same one that I had because it's legitimately like the same exact setting file that's shared between the two there. And then I can generate stuff. So let's go ahead and pick a file here. Let me go into that data file. I'm going to pick that transcript again. And then here we go. So now we have a visual overview. So let me just go ahead and do titles and short description and YouTube chapters as well. So now it's going to go off and have this entire, this is communicating over the SDK to the CLI and it's going to pull these all in. We can see here are the, the outputs coming in, the generating, the chapters that are coming in in real
18:17 time. Chapters take a while cause they're pretty complex. Uh, I would say, but it's coming in and I can see the results and I can toggle through them in this nice, beautiful GUI. Uh, but what I love about this is that I'm, using the same exact code between the council app and the web application and communicating directly to the CLI through the SDK. And the crazy part is I built all three of these applications under one hour, all using the GitHub Copilot CLI to generate these applications to communicate through the SDK to the CLI, which is crazy. So here are all the chapters coming in. I can see the descriptions coming in and then I can generate more or just go ahead and export these as well. So like this is just mind boggling to me to be able to come in, generate and create these powerful workflows, powerful AI applications that are
19:08 leveraging the CLI in this type of way. And honestly, as a developer, this is a complete game changer for me to be able to do this. and create these powerful applications. So I just think that having all of these models at your fingertips directly through your GitHub Copilot subscription like this, leveraging the CLI with the SDK is crazy powerful and you absolutely have to try it out to actually feel the power of this simple streamlined SDK, leveraging the absolute craziness of the Copilot CLI. All right, there you go. That is a look. And not only what the Copilot CLI is, but how you can start to leverage the power of the co-pilot agent directly into your apps and services with the brand new
19:54 technical preview co-pilot SDK. The team is revving on this non-stop, not only in the CLI, but on the SDK and they want your feedback. So get to work, start building some cool things. I started pulling this in and building it in seconds. I'm going to link to all the repos below and all the change logs and everything that you need. It honestly took an app to kind of leverage AI and put it in to production in honestly, like 20, 30 minutes. It was mind boggling and have access to all those models at your fingertips, all leveraging your co-pilot subscription is absolutely astonishing. So anyways, check it out today. Let me know what you think in the comments below and get to building. So until next time, happy coding. And thanks for watching.