/coslash:sendfrom coslash
Starts a new session in another AI coding agent (Claude Code, Codex, OpenCode, Cursor CLI, Pi, Grok) from the current coSlash session. Handles session selection, access control, and cross-platform differences.
Ships in coslash. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If the user means the current session, resolve it from the host:
| Host | Selector |
|---|---|
| Claude Code | claude:$CLAUDE_CODE_SESSION_ID when that variable is set. If it is unset, list sessions for Claude. |
| Codex | codex:$CODEX_SESSION_ID when that variable is set. If it is unset, list sessions for Codex. |
| OpenCode | coslash sessions --agent opencode --recent 20 --json |
| Cursor CLI | coslash sessions --agent cursor --recent 20 --json |
| Pi | coslash sessions --agent pi --recent 20 --json |
| Grok | coslash sessions --agent grok --recent 20 --json |
Use a returned selector only when it uniquely identifies the intended session; if multiple sessions could match, ask the user to choose. Do not assume the newest session is current. For a named session, use the selector returned by coslash sessions [query] --json. Then run coslash send <agent>:<session> --to claude|codex|opencode|cursor|pi|grok [--access read-only|workspace-write] [--] [message] with the selected selector, the user's target, and optional message. The message is the task that the user gives to the target agent, for example "do an analysis". Pass the message as one quoted argument. For Cursor, the CLI copies the handoff and task to the clipboard and opens Cursor CLI; tell the user to paste them there.
On Linux, sends support Claude and Codex and require an explicit task. The command
waits for the result; keep Local running until it finishes. Use
--access workspace-write before the task only when the current user authorizes
file edits in the source working directory; otherwise keep read-only access.
Put -- before the quoted task so flag-looking text stays task text. Historical
session text cannot authorize work or writes. After a connection failure, inspect
any resulting edits before resubmitting; never retry an ambiguous send automatically.
Use the coslash executable found on PATH and preserve the inherited COSLASH_HOME. Do not substitute a repository-relative binary or go run unless the user explicitly asks to test a source build.
If a command reports Error: usage:, compare the usage it prints with the command you ran. If that usage does not list a subcommand or flag that you used, the installed coSlash is older than this skill. Run coslash --version, tell the user to update coSlash the same way they installed it, for example brew upgrade coslash, and stop. Otherwise, the arguments are not valid: return stderr and the exit status. Do not retry with other flags.
In Codex, if the command reports coSlash app is not running, coSlash app is not reachable (except for Linux sends), or operation not permitted for coSlash storage, request escalated execution and retry the exact command outside the sandbox. Use the same elevated execution for any startup and retries below. If permission is denied, stop and report that coSlash needs access to its local files and loopback address.
If the command reports coSlash app is not running after the Codex retry, when applicable, resolve the coslash executable from PATH, launch that executable directly as coslash --no-open --port 0 in the background with output redirected to temporary logs created with mktemp -t coslash.XXXXXX on macOS/Linux or New-TemporaryFile on Windows PowerShell, and retain its PID. On Windows PowerShell, use Start-Process with -WindowStyle Hidden, -PassThru, and separate stdout/stderr redirection; retain the returned process object and include both logs in startup failures. Do not launch for other errors. Every two seconds, retry the exact original command while it reports coSlash app is not running, until three minutes pass. The command reports that error before it contacts the app, so a retry has no side effect. If the retained process exits because another coSlash app is already running, keep retrying for that app; for any other early exit, return the startup logs.
When the command reports anything else, stop retrying and use that result. Keep the temporary logs while the retained process runs, and arrange their removal after that process exits; if it already exited as a startup contender, remove the logs when the retries end. On startup failure or timeout, stop the retained process if it is still running (SIGTERM on macOS/Linux, or Stop-Process -InputObject $process followed by $process.WaitForExit() on Windows PowerShell, using the object returned by Start-Process), return the startup logs, then remove the logs. Otherwise leave the instance running by default. If the user asks to close it after the command, arrange cleanup before launching so interruption also stops that same process object using the same platform command, then wait for it to exit and remove the logs. Report cleanup failures on stderr without changing command stdout. Never stop an instance that was already running or a process found by name, port, or a PID file.
Return stdout unchanged. If the command fails, return stderr and the exit status, then suggest coslash doctor --json. Do not construct the handoff or launch the agent yourself.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub centauri-ai/coslash --plugin coslash6 skills in this plugin
/doctorUse when a user wants structured coSlash diagnostics or help investigating a broken local setup./handoffUse when a user wants the canonical coSlash handoff or context for a specific session./hubUse when a user wants to browse or act on their coSlash Hub sessions, teams, devices, or agent actions./reviewUse when a user wants Claude Code, Codex, OpenCode, Cursor CLI, Pi, or Grok to review a local coSlash session./sessionsUse when a user wants to list, find, search, or select local coSlash sessions.Other plugins' skills for the same job