claude-ralph-harness
Ralph Loop Harness: iterative Claude runner + stream-json renderer.
Two modes:
- render - Reads JSONL from stdin and renders a human-friendly terminal view of Claude Code's
stream-jsonoutput - loop - Drives Claude iteratively until a completion promise is detected
Stdlib only, no external dependencies.
Install
# from PyPI
uvx claude-ralph-harness
# or install globally
uv tool install claude-ralph-harness
Usage
Render mode
Pipe Claude Code's stream-json output for a readable terminal view:
claude -p --output-format stream-json --verbose "your prompt" | claude-ralph-harness render
Options:
--show-thinking Display thinking block content
--no-color Disable ANSI color codes
--verbose Show raw JSON for unrecognized events
--show-tool-output Show full tool result content
If stdin is piped and no subcommand is given, render mode is the default:
claude -p --output-format stream-json --verbose "prompt" | claude-ralph-harness
Loop mode
Run Claude iteratively until it outputs a <promise>SKILL COMPLETE</promise> tag (or a custom phrase):
claude-ralph-harness loop --prompt PROMPT.md --max-iterations 50
Options:
--prompt FILE Path to the prompt markdown file (required)
--completion-phrase TEXT Phrase inside <promise> tags that signals completion
(default: SKILL COMPLETE)
--max-iterations N Maximum number of iterations (default: 50)
--working-dir DIR Working directory for claude subprocess (default: .)
--show-thinking Display thinking block content
--verbose Show raw JSON for unrecognized events
License
MIT
Metadata
Release files for claude-ralph-harness 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| claude_ralph_harness-0.1.0.tar.gz | 32.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_ralph_harness-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.3 kB
Release files / claude_ralph_harness-0.1.0.tar.gz
| Download URL | claude_ralph_harness-0.1.0.tar.gz |
|---|---|
| Size | 32.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66c5e3cd0b4b3351b85ae5c9e5e9eae9b7ad7d7e76d56592137e72c79f75bc9b
|
|
BLAKE2b-256 checksum How to use checksums |
7e53a67867832ae62865e778179a43b80c3577079763b0c1180c6cc6631c39a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logRelease files / claude_ralph_harness-0.1.0-py3-none-any.whl
| Download URL | claude_ralph_harness-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2806edfe19fd017291e7c302fd12464bbc8811d82aadb4f84b9e8ec3888c872d
|
|
BLAKE2b-256 checksum How to use checksums |
9cf1066c3504d04846a21a82a78a005c585ed1b10e402372c8d2550fe4b94d89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logSecurity for claude-ralph-harness 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for claude_ralph_harness-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.