Liking cljdoc? Tell your friends :D

Features

These guides cover the capabilities you can add to your Copilot SDK application. Each guide includes examples in supported languages (TypeScript, Python, Go, .NET, Java, and Rust) where available.

New to the SDK? Start with the Getting Started tutorial first, then come back here to add more capabilities.

Guides

FeatureDescription
The Agent LoopHow the runtime processes a prompt—the tool-use loop, turns, and completion signals
HooksIntercept and customize session behavior—control tool execution, transform results, handle errors
Custom AgentsDefine specialized sub-agents with scoped tools and instructions
Changing ToolsReplace the tools a client supplies to a live session
Fleet ModeDispatch multiple sub-agents in parallel for large, independent workstreams
MCP ServersIntegrate Model Context Protocol servers for external tool access
SkillsLoad reusable prompt modules from directories
Plugin DirectoriesBundle skills, hooks, MCP servers, and agents as a single loadable plugin
Customization LocationsDiscover skills, agents, instructions, and file hooks from packages, submodules, and vendored directories
Session limitsSet an AI Credits budget for a session and observe budget events
CitationsLink assistant responses back to their supporting sources
Image InputSend images to sessions as attachments
Streaming EventsSubscribe to real-time session events (40+ event types)
Usage and BillingRead token counts, context-window utilization, AI credit cost, and account quota
Client infoDeclare application and integration identity for runtime telemetry attribution
Offline task analyticsClassify archived ATIF or Copilot trajectories, validate input, and retry failed measurements
Steering & QueueingControl message delivery—immediate steering vs. sequential queueing
Shell password promptsLet users answer sudo, ssh, and git password prompts without the model seeing the answer
Context ClearingReplace conversation context safely with terminal tools
Session PersistenceResume sessions across restarts, manage session storage
Auto Mode RecoveryOffer to retry a request on Auto after an explicit model is degraded, overloaded, or rate limited
Remote SessionsShare locally hosted sessions to GitHub web and mobile via Mission Control
Cloud SessionsRun sessions on GitHub-hosted compute through Mission Control

Related

Can you improve this documentation? These fine people already did:
copilot-cli-release-app[bot], copilot-sdk-mirror-writer[bot], Andy Feller, Steve Sanderson, Kerry Liu, examon, Patrick Nikoletich & Tamás Szabó
Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close