sxcore

Main TUI terminal client for scorpiox AI coding sessions

Linux x64Linux ARM64macOS ARM64Windows x64

Description

sx is the primary entry point for ScorpioX Code — a fully-featured TUI (terminal user interface) client that connects you to AI-powered coding sessions directly from your terminal. It launches an interactive pair-programming environment where you can write, refactor, debug, and deploy code with AI assistance.

The client manages session state, streams AI responses in real time, renders a rich terminal UI with syntax highlighting, and supports multiple AI provider backends including Claude, Codex, and Gemini. Written in C for maximum performance and minimal startup latency.

Flags & Options (14)

FlagShortDescriptionTakes Value
--version-vPrint version information and exitYes
--prompt-pSend a one-shot prompt without entering interactive modeYes
--help-hShow help message and usage informationNo
--dry-run-nSimulate the session without making changesYes
--providerSelect the AI provider backend (e.g. claude_code, codex, gemini)Yes
--newStart a brand-new session with an optional nameYes
--cwdSet the working directory for the sessionYes
--hostConnect to a remote scorpiox-server hostYes
--headlessRun in headless mode (no TUI, stdout only)No
--session-idResume an existing session by its IDYes
--emit-sessionWrite the session ID to a file on startupYes
--emit-bindingsExport key-bindings configuration to a fileYes
--not-yoloDisable auto-approve mode; require confirmation for every actionNo
--safeEnable safe mode — block all file-write and shell operationsNo

Usage Examples

Start an interactive session in the current directory
sx
Send a one-shot prompt (non-interactive)
sx -p "refactor the auth module to use JWT tokens"
Start a new named session with a specific provider
sx --new "backend-rewrite" --provider claude_code
Resume a previous session by ID
sx --session-id abc123-def456
Dry-run mode — preview what the AI would do without making changes
sx --dry-run -p "migrate database schema to v3"
Safe mode — read-only, no file writes or shell commands
sx --safe -p "explain the architecture of this project"
Headless mode for CI/CD pipelines
# Run sx non-interactively, pipe output to a log file
sx --headless -p "run all tests and fix failures" > ci-output.log 2>&1
Connect to a remote host and work in a specific directory
sx --host dev.internal:8080 --cwd /opt/myproject
Require confirmation for every action (disable auto-approve)
sx --not-yolo -p "delete all unused imports across the codebase"
Emit session ID for scripting
# Save session ID so other tools can join the same session
sx --emit-session /tmp/sid.txt --new "deploy-prep"
# Later, in another terminal:
scorpiox-transcript --session-id $(cat /tmp/sid.txt)

Source & Build Info

Source File
scorpiox/sx.c
Lines of Code
5,938
Dependencies
libcurl · libsxnet · libsxterm · libsxui · libsxutil