ithrl
ithrl extracts a decision from a saved coding-agent session and searches for a smaller context
that preserves its behavior. Use it to turn a long session into an inspectable debugging case.
Install
With uv:
uv tool install ithrl
Or use pipx install ithrl. In an existing virtual environment, use python -m pip install ithrl.
Check the installation with ithrl --help and ithrl --version.
Tested on Python 3.12–3.14. Native runners require Linux. APIs and saved formats may change before 1.0; keep your source sessions and record the version used for each case.
Try it
The bundled example needs no account, agent installation or model access:
mkdir -m 700 ithrl-demo
ithrl extract --example --output ithrl-demo/case
ithrl shrink ithrl-demo/case --observation-store ithrl-demo/observations.sqlite
The example starts with seven context markers, A through G. The result keeps A and C,
confirms the behavior, and reports zero provider calls and zero executed actions. Inspect it:
cat ithrl-demo/case/results/*/request.json
cat ithrl-demo/case/results/*/summary.json
All generated example data stays in ithrl-demo. Extraction refuses to overwrite an existing case;
use a new directory to repeat it. You can remove the directory and its contents when finished.
Commands
ithrl extractcreates a case from a saved session. In a terminal, omit the source to browse available sessions and select a decision.ithrl shrink CASEtests context removals and saves the result.--dry-runinspects the plan;--format jsonproduces machine-readable output. A stopped search prints its resume command.
For example, extract a saved session file:
ithrl extract path/to/session.jsonl --output .ithrl/case
Cases contain copied session content and should stay private. Extraction makes no provider calls and never executes recorded actions. Native reduction makes model requests and requires an explicit experiment; see the native-run guide.
Supported inputs
| Input | Extracted decisions | Reduction |
|---|---|---|
| Bundled synthetic example | Synthetic tool request | Deterministic local runner |
| Codex CLI rollouts | Final responses | Experimental native runner |
| Copilot CLI session events | Final responses and shell requests | Experimental final-response and denied bash runner |
Native compatibility is checked against the installed harness's protocol, capabilities and safety controls. Compatibility and measurements records the tested configurations and how to check another release.
Documentation
- Native runs: session selection, experiment configuration, preflight, model execution and measured costs.
- Results and privacy: saved files, preservation claims, research references, budgets, resume and sensitive data.
- Contributing: issue-first collaboration, checkout setup, checks and smoke tests.
For help, bugs or proposals, see Support. Report vulnerabilities through private reporting.
Name
Pronounce ithrl as Ithuriel, the angel whose spear reveals Satan in disguise in Milton's
Paradise Lost.
License
Licensed under the Apache License 2.0.
Metadata
Release files for ithrl 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 | Actions |
|---|---|---|---|---|
| ithrl-0.1.0.tar.gz | 273.3 kB | With provenance | Details for ithrl-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ithrl-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ithrl-0.1.0-py3-none-any.whl |
Total release size: 588.9 kB
Release files / ithrl-0.1.0.tar.gz
| Download URL | ithrl-0.1.0.tar.gz |
|---|---|
| Size | 273.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e45e2f89388adc297a68301688a2ec3aa5b791d80cb1d2d010682353e5193c85
|
|
BLAKE2b-256 checksum How to use checksums |
99b539bd9bd8e97e938f2c99c76cf8ce71cb6841abea969fb487572e2a80555e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 23, 2026.
Transparency logRelease files / ithrl-0.1.0-py3-none-any.whl
| Download URL | ithrl-0.1.0-py3-none-any.whl |
|---|---|
| Size | 315.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9018703bb42f432604d8f49b378e96faa5e8cfae9856aace69ccd3321d96c1a3
|
|
BLAKE2b-256 checksum How to use checksums |
c6644e3732ce9a15de9f2fc894b1630f7ed74b1428dc6e341d9dd62ff070f945
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 23, 2026.
Transparency logSecurity for ithrl 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
Both files in this release have been uploaded with provenance metadata.
Attestation for ithrl-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 Oct 23, 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.