ithrl turns saved Codex and GitHub Copilot sessions into debugging experiments. Find a smaller
context that preserves a chosen response or tool request, test text changes that alter it, or
compare two selected contexts from the same source.
Documentation · Try it · Supported inputs
Install
With uv:
uv tool install 'ithrl[all]'
This installs all features. You can also use pipx install 'ithrl[all]' or, in an existing virtual
environment, python -m pip install 'ithrl[all]'. For a smaller installation, use ithrl without
extras, or select 'ithrl[fuzz]' for context fuzzing and 'ithrl[compare]' for context comparison.
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.
Use with a coding agent
The ithrl agent skill guides your coding agent through inspecting saved sessions, preparing
experiments and interpreting results. The agent using the skill need not be the harness that
recorded the session.
Install it through Library Skills when ithrl is installed in your Python project environment, or through Vercel Skills from the repository. The installation guide covers both routes and matching the skill to your installed CLI.
After installation, try:
Use the ithrl skill to run the bundled local example and explain the result.
For a saved session, provide its path and ask:
Use the ithrl skill to prepare a context-removal experiment for this session. Show me the experiment plan and provider-call budget before execution.
Commands
Choose a workflow for your debugging question:
| Task | Command | Guide |
|---|---|---|
| Create a case from a saved decision | ithrl extract |
Select a decision |
| Find a smaller context that preserves the behavior | ithrl prepare, then ithrl shrink |
Context reduction |
| Find text appends that decrease the target's match rate | ithrl fuzz |
Context fuzzing |
| Test a selected context change | ithrl compare |
Context comparison |
| Inspect saved context, compaction or results without model calls | ithrl inspect |
Results and privacy |
| Estimate costs from recorded or hypothetical token usage | ithrl cost |
Token-cost estimates |
Inspection covers retained context and removal trials (inspect retained), editable paragraph
boundaries (inspect sections), source-bound tool output (inspect tool) and recorded operations
across compaction (inspect reacquire). Default inspection output omits captured text but may
include local paths. Review output before sharing it.
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 request/time limits 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 | Comparison | Passive inspection |
|---|---|---|---|---|---|
| Bundled synthetic example | Synthetic tool request | Deterministic local runner | Local fake runner | Local fake runner | — |
| Codex CLI rollouts | Final responses | Experimental native runner; paragraph-removal measurements | Experimental prior-user text appends | Experimental final-response context bundles and tool output text spans under their qualified profiles | 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 | Experimental final-response and denied bash context bundles; final-response tool output text spans under their qualified profiles |
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.
Worked comparisons test complete context changes in ordinary Codex and Copilot investigations. For localized changes, select a source-bound tool output text span; the tool output study records qualified final-response profiles and outcomes.
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
The documentation site provides the guides above, CLI reference and troubleshooting. For development, see Contributing and architecture. The roadmap records direction; research records methods and evidence.
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.5.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.5.0.tar.gz | 594.8 kB | With provenance | Details for ithrl-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ithrl-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for ithrl-0.5.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / ithrl-0.5.0.tar.gz
| Download URL | ithrl-0.5.0.tar.gz |
|---|---|
| Size | 594.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3e22b1c3e6090f1ed635dc73799622f7a4cc5cc5cff026567f2af4c8069e39c
|
|
BLAKE2b-256 checksum How to use checksums |
8c5384e31a0ffa721c9258d74dc65704ba07c256712a29c044f8c44250d43670
|
| 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 23, 2026.
Transparency logRelease files / ithrl-0.5.0-py3-none-any.whl
| Download URL | ithrl-0.5.0-py3-none-any.whl |
|---|---|
| Size | 514.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1099173d56147a2768731a466c5a12fd97d45b5792998ba058b64f7252b24b7
|
|
BLAKE2b-256 checksum How to use checksums |
dc1b82db2f6247a64b06d75d7812511e1b186a3871b4511bc519fb49e821f6ad
|
| 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 23, 2026.
Transparency logSecurity for ithrl 0.5.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.5.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 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.