Earlier I created Copilot Studio agent with Claude Code, now it is time to test OpenCode. Intallation was quite simple, just one command and it was there like Pasi Huuhka promised. I was thinking this would take one hour struggle like with Claude Code. Then I started the OpenCode and asked could it build Copilot Studio agents for me. First it replied that it cannot but then I instructed it is just yml files and it replied that it could help me.

I gave the prompt just like I gave it to Claude Code and it started working.

I needed to create empty agent into my demo tenant and named it “Föli Agent – OpenCode”. Then I opened Copilot Studio tools in VS Code (connected to my Ubuntu machine) and searched for the agent. Finally I clicked it mouse right, gave the url where to clone it and cloned it.
Now I need to prompt the OpenCode again since cloning this closed previous session with OpenCode. OpenCode seemed to remember where we left of a bit better than Claude Code but still I think I need to prompt the whole system again.
Then it figured out what to do and started working

OpenCode was superfast. It pushed the agent to Copilot Stufio for me – I added agent icon (important!) and then published my self.

Same end solution as Claude Code. Off course it cannot create platform specific integrations, since this is low code agent and not pro code agent. But very good try out. Maybe I will tell it, that this does not work.

I told to OpenCode that I “I published already but this agent just guides me to use the www.föli.fi. I wanted it to search for the route and give me exact instructions which road to take so I could get to the correct bus stop”
OpenCode started working immedeately and not asked anything from me. Claude Code was suggesting this but OpenCode did it already.

I ran you of time but it tried to instruct the agent to use API. It did not understand that with Copilot Studio you need to implement Tool or Power Automate with HTTP Action to call a REST API. I gave the push error messages to OpenCode and it started to format the files so that I could push the agent to Copilot Studio for testing.
Too complex thing for OpenCode – I knew it but it tried it’s best <3

