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 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 Experimental prior-user text appends
Copilot CLI session events Final responses and shell requests Experimental final-response 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 a confirmed reduction for one Codex session and its chosen predicate: 50.17% lower mean input tokens per confirmation observation, using a 20-percentage-point preservation margin. The measurements 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.2.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.2.0
File Size Uploaded Provenance Actions
ithrl-0.2.0.tar.gz 380.9 kB With provenance Details for ithrl-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 760.7 kB

Release files / ithrl-0.2.0.tar.gz

Download URL ithrl-0.2.0.tar.gz
Size 380.9 kB
Tags Source
SHA-256 checksum
How to use checksums
74842dc5ce4c3b378bc15d7131815e9e2001be37888dab01b5522454e3058ffd
BLAKE2b-256 checksum
How to use checksums
c59f688d15d4988792e43a5e953499e34314748cf17d5d975543b444445d976b
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 2, 2026.

Transparency log

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

Download URL ithrl-0.2.0-py3-none-any.whl
Size 379.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62df9fbfc07e47de9711c17526cf80f3f13e6a5ea194d82c7aea6ae222ac16bf
BLAKE2b-256 checksum
How to use checksums
e49bcb6c7327f76d21aadc661a7135614209a66890791c55bfe689348251db6a
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 2, 2026.

Transparency log

Security for ithrl 0.2.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.2.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 2, 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