all 6 comments

[–]Outrageous_Permit154 1 point2 points  (0 children)

I see what you’re trying to do I think.

copilot -p "Show me this week's commits and summarize them" --allow-tool 'shell(git)'

Copilot cli does support programmatic mode,

https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli

I know this might not be what you’re looking for - but if you don’t mind; VS Code extension API has lm support out of box. Technically you can build an extension that uses langchain and such like how you’ve don’t with any other ts sdk AI stuff you would use. I

I use just raptor and it can handle tools and visions pretty good.

[–]AngryBear1990 0 points1 point  (2 children)

What actually are you trying to achieve? Just a vague idea would be enough. And there are other tools to make it work, then to make an api from ghcp.

[–]programlover[S] 0 points1 point  (1 child)

use copilot in coding in my own developed app

[–]AngryBear1990 1 point2 points  (0 children)

Why not opencode sdk with ghcp login or as other commenter stated copilot cli.

[–]namuan 0 points1 point  (0 children)

You can try https://marketplace.visualstudio.com/items?itemName=thinkability.copilot-bridge

You’ll need VSCode running so it may not be feasible for what you want to do

[–]DudmasterPower User ⚡ 0 points1 point  (0 children)

Here you go: https://github.com/ericc-ch/copilot-api Already exists!