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
Copy file name to clipboardExpand all lines: .agents/skills/openshell-cli/SKILL.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,12 @@ This creates a sandbox whose canonical main process is `/bin/bash -l` and
74
74
attaches your terminal to that retained process. Add `--detach` to return after
75
75
the sandbox becomes ready without attaching.
76
76
77
+
An explicit trailing command is foreground even when stdin or stdout is not a
78
+
terminal. The CLI streams its stdout and stderr and returns its exact exit
79
+
status. Exit code 0 leaves a retained sandbox in `Completed`; nonzero leaves it
80
+
in `Error` with `MainProcessFailed`. Use `--no-keep` to delete either result
81
+
after output drains, or `--detach` for a long-running service.
82
+
77
83
When supplying `--name`, use a portable DNS-1123 label: at most 63 lowercase alphanumeric or `-` characters, beginning and ending with an alphanumeric character. The Kubernetes driver rejects uppercase letters, underscores, dots, and other names that cannot become Kubernetes resource labels.
78
84
79
85
**Shortcut for known tools**: When the trailing command is a recognized tool, the CLI auto-creates the required provider from local credentials:
@@ -248,11 +254,16 @@ Key flags:
248
254
-`--approval-mode manual|auto`: Control handling of agent-authored policy proposals; `manual` is the default
249
255
-`--upload <PATH>[:<DEST>]`: Upload local files into the container working directory or an explicit destination
250
256
-`--no-git-ignore`: Disable `.gitignore` filtering for uploads
251
-
-`--no-keep`: Delete the sandbox after the initial command or shell exits
257
+
-`--no-keep`: Delete the sandbox after main output and the exit result drain
252
258
-`--detach`: Start the canonical main process without attaching
253
259
-`--forward [BIND_ADDRESS:]PORT`: Forward a local port and keep the sandbox alive
254
260
-`--editor vscode|cursor`: Open a remote editor after creation and keep the sandbox alive
255
261
262
+
`--detach` adds no attachment grace period. When the canonical process exits,
263
+
its terminal phase is reported immediately. A foreground create declares one
264
+
expected main-process SSH attachment; cleanup finalizes after that connection
265
+
closes naturally.
266
+
256
267
Do not combine `--upload` with a trailing main command. Uploads currently finish
257
268
after the canonical process starts; create a scratch sandbox and use
258
269
`sandbox exec`, or build the files into the image.
0 commit comments