Answer: Pass the directories on the session config instead of using the --plugin-dir launch argument; in Node.js/TypeScript you set pluginDirectories: string[] in createSession, and the directories travel in the session.create and session.resume payloads over JSON-RPC. Status: Confirmed Entry: tool/github-copilot/settings/per-session-plugin-directories Revision: 3 Digest: sha256:5262bcbb3b6ac0b9 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:10Z Last changed: 2026-11-19T13:02:06Z (Example usage: — → pluginDirectories : [ "./plugins/code-reviewer" ]) Last verified: 2026-11-20T13:08:30Z Next check: 2026-11-21T13:08:30Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Python session option | plugin_directories=[...] | [1] | 2026-11-20 Go session option | Plugin Directories: []string{...} | [1] | 2026-11-20 .NET session option | PluginDirectories = [...] | [1] | 2026-11-20 Java session option | .set Plugin Directories(List.of(...)) | [1] | 2026-11-20 Rust session option | .with_plugin_directories([...]) | [1] | 2026-11-20 Example usage | pluginDirectories : [ "./plugins/code-reviewer" ] | [1] | 2026-11-20 Sources: [1] GitHub. "Plugin directories - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/plugin-directories Role: primary. Accessed: 2026-11-20T13:08:30Z Quote: "Python plugin_directories=[...]" (Supports: Python session option) Quote: "Go Plugin Directories: []string{...}" (Supports: Go session option) Quote: ".NET PluginDirectories = [...]" (Supports: .NET session option) Quote: "Java .set Plugin Directories(List.of(...))" (Supports: Java session option) Quote: "Rust .with_plugin_directories([...])" (Supports: Rust session option) Quote: "pluginDirectories : [ "./plugins/code-reviewer" ]" (Supports: Example usage) Snapshot SHA-256: 0a0a80614c6cac5411c22977a9fdb81fe25025f17ba051258f8d35cd62c9e977 (captured 2026-11-18T13:03:35Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:03:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:30Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:30Z Last attempt: 2026-11-20T13:08:30Z Notes and limitations: Extracted automatically from a single official source (section "Per-session plugin directories"). Related: https://latestn.com/tool/github-copilot/settings/plugin-enablement What decides whether a GitHub Copilot plugin is enabled? https://latestn.com/tool/github-copilot/settings/plugin-file-locations Where does GitHub Copilot CLI look for plugins and in what order are they loaded? https://latestn.com/tool/github-copilot/settings/prepare-dotfiles-repository How do I prepare a dotfiles repository for GitHub Copilot cloud sessions? https://latestn.com/tool/github-copilot/settings/override-default-spn How do I override the default SPN for GitHub Copilot in VS Code or JetBrains IDEs? https://latestn.com/tool/github-copilot/settings/path-specific-instructions-for-actions-workflows How do I create a custom instructions file in GitHub Copilot that only applies to GitHub Actions workflow files? https://latestn.com/tool/github-copilot/settings/path-specific-test-instructions How do I create custom instructions for GitHub Copilot that apply only to Python test files? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:02:06Z | changed | Example usage: — → pluginDirectories : [ "./plugins/code-reviewer" ] | [1] 2026-11-19T13:02:06Z | changed | Relative path resolution: workingDirectory → — | [1] 2026-11-19T13:02:06Z | changed | Rust session option: with_plugin_directories → .with_plugin_directories([...]) | [1] 2026-11-19T13:02:06Z | changed | Java session option: set Plugin Directories → .set Plugin Directories(List.of(...)) | [1] 2026-11-19T13:02:06Z | changed | .NET session option: PluginDirectories → PluginDirectories = [...] | [1] 2026-11-19T13:02:06Z | changed | Go session option: Plugin Directories → Plugin Directories: []string{...} | [1] 2026-11-19T13:02:06Z | changed | Python session option: plugin_directories → plugin_directories=[...] | [1] 2026-11-19T13:02:06Z | changed | Node.js/TypeScript session option: pluginDirectories → — | [1] 2026-11-17T13:26:28Z | changed | Relative path resolution: — → workingDirectory | [1] 2026-11-17T13:26:28Z | changed | Path resolution: workingDirectory → — | [1] 2026-11-17T13:26:28Z | changed | Transport: session.create and session.resume → — | [1] 2026-11-13T03:28:10Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/settings/per-session-plugin-directories/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/settings/per-session-plugin-directories POST: https://latestn.com/dispute/tool/github-copilot/settings/per-session-plugin-directories with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/settings/per-session-plugin-directories?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set per-session plugin directories in the GitHub Copilot SDK? Revision 3, last verified 2026-11-20T13:08:30Z. https://latestn.com/tool/github-copilot/settings/per-session-plugin-directories (accessed 2026-11-21T09:52:52Z). @misc{LatestN_tool_github_copilot_settings_per_session_plugin_directories_r3, title = {How do I set per-session plugin directories in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/settings/per-session-plugin-directories}}, note = {Revision 3; digest sha256:5262bcbb3b6ac0b9; last verified 2026-11-20T13:08:30Z; accessed 2026-11-21T09:52:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/settings/per-session-plugin-directories