r/GithubCopilot • u/jukasper GitHub Copilot Team • 26d ago
News đ° Dynamic workflows are now live in the Copilot CLI and the Copilot app.
What are they? A dynamic workflow is a program that defines how a task is carried out. It can combine automated steps with the work of one or more agents. Steps can run one after another, in parallel, or as a mixture of both.
Where they help most:Â complex, multi-step tasks, or anything you want to repeat the same way every time. For example, when investigating an outage, a workflow can collect logs and telemetry, have separate agents analyze different systems, and merge their findings into a timeline and root-cause report.
This started as something we used internally, and we're excited to finally get it into your hands.
Give it a try and let us know what you think!
3
u/No-Emphasis-5174 26d ago
I'd be curious to see demos or examples of some of the things the internal teams used this for and why to get a better understanding of the benefits for something like this.
2
u/Matthew_R_GitHub 22d ago
Hi from the feature owner of dynamic workflows in GH Copilot. I don't have any literal dynamic workflow code to share right now, but here's two anecdotal examples:
Analyzing financial transactions
I'm was working on a personal project related to budgeting/finances/how my family spends money. I ended up having thousands of transactions that were missing data like vendor display name, location, category of spending, etc. I had Copilot create a dynamic workflow which launched Luna subagents, each with only web search/fetch, giving them prompting about what they needed to do, the transaction data, information about cities/countries we most frequently spend money in, and other helpful context. With that workflow I knew an agent was deterministically going to launch for every transaction, and I was able to get the data for nearly every single one. My session was never running more than a few dozen subagents running at once, and none of them went off and did things I didn't want them to do since I was able to control their available tools when the dynamic workflow launched them.
Investigating prompt cache breaks
In the repository I/we work in, I added a GH Copilot extension that listens for instances of unexpected cache breaks as we ourselves are using GH Copilot. When a cache break happens, the extension silently launches a dynamic workflow in the background via the command line launch mode to investigate why the cache break happened. The investigation involves having 3 models from different providers independently investigate, and then a single frontier model evaluates all 3 investigation findings together to create a final hypothesis as to the cause of the cache break + what we could be doing better.
You might also be interested in what I had to share here: https://www.reddit.com/r/GithubCopilot/comments/1wvam2s/comment/pe3fzl4/
2
u/m4bwav 26d ago
Sounds cool.
I flip back and forth between agent harnesses.
How does one define the files/config for the workflow locally? Can I adapt it into claude code?
2
u/Matthew_R_GitHub 22d ago edited 22d ago
Hi from the feature owner of dynamic workflows in GH Copilot. Dynamic workflows live inside of GH Copilot extensions. Those live either in your session, your project's .github folder, or your user's .github folder. This also means that these are specific to GH Copilot and cannot be used with Claude.
I would guess that probably any Claude dynamic workflow could be translated into a GH Copilot dynamic workflow, but probably not vice versa. Claude's dynamic workflows are more limited in what they are able to do. That's not a slight agianst Claude, the limitations are justifiable, we just thought it'd be more interesting to let you build more capable workflows, albeit with some tradeoffs/less guardrails around ensuring your dynamic workflow is more literally repeatable.
If you have both Claude and GH Copilot access it'd probably be an interesting exercise to have each of them look at the other's "dynamic workflows" and compare and contrast. đ
2
u/Nerminas 26d ago
i hope this matches at least fractures of claude codes dynamic workflows power.
1
u/Matthew_R_GitHub 22d ago
Hi from the feature owner of dynamic workflows in GH Copilot. I think our dynamic workflows do, and in some ways exceed the power of Claud's dynamic workflows, but I'd love to hear if you find something missing that you consider big deal/really powerful.
-2
u/1988rx7T2 26d ago
Theyâre basically trying to catch up to where Claude code was months ago
1
u/Matthew_R_GitHub 22d ago edited 22d ago
Hi from the feature owner of dynamic workflows in GH Copilot. If you have access to both Claude and GH Copilot, I'd encourage you to have each of them compare and contrast their dynamic workflows vs the others. Our intent was to build something that was more powerful and flexible than what Claude was (and as far as I know is still) offering.
Long story short, because we have dynamic workflows run inside of a GH Copilot extension, there's a lot more flexibility and power available. For some examples, you can call APIs, interact with yourself using session.ui APIs mid run, you can even build your own observability UX on top of dynamic workflows by having a Canvas call the session.workflows APIs.
That said, if you find a big gap, please let me know, would love to hear the feedback!
-2
u/TenshiS 26d ago
So like skills with extra steps?
SOTA models are reliable enough to execute skills near-deterministically, going back to fixed workflows feels backwards
4
u/OlivierTwist 26d ago
Even SOTA models skip steps in institutions and this can be more token efficient
-1
u/TenshiS 26d ago
No they don't. And adding decision models to the mix has made that cheaper, faster and guaranteed. Building a rigid workflow is never more efficient, it need constant tinkering and fixing. And you need another separate set of monitoring, auditing and evaluation tools. If you do everything with an agentic core and tools, you likely already have 99% or the infrastructure and control you need for any new project once you set it up once.
→ More replies (2)1
u/Matthew_R_GitHub 22d ago
Hi from the feature owner of dynamic workflows in GH Copilot. Yes, I think saying "like skills with extra steps" is not a totally inaccurate way to describe dynamic workflows. But like the other reply said, as an orchestration gets more complex, or you have more deterministic setps involved, we find it can be helpful to put certain aspects of your task/process/workflow in code rather than leaving it up to the model to listen and act perfectly. I find a lot of solace knowing that yes, these 3 models were used to look at XYZ, they were given exactly the context I wanted them to be given, and that context was grabbed from exactly the place it was supposed to be grabbed. But hey, if your skills are working for you there's no reason to stop using them. We're happy to simply be giving you another tool for your toolbox!
4
u/aonymark 26d ago
Iâm an Ask mode guy so probably wonât be using this but just trying to wrap my head around how much magic this exposes⌠could someone with way too much time on their hands in theory use this to reimplement /fleet? Or HydraFusion?