Skip to main content

llmsurgery

Read, edit, and rewrite provider session files: Claude Code transcripts, Codex threads, and Antigravity conversations

Install

pip install llmsurgery

What's here

Dialogs are LLM conversations kept as Jupyter notebooks: notes, runnable code with outputs, and prompt/reply pairs in one editable, diffable document. The dialog data model and toolkit live in aidialog. This library contains the provider-session layers:

  • llmsurgery.compact: bounded conversation rendering and compaction documents.
  • llmsurgery.ant: Claude Code session transcripts, including reading, writing, search, curation, compaction, and dialog conversion.
  • llmsurgery.oai: Codex rollouts, including reading, search, compaction, and dialog conversion.
  • llmsurgery.agy: Antigravity CLI and desktop SQLite conversations, including reading, search, compaction, and dialog conversion.
  • llmsurgery.sess: find a session by id prefix and read it as a dialog, or save it with sess2nb. Compact and resume with claudecompact, codexcompact, or agycompact.

llmsurgery.skill is the single pyskills entry point. It routes agents to doc(llmsurgery.ant) for Claude sessions, doc(llmsurgery.oai) for Codex sessions, doc(llmsurgery.agy) for Antigravity conversations, and the compaction module when bounded rendering is needed.

Metadata

Release files for llmsurgery 0.0.21

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

Source distribution (sdist)

Source distribution for llmsurgery 0.0.21
File Size Uploaded Provenance Actions
llmsurgery-0.0.21.tar.gz 48.3 kB Without provenance Details for llmsurgery-0.0.21.tar.gz

Built distribution (wheel)

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

Total release size: 100.3 kB

Release files / llmsurgery-0.0.21.tar.gz

Download URL llmsurgery-0.0.21.tar.gz
Size 48.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1400596d49ce0f578da0623702234a659eb10ea20a8338301d2fb734541e46ff
BLAKE2b-256 checksum
How to use checksums
67582b5c21432a27c30f26cc97a5968826bd68f5895694d9660accec3315ee3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / llmsurgery-0.0.21-py3-none-any.whl

Download URL llmsurgery-0.0.21-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a8133a6b19618b0fbd6ff6b1e2bfc4c5831f63f7430c4717ca8be31ba6dcfb9
BLAKE2b-256 checksum
How to use checksums
f7c3326954ecec5fbbea987ebef1625e4e1142c06e72da144710dd4166c92283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for llmsurgery 0.0.21

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