copilot-sdk / java
AGENTS.md11k starsChanged 3 months agoMITView on GitHub
This directory is the Java SDK's Maven reactor. Paths and commands below are relative to this directory, whether it is nested at src/sdk/java or exported as java. Keep API usage examples in README.md, the SDK documentation, and public Javadoc rather than duplicating them in these contributor instructions. - sdk/src/main/java/ contains the handwritten client, session, and RPC APIs. sdk/src/test/java/ contains unit and integration tests. - sdk/src/generated/java/ contains generated protocol and event types. - copilot-native/ packages platform-specific runtime artifacts separately from the…
Trending
Steady talk.about the whole repository
Who's talking about github/copilot-sdk
- @kaylacinnamon.bsky.social“I built a web app with the GitHub Copilot SDK to make analyzing log files easier. It'll summarize them, …”Bluesky · Jan 22, 2026 · 66 likes
- @cassidoo.co“The @github.com Copilot SDK is live and it's really awesome! Learn more about it and try it out: …”Bluesky · Jan 22, 2026 · 63 likes
- @github.com“The GitHub Copilot SDK is here 🙌 You can take the same Copilot agentic core that powers GitHub Copilot CLI …”Bluesky · Jan 22, 2026 · 30 likes
- openclaw/openclaw“[Feature]: Copilot-sdk instead of proxy”GitHub · Jan 24, 2026 · 13 reactions
- KeygraphHQ/shannon“[FEATURE]: Add GitHub Copilot SDK as an AI provider option”GitHub · Mar 4, 2026 · 8 reactions
The biggest 5 of 25 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 25
Talked about on GitHub, Bluesky and Hacker News (25 times).
On GitHub · 13
- Jan 24, 2026[Feature]: Copilot-sdk instead of proxy — openclaw/openclaw13 reactions · 4 comments
- Mar 4, 2026[FEATURE]: Add GitHub Copilot SDK as an AI provider option — KeygraphHQ/shannon8 reactions · 1 comment
- Aug 20, 2026Allow Canvas extensions to open or focus an existing local session — github/app3 reactions
- Mar 10, 2026Make RequestIdSTJsonConverter public for AOT/trimming compatibility — microsoft/vs-streamjsonrpc3 reactions
- Jan 22, 2026.NET: Add AIAgent implementation for Github Copilot SDK — microsoft/agent-framework3 reactions · 3 comments
8 more on GitHub
- Aug 1, 2026BYOK Responses streaming drops apply_patch input before execution — github/copilot-cli2 reactions · 1 comment
- Jan 21, 2026Bump github-copilot-sdk from 0.1.13 to 0.1.14 in the uv-all group — Ven0m0/gemini-web-wrapper2 reactions · 1 comment
- Oct 1, 2026Add support for gpt-6.1-sol — github/gh-aw1 reaction
- Sep 24, 2026build(deps): bump github.com/github/copilot-sdk/go from 0.1.25 to 1.0.14 — orka-agents/orka1 reaction · 1 comment
- May 27, 2026Rust SDK? — openai/codex1 reaction · 3 comments
- May 5, 2026Provider Request: GitHub SDK / with github.com + company.ghe.com support — vectorize-io/hindsight1 reaction · 1 comment
- Feb 11, 2026CI Failure DoctorBuild failure after copilot-sdk upgrade to v0.1.21 — devantler-tech/ksail1 reaction · 2 comments
- Jan 27, 20260xsarawut.base.eth — base/docs1 reaction
On Bluesky · 11
- Jan 22, 2026I built a web app with the GitHub Copilot SDK to make analyzing log files easier. It'll summarize them, provide a root cause analysis, and… — @kaylacinnamon.bsky.social66 likes and reposts · 3 replies
- Jan 22, 2026The @github.com Copilot SDK is live and it's really awesome! Learn more about it and try it out: github.com/github/copil... — @cassidoo.co63 likes and reposts · 5 replies
- Jan 22, 2026The GitHub Copilot SDK is here 🙌 You can take the same Copilot agentic core that powers GitHub Copilot CLI and embed it in any… — @github.com30 likes and reposts · 4 replies
- Jan 28, 2026Now you can integrate #Microsoft #Copilot #CodingAgent via SDK into your app. Java, .NET/C#, Python, TypeScript, Go bindings MIT license… — @qdrddr.bsky.social3 likes and reposts
- Jan 27, 2026GitHub ha soltado hace unos días una bomba para devs 🚀 Con el GitHub Copilot SDK ahora puedes meter un agente de IA real (planifica,… — @mouredev.com3 likes and reposts
6 more on Bluesky
- Apr 4, 2026📦 github / copilot-sdk ⭐ 8,195 (+40) 🗒 TypeScript Multi-platform SDK for integrating GitHub Copilot Agent into apps and services — @github-trending-js.bsky.social2 likes and reposts
- Feb 9, 2026Have you used the GitHub Copilot SDK yet? If not… you probably should 👀 Repo 👉 github.com/github/copil... Tonight I had a bit of fun… — @thomast1906.bsky.social1 likes and repost
- Jan 26, 2026@github.com announced Copilot SDK, bringing the power of Copilot CLI to your apps. I built Flight School, an app that gives learning… — @chrisreddington.com1 likes and repost
- Jan 20, 2026GitHub Copilot CLI SDKs (github/copilot-sdk): Multi-platform SDK for integrating GitHub Copilot Agent into apps and services… — @aaronw.dev1 likes and repost
- Jan 29, 2026But ‘til then, check out some of the Copilot SDK projects we’re loving right now. If you haven’t given it a go, sharing some inspo in the… — @kdaigle.xmirror.bot0 likes and reposts · 1 reply
- Jan 23, 2026𝗚𝗶𝘁𝗛𝘂𝗯 𝗼𝗽𝗲𝗻𝘀 𝗶𝘁𝘀 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗖𝗟𝗜 𝗮𝘀 𝗮 𝗽𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗮𝗯𝗹𝗲 𝗦𝗗𝗞 💯 🚀 Now in technical preview, the GitHub… — @inakibes.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Jan 22, 2026GitHub Copilot CLI SDKs3 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- dotnet/test/E2E/AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- sdk-java-e2e-testSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 28
Use try-with-resources for CopilotClient and CopilotSession.
- Very specific: line 30
Use typed event handlers and the existing ToolDefinition and ToolInvocation helpers rather than ad hoc wire payloads.
- Very specific: line 38
Add Javadoc for public APIs and follow the existing four-space, Spotless/Eclipse formatting.
- Very specific: line 44
Prefer the checked-in Maven wrapper (./mvnw, or .\mvnw.cmd on Windows).
- Very specific: line 45
Follow SDK setup for the JDK and layout-appropriate Node.js version.
- Very specific: line 60
Run verify without -q or piping through grep so failures remain visible.
- Very specific: line 65
Add new Java E2E tests for Java SDK surface behavior, not shared runtime functionality.
- Very specific: line 76
Do not edit sdk/src/generated/java/ by hand.
- Distinctive: line 90
Use the SDK's selected schema inputs.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->Java SDK
This directory is the Java SDK's Maven reactor. Paths and commands below are
relative to this directory, whether it is nested at src/sdk/java or exported
as java. Keep API usage examples in README.md, the
SDK documentation, and public Javadoc rather than
duplicating them in these contributor instructions.
Layout and compatibility
sdk/src/main/java/contains the handwritten client, session, and RPC APIs.sdk/src/test/java/contains unit and integration tests.sdk/src/generated/java/contains generated protocol and event types.copilot-native/packages platform-specific runtime artifacts separately from the pure-Java SDK.- Build with JDK 25 or later, as required by sdk/pom.xml.
The base sources target Java 17; Java 25-specific implementations belong in
the existing
sdk/src/main/java25/multi-release overlay. Do not raise the base target or introduce newer APIs into the Java 17 sources.
API conventions
- Preserve the
CompletableFuture-based asynchronous API and fluent setters on configuration classes. Preserve wire names and serialization behavior when changing RPC types. - Use try-with-resources for
CopilotClientandCopilotSession. Close event and lifecycle subscriptions when no longer needed. - Use typed event handlers and the existing
ToolDefinitionandToolInvocationhelpers rather than ad hoc wire payloads. PrefergetArgumentsAs()for typed tool arguments. - Creating and resuming sessions requires a permission handler.
PermissionHandler.APPROVE_ALLis for scenarios that do not exercise permission decisions; it cannot bypass managed-settings approval. - Handle exceptional future completion and
SessionErrorEvent. Streaming consumers must handle both incremental delta events and final messages. - Add Javadoc for public APIs and follow the existing four-space,
Spotless/Eclipse formatting. Checkstyle defines the Javadoc checks and
exclusions in
sdk/config/checkstyle/checkstyle.xml.
Build, format, and test
Prefer the checked-in Maven wrapper (./mvnw, or .\mvnw.cmd on Windows).
Follow SDK setup for the JDK and
layout-appropriate Node.js version. Tests use Node.js for the replay harness and
runtime preparation tooling. Maven's generate-test-resources phase installs
their dependencies from the SDK tree. In the runtime repository, prefer
npm --prefix <SDK_ROOT> run test:java; it refreshes the selected schemas and
Java projection and requests a current host CLI before running the tests.
Direct Maven commands bypass those prerequisites and are appropriate after
preparing the checkout, or in the standalone SDK repository.
./mvnw clean verify
./mvnw -pl sdk spotless:apply
./mvnw -pl sdk spotless:check checkstyle:checkRun verify without -q or piping through grep so failures remain visible.
verify does not run Spotless: apply and check formatting separately for Java
source changes. Tests must exercise public APIs, not expose internals solely
for tests.
Add new Java E2E tests for Java SDK surface behavior, not shared runtime
functionality; new SDK-accessible runtime E2Es belong in
../nodejs/test/e2e/. For replay-backed Java integration tests, use the on-demand
sdk-java-e2e-test skill.
Its snapshot workflow is not required for unrelated
Java edits. For JDK 17 compatibility testing, run the JDK 25-built artifact on
JDK 17 without recompiling it, following
Development Setup.
Generated sources
Do not edit sdk/src/generated/java/ by hand. Update the generator in
scripts/codegen/java.ts when needed. From <SDK_ROOT>, regenerate with the
SDK facade so the runtime layout selects checked-out schemas and the standalone
layout selects its pinned release schemas:
npm run generate:javaThe protocol constant sdk/src/main/java/com/github/copilot/SdkProtocolVersion.java
is also generated, despite living outside src/generated/. Change the shared
<SDK_ROOT>/sdk-protocol-version.json and run
npm --prefix <SDK_ROOT>/nodejs run update:protocol-version to update all six SDKs.
Use the SDK's selected schema inputs; do not update release-derived CLI pins as an incidental part of implementation work.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

