Skip to main content

ithrl

PyPI CI

ithrl turns saved Codex and GitHub Copilot sessions into debugging experiments. Search for a smaller context that preserves a chosen response or tool request, or a small text change that alters it.

Documentation · Try it · Supported inputs

Install

With uv:

uv tool install ithrl

You can also install with pipx install ithrl or, in an existing virtual environment, python -m pip install ithrl. For context fuzzing, use 'ithrl[fuzz]' in place of ithrl in the installation command.

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 deterministic 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 result removes half the context items and confirms that the target is preserved. Output excerpt:

Reduced and confirmed
  context items   10 -> 5
  original test   target observed
  search          1-minimal; all valid single removals tested
  confirmation    target preserved
  observations    15
  No network requests or provider calls. No actions executed.

Inspect the saved result in ithrl-demo/case/results/; the results guide explains its files. Use a new directory to repeat the example; extraction refuses to overwrite an existing case.

Commands

  • ithrl extract browses saved sessions and creates a case from a selected decision.
  • ithrl shrink CASE searches for context removals that preserve the selected behavior.
  • ithrl inspect retained CASE --result RESULT explains retained units and recorded removal trials from a saved reduction without model access. See results and privacy.
  • ithrl fuzz CASE --config PRIVATE_TOML searches for and simplifies text appends that decrease how often the selected behavior occurs, with independent confirmation.

For example, extract a saved session file:

ithrl extract path/to/session.jsonl --output .ithrl/case

Extraction makes no provider calls. Native experiments require Linux, usable Bubblewrap, an installed harness and model access. Review the provider, safety controls and call/time budget in the native-run guide before execution. Returned actions are observed and denied. Cases contain copied session content; keep them private.

Supported inputs

Input Extracted decisions Reduction Fuzzing
Bundled synthetic example Synthetic tool request Deterministic local runner Local fake runner
Codex CLI rollouts Final responses Experimental native runner; paragraph-removal measurements Experimental prior-user text appends
Copilot CLI session events Final responses and shell requests Experimental final-response paragraph removal and denied bash runner Experimental prior-user text appends for final-response targets

Native Codex and Copilot final-response fuzzing supports appending text to eligible prior user input while preserving the fixed triggering input. The fuzzing walkthrough starts with a local example and covers native execution.

Saved-session measurements include ordinary Codex and Copilot final-response experiments that removed paragraphs from retained prior-user text and passed fresh confirmation at a 20-percentage-point preservation margin. The worked investigation explains what the smaller Codex context helped a developer inspect and what remains unresolved. The measurements distinguish private runtime qualification from integrated support and report resource usage and unsuccessful outcomes alongside completed runs. Check native compatibility for the installed harness's requirements.

Documentation

Read the documentation site or browse the guides below.

  • Native runs: session selection, experiment configuration, preflight, model execution and measured resource usage.
  • Results and privacy: saved files, result interpretation, budgets, resume and sensitive data.
  • Contributing: issue-first collaboration, checkout setup, checks and smoke tests.
  • Roadmap: current priorities and planned capabilities.
  • Architecture: implementation boundaries and decisions.
  • Research: feasibility studies, statistical methods and measurements.

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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ithrl 0.3.0
File Size Uploaded Provenance Actions
ithrl-0.3.0.tar.gz 458.7 kB With provenance Details for ithrl-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ithrl 0.3.0
File Interpreter ABI Platform Actions
ithrl-0.3.0-py3-none-any.whl Python 3 none any Details for ithrl-0.3.0-py3-none-any.whl

Total release size: 868.5 kB

Release files / ithrl-0.3.0.tar.gz

Download URL ithrl-0.3.0.tar.gz
Size 458.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ab3ba9a2eb4678e8aa76eaed72dc5b1f5f538b827a46b235378050fa34b4619d
BLAKE2b-256 checksum
How to use checksums
77ebc6ac2ec2988aa4862ea5767994e7f98198cb6d37fbb740e612cb92145fab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / ithrl-0.3.0-py3-none-any.whl

Download URL ithrl-0.3.0-py3-none-any.whl
Size 409.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a695949df117112b1bf0ac09d415574aec702fc52817ffa6a13b477bad82a91b
BLAKE2b-256 checksum
How to use checksums
7e68e2b2dc626e65cc20a7eefbeb1119a38db13bb56bbd205aa86381bd3525ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for ithrl 0.3.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.

Select from 2 files

Attestation for ithrl-0.3.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 Nov 10, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page