build-copilot-sdk-app
Build Copilot SDK App
Build applications powered by GitHub Copilot using the @github/copilot-sdk TypeScript/Node.js package (protocol v3). The SDK communicates with the Copilot CLI over JSON-RPC (stdio or TCP) and exposes a session-based API for sending prompts, receiving streamed responses, registering custom tools, handling permissions, and managing agent workflows.
Decision tree
What do you need?
│
├── New app from scratch
│ ├── Install & basic example ──────────► Quick start (below) — npm init, ESM setup, first prompt
│ ├── Client options & transport ───────► references/client-and-transport.md — stdio vs TCP, CopilotClient config
│ └── Authentication ──────────────────► references/auth-and-byok.md — OAuth, tokens, BYOK with 5 providers
│
├── Sessions
│ ├── Create / resume / disconnect ────► references/sessions.md — lifecycle, create-or-resume pattern
│ ├── Infinite sessions & compaction ──► references/sessions.md — long conversations, context window mgmt
│ └── Persistence & resumption ────────► references/sessions.md — disk persistence, resumeSession semantics
│
More from yigitkonur/skills-by-yigitkonur
run-research
Use skill if you are answering one technical research question with current web evidence, Reddit practitioner experience, and source-backed synthesis, optionally fanned out across parallel subagents.
42run-agent-browser
Use skill if you are driving the agent-browser CLI for ad hoc browser automation — @ref snapshots, sessions, forms, extraction, screenshots, headed/stealth, or provider runs.
38publish-npm-package
Use skill if you are publishing to npm via GitHub Actions release workflow with trusted publishing, NPM_TOKEN, provenance, semantic-release, changesets, release-please, or fixing npm publish CI.
35init-agent-config
Use skill if you are creating, auditing, or migrating CLAUDE.md, AGENTS.md, or REVIEW.md instruction files, folder-scoped agent guidance, or cross-agent companion entrypoints.
34build-mcp-use-server
Use skill if you are building TypeScript MCP servers with mcp-use/server — server.tool, response helpers, ctx.auth, sessions, transports, widgets, Inspector, deploy.
34build-skills
Use skill if you are creating or substantially revising a Claude skill and need workspace-first evidence, remote comparison, and repo-fit synthesis before writing SKILL.md.
32