You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Copilot Home Directory](#Copilot_Home_Directory)
37
+
-[TCP Connection Token](#TCP_Connection_Token)
35
38
-[Session Context and Filtering](#Session_Context_and_Filtering)
36
39
-[Listing Sessions with Context](#Listing_Sessions_with_Context)
37
40
-[Filtering Sessions by Context](#Filtering_Sessions_by_Context)
@@ -626,6 +629,28 @@ var session = client.createSession(
626
629
627
630
---
628
631
632
+
## Instruction Directories
633
+
634
+
Specify additional directories to search for custom instruction files. Instruction files (`.instructions.md`) placed in `.github/instructions/` subdirectories of the specified paths will be included in the session's system message:
Use a custom configuration directory for session settings:
@@ -830,6 +855,33 @@ client.forceStop().get();
830
855
831
856
---
832
857
858
+
## Copilot Home Directory
859
+
860
+
Configure a custom base directory for Copilot data (session state, config, etc.). This sets the `COPILOT_HOME` environment variable on the spawned CLI process:
861
+
862
+
```java
863
+
var options =newCopilotClientOptions()
864
+
.setCopilotHome("/custom/data/dir");
865
+
```
866
+
867
+
When not set, the CLI defaults to `~/.copilot`. This option is only used when the SDK spawns the CLI process; it is ignored when connecting to an external server via `setCliUrl()`.
868
+
869
+
---
870
+
871
+
## TCP Connection Token
872
+
873
+
When the SDK spawns the CLI in TCP mode, a connection token is generated automatically to secure the loopback listener. You can provide your own token:
874
+
875
+
```java
876
+
var options =newCopilotClientOptions()
877
+
.setUseStdio(false)
878
+
.setTcpConnectionToken("my-secret-token");
879
+
```
880
+
881
+
This cannot be combined with `setUseStdio(true)`. When omitted in TCP mode, the SDK auto-generates a UUID token.
882
+
883
+
---
884
+
833
885
## Session Context and Filtering
834
886
835
887
Track and filter sessions by their working directory context including the current directory, git repository, and branch information.
0 commit comments