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 prepare CASE generates a private reduction configuration from a preflight receipt and statistical settings. Follow the preparation procedure.
  • ithrl shrink CASE searches for context removals that preserve the selected behavior.
  • ithrl inspect sections CASE lists editable text fields and paragraph boundaries without displaying text or requiring a reduction result.
  • ithrl inspect reacquire SESSION compares recorded operations and captured results across compaction. See passive inspection.
  • 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 Passive inspection
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 Exact recorded-operation and captured-result comparisons across compaction
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 Exact recorded-operation and captured-result comparisons across compaction

Passive inspection reads saved evidence without a harness or model access. The worked investigation records the qualified native profiles, ordinary examples and interpretation limits.

Native fuzzing appends text to eligible prior user input while preserving the fixed triggering input. The fuzzing walkthrough covers a local example and native execution.

Ordinary Codex and Copilot paragraph-removal experiments passed fresh confirmation at a 20-percentage-point preservation margin. See the measurements for completed and unsuccessful outcomes, costs and qualification limits, and the worked investigation for a developer's interpretation. Check native compatibility before using an installed harness.

Documentation

Read the documentation site or browse the guides below.

  • Native runs: session selection, shared prerequisites and compatibility.
  • Native reduction: prepare, inspect and execute a context-removal experiment.
  • Context fuzzing: try the local example and run a native text-append campaign.
  • 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.4.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.4.0
File Size Uploaded Provenance Actions
ithrl-0.4.0.tar.gz 486.0 kB With provenance Details for ithrl-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 917.8 kB

Release files / ithrl-0.4.0.tar.gz

Download URL ithrl-0.4.0.tar.gz
Size 486.0 kB
Tags Source
SHA-256 checksum
How to use checksums
520226d95c70a38b86f59dbe0fe0a120a2885a16621e51a0719228b0321d2138
BLAKE2b-256 checksum
How to use checksums
5ed6b85dadf007ff60bd97a8913a5b8c3d13353fec1fd6b43a01fcf17a78d744
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 14, 2026.

Transparency log

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

Download URL ithrl-0.4.0-py3-none-any.whl
Size 431.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a608469d90602c37c00c1870f097e38f6fde0e8516bb2e9452c3dd98a8e6f3d
BLAKE2b-256 checksum
How to use checksums
58951472a4f78efbfed193e2e1ed3b2d4defde471fd2d3c1c0ecccfde52b5d5f
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 14, 2026.

Transparency log

Security for ithrl 0.4.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.4.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 14, 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