Skip to main content

cjm-harness-transcripts

Harness-transcript extraction library: reads Claude Code session transcripts (JSONL DAGs), walks the active path, and extracts the user-facing prose — assistant markdown bodies, cleaned user prompts, and curated tool-parameter prose (e.g. SendUserFile captions) — as ExtractedMessages ready to mint onto a context-graph session spine.

Modules

  • cjm_harness_transcripts — cjm-harness-transcripts: parse agent-harness session transcripts (Claude Code
  • cjm_harness_transcripts.extract — User-facing prose extraction — both sides, one truth.
  • cjm_harness_transcripts.mapping — Transcript ↔ session-key mapping, derived at pull time.
  • cjm_harness_transcripts.records — The transcript record layer: tolerant JSONL loading + the append-only DAG.

API

cjm_harness_transcripts.extract

  • ExtractedMessage class — One user-facing message off the active path, ready to become a Message node.
  • clean_user_text function — Strip harness wrapper blocks from a user prompt; collapse the scar tissue.
  • extract_messages function — The active path's user-facing messages, chronological.

cjm_harness_transcripts.mapping

  • BootInfo class — The first user prose of a transcript — the mapping's evidence.
  • TranscriptMatch class — One ranked candidate pairing for a session key.
  • find_transcripts_for_key function — All plausible transcripts for a session key, best first.
  • parse_record_timestamp function — A transcript record timestamp (ISO-8601, trailing Z) as an aware datetime.
  • parse_session_key function — A session key (local start timestamp, e.g. 2026-08-20_17-05-20) as an aware datetime.
  • read_boot_info function — The transcript's first user record bearing prose, or None (empty/tool-only file).

cjm_harness_transcripts.records

  • TranscriptDag class — The uuid-addressable view of a transcript: parent edges, forks, active path.
  • TranscriptRecord class — One JSONL record, uuid-addressable or not, with the raw dict preserved.
  • load_records function — Load a transcript JSONL tolerantly, in file order.

Dependencies

Used by: cjm-context-graph-projection

Metadata

Release files for cjm-harness-transcripts 0.0.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 cjm-harness-transcripts 0.0.1
File Size Uploaded Provenance Actions
cjm_harness_transcripts-0.0.1.tar.gz 11.1 kB Without provenance Details for cjm_harness_transcripts-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cjm-harness-transcripts 0.0.1
File Interpreter ABI Platform Actions
cjm_harness_transcripts-0.0.1-py3-none-any.whl Python 3 none any Details for cjm_harness_transcripts-0.0.1-py3-none-any.whl

Total release size: 20.7 kB

Release files / cjm_harness_transcripts-0.0.1.tar.gz

Download URL cjm_harness_transcripts-0.0.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
78dfceef57130eaf29f873a049e99a386424df0d1c479803b4e63218c53a58da
BLAKE2b-256 checksum
How to use checksums
eae5c73774df8d2f14fe079c6a46af0aee71f3bbba7d82cd90ea889a9f3c74a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / cjm_harness_transcripts-0.0.1-py3-none-any.whl

Download URL cjm_harness_transcripts-0.0.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c76155c2c3decc4ae8d5b28024e5a12273a36c47cc77d43b738ca9fda733b06
BLAKE2b-256 checksum
How to use checksums
f260bff39bb0283c829e9ab459526a2e389205c1fc020760972d41ffddca58b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for cjm-harness-transcripts 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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