Skip to main content

henhouse

Discussions

Parse Claude Code and Cursor JSONL transcripts into typed session summaries and tool-call events. Stdlib only. Read-only: it never writes a transcript, a registry, or a git tree.

This package is the data layer. It is not the curses dashboard (that stays in leghorn) and it is not top for sessions (that stays in roost). Those products link this schema; they do not take a pip dependency on it.

The JSON shape can change. Treat breakage as expected until a later version is frozen.

Install

Python 3.10+:

pip install henhouse

Or install a tagged release from GitHub:

pip install git+https://github.com/gmhoward9289-ops/henhouse@v0.1.1

Develop from a clone:

pip install -e ".[dev]"

One-file / no-deps install is still how roost and leghorn ship: copy this package's src/henhouse/ tree, or keep using the vendored parser in those repos until an optional import lands.

from henhouse import iter_tool_calls, load_tool_calls, summarize, read_tail, ToolCall, SCHEMA_TOOLS

If a pip install leghorn put a top-level henhouse.py on sys.path, that file wins over this package. Use PYTHONPATH=src or uninstall the leftover module file; roost and leghorn themselves keep their vendored parser and do not pip install henhouse.

CLI

python -m henhouse path.jsonl

prints

{"schema": "henhouse.tools.v1", "calls": [ ... ]}

--legacy-json prints a bare list of call objects.

cost_usd on session summaries is always None. Token counts are not a subscription bill; this package will not invent money.

Used by

License

Apache-2.0

Release files for henhouse 0.1.1

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

Source distribution (sdist)

Source distribution for henhouse 0.1.1
File Size Uploaded
henhouse-0.1.1.tar.gz 15.4 kB Details

Built distribution (wheel)

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

Total release size: 30.8 kB

Release files / henhouse-0.1.1.tar.gz

Download URL henhouse-0.1.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6f57d828c6b6e7554c1911d1661021a74208be46f15e5206d26eb21f8203e0a7
BLAKE2b-256 checksum
How to use checksums
b8ef449ee4163e300f3678e66fd1f24e527f1e8c7bd7018397a102d94ed002b2
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 Aug 20, 2026.

Transparency log

Release files / henhouse-0.1.1-py3-none-any.whl

Download URL henhouse-0.1.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcd41385510b10e6602c3d7255f569e8b03f8c0960ea40a17990fc2307c9d26a
BLAKE2b-256 checksum
How to use checksums
78c14bc115ff0ee709ecf42dd6cb76c95f4de38bf93ac3b8ad9320be77181ea2
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 Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

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