status
Check the current Ralph TUI session status for monitoring and CI integration.
Synopsis
Bash
The status command displays the current session state without starting execution. It's designed for scripts, CI pipelines, and quick status checks.
INFO
Use --json for machine-readable output in automation scripts and CI/CD pipelines.
Options
| Option | Description |
|---|---|
--json | Output in JSON format for CI/scripts |
--cwd <path> | Working directory (where to find the session file) |
Examples
Basic Status Check
Bash
Example output:
JSON Output for Scripts
Bash
Example JSON output:
JSON
Check Status in Different Directory
Bash
Status Values
The status field can be one of:
| Status | Description |
|---|---|
active | Session is currently running or paused |
completed | All tasks are finished |
no_session | No session file found |
stale | Session appears abandoned (old lock) |
Use in CI/CD Pipelines
The --json flag makes it easy to integrate with CI systems:
Bash
GitHub Actions Example
YAML
Polling for Completion
You can use status to poll for completion in scripts:
Bash
Session File Location
The status command looks for .ralph-tui/session.json in:
- The directory specified by
--cwd - The current working directory (if
--cwdnot specified)