12span share --list [--agent AGENT] [--cwd DIR] [--json] span share [--session UUID | --source-path FILE | --all] [--trace-agent UUID] [--agent AGENT] [--cwd DIR] [--project UUID] [--key KEY] [--json] [--follow [--runtime-only]] [--reasoning-summaries] [--agent-responses] [--prompts]
--all shares every matching local session once, including matching native descendants. It searches across local projects unless you supply --cwd; --agent filters the harness. It ignores the current-session environment. The selected set is limited to 1,000 sessions. Use directory or harness filters for larger catalogs. --all cannot be combined with --follow.--trace-agent to assign the selected session and its descendants, or every session selected by --all, to a persistent workspace agent. This UUID is separate from the --agent harness filter. Omitting it preserves existing agent assignments. The CLI validates the UUID and checks the agent before uploading any batches. API keys need traces:read for this check and traces:write for upload.--project. Creating another project does not change this default. Sharing an existing session without --project preserves its assigned project.| Option | Description |
--list | List matching local sessions without uploading. |
--all | Share all matching local sessions once; searches across projects unless --cwd is supplied. |
--trace-agent UUID | Assign uploaded traces to a persistent workspace agent from span agents list. |
--session UUID | Select an exact session UUID. |
--trace-id UUID | Alias for --session. |
--source-path FILE | Select a local transcript file directly. |
--agent AGENT | Select a supported agent; claude is also accepted. |
--cwd DIR | Select the project directory; defaults to the current directory. |
--project UUID | Assign the session and its native descendants to a shared workspace project. Copy its ID from Settings → Projects. |
--key KEY | Share with a scoped workspace API key. Requires traces:write and takes precedence over a saved login. |
--json | Print a JSON session list or upload result. |
--follow | Keep a Codex session's runtime status and new trace events synchronized until Ctrl-C. Requires lsof and ps. |
--runtime-only | With --follow, report runtime status for an already-shared session without uploading transcript events. |
--prompts | Include visible user prompts in the shared conversation. |
--agent-responses | Include visible assistant replies in the shared timeline. |
--reasoning-summaries | Include available provider-shared summary text when sharing. Cannot be combined with --list. |
--help, -h | Print command help. |
--list, --session, --trace-id, --source-path, or --all. --trace-agent cannot be combined with --list or --runtime-only. Content-selection flags (--prompts, --agent-responses, and --reasoning-summaries) cannot be enabled with --list. Explicit agent and directory filters must match a selected source file.1234567span agents create --name "Release assistant" --description "Release preparation" --json span agents list --json span share --all --agent codex --cwd . --trace-agent AGENT_UUID --json span share --list --agent codex --json span share --session 6b2863cf-ce34-405e-af75-27748912d239 --json span share --source-path ./session.jsonl --reasoning-summaries span share --session 6b2863cf-ce34-405e-af75-27748912d239 --project 913c523a-9815-4a18-a187-6f5d433819a1
span traces assign-agent --trace-agent AGENT_UUID --all. Add --project PROJECT_UUID to limit the workspace project, or repeat --session SESSION_UUID for an explicit selection. This command uses your saved login and updates at most 1,000 traces atomically. The sharer or a workspace admin must be allowed to manage every selected trace; a permission error leaves the selection unchanged.span share --agent codex --session UUID --follow. The observer checks native turn lifecycle records and the live transcript writer every five seconds. Quiet work stays active until the turn finishes, is interrupted, or loses its writer. Runtime reports expire after 45 seconds without renewal. Historical trace views use recorded evidence instead of current runtime status.--follow --json, the initial upload receipt is followed by runtime receipts, one JSON object per line. Following applies to the selected session; its existing native descendants are included in the initial share.--follow --runtime-only to update status independently of transcript uploads. This requires an existing shared trace and emits only runtime receipts with --json.--key, then your saved login, then HALFSPAN_API_KEY, then HALFSPAN_INGEST_TOKEN. The API origin for key-based uploads defaults to https://app.halfspan.com; override it with HALFSPAN_API_URL. With --all --json, output is an array of upload receipts. JSON upload results include session, agent, trace_path, inserted, total, an optional url, and children receipts when descendants are shared. Retry the same share after a partial failure; identical events are deduplicated.span share --agent claude --list --json to find subagents by source_id and parent_session. Pass the child session UUID to --session, select its JSONL file with --source-path, or select the subagent in span traces and press s. Sharing a Claude Code or Codex session also uploads its discovered native descendants with the same content controls. Select a child session to share that subtree. Automatic session selection uses the main transcript.--project assigns the shared trace project independently. The child uses the same workspace credentials, content controls and unshare flow as a regular session. Metadata-only shares use the subagent ID for the title.