copilot-sdk

Multi-platform SDK for integrating GitHub Copilot Agent into apps and services

112 articles 9.2k View on GitHub ↗
112 articles
Copilot SDK Plugin Directories and Custom Agent Types: A Complete Guide

Unlock Copilot SDK capabilities by mastering plugin directories and custom agent types. Extend runtime features and build isolated sub-agents for advanced fleet mode execution.

how-to-guide
Aug 2, 2026
Session Foreground/Background State Management in the Copilot SDK

Master Copilot SDK foreground background state management. Learn to use session IDs and lifecycle events for seamless TUI+server mode synchronization. Get the code now.

how-to-guide
Aug 2, 2026
Copilot SDK Skills and skillDirectories Configuration: A Complete Guide

Master Copilot SDK skills and skillDirectories configuration. Learn to manage prompt modules, enable/disable skills, and optimize your Copilot experience with this complete guide.

how-to-guide
Aug 2, 2026
How to Elicit User Input During Agent Execution in the Copilot SDK

Learn how to elicit user input during agent execution with the Copilot SDK. Use the Session class and UI helpers like ui.input and ui.confirm for seamless interaction.

how-to-guide
Aug 2, 2026
Copilot SDK Error Handling and Recovery with the onErrorOccurred Hook

Learn Copilot SDK error handling and recovery with the onErrorOccurred hook. Intercept failures, control retries, skips, or aborts, and manage notifications for smoother extensions.

how-to-guide
Aug 2, 2026
Understanding Copilot SDK Factory Limits: maxConcurrentSubagents, timeoutSeconds, and maxAiCredits

Learn about Copilot SDK Factory limits including maxConcurrentSubagents, timeoutSeconds, and maxAiCredits. Prevent runtime overconsumption by understanding these key constraints.

deep-dive
Aug 2, 2026
Copilot SDK Agent Stop Hooks and Graceful Shutdown Handling: Implementation Guide

Learn how to implement Copilot SDK agent stop hooks and graceful shutdown handling. Run cleanup logic and request follow-up turns before your agent session idles or shuts down.

how-to-guide
Aug 2, 2026
How to Define Custom Tools Using the `defineTool` API in the Copilot SDK

Learn to define custom tools with the Copilot SDK's defineTool API. Register custom functionality and integrate it seamlessly with client.createSession for enhanced capabilities.

how-to-guide
Aug 2, 2026
Copilot SDK Cloud Sessions and Remote Session Management: The Complete Developer Guide

Master Copilot SDK cloud sessions and remote session management. Explore 'off', 'export', and 'on' modes to control event streaming and real-time steering for seamless development.

how-to-guide
Aug 2, 2026
Implementing Prompt Enrichment in Copilot SDK: onSessionStart and onUserPromptSubmitted Hooks

Learn to implement prompt enrichment in Copilot SDK using onSessionStart and onUserPromptSubmitted hooks. Enhance prompts at session start or intercept user messages for better AI responses.

how-to-guide
Aug 2, 2026
Container Deployment of Copilot SDK with Kubernetes and Persistent Storage: A Complete Guide

Deploy the GitHub Copilot SDK on Kubernetes with persistent storage. Implement SessionFSProvider and use PVCs to ensure session data survives pod restarts. Get the complete guide.

how-to-guide
Aug 2, 2026
How to Stream Session Events and Track Sub-Agent Lifecycle in the Copilot SDK

Learn to stream session events and track sub-agent lifecycle in the Copilot SDK. Register an event handler to monitor sub-agent states like start, progress, and termination.

how-to-guide
Aug 2, 2026
…

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →