Skip to main content

tmdiff

git diff for your chat exports, server logs, and notes — 100% offline, zero LLMs.

tmdiff filters out repetitive background noise, API secrets, and boilerplate from chat and log exports to isolate key turning points and causal links.

Pipeline

  1. Streaming Harmonic Squeeze & Secret Scrub (squeeze.py): 4096-dim FNV-1a NLMS-Huber filter that collapses repetitive log lines in O(1) memory while redacting API keys (sk-, ghp_, AKIA, JWTs).
  2. True Timeline Anchoring (timeline.py): Extracts microsecond birth timestamps directly from platform IDs and full URLs (Slack permalinks, X/Twitter status links, Discord message URLs, Gmail hex IDs, UUIDv1/v7) and flags undecodable IDs as UNANCHORED.
  3. Structural Fingerprinting (fingerprint.py): Strips variable literals, URLs, and hex hashes while binding negations (not converge -> ¬converge).
  4. Bidirectional Causal Turning Points (causal.py): Forward and retrocausal error learning (√(F · Bᵀ)) isolates high-surprise pivots and symmetric concept links.
  5. Lossless Transport & Local HTTP Proxy (transport.py, server.py): Packs verified .utf8.json envelopes or serves /squeeze and /causal over HTTP (tmdiff serve 8787).

Quick Start

pip install tmdiff
cat app.log | tmdiff
tmdiff examples/sample_archive.jsonl --pack examples/out.utf8.json
tmdiff serve 8787

Run Tests

python3 -m unittest discover -v tests

License

MIT

Metadata

Release files for tmdiff 0.2.2

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

Source distribution (sdist)

Source distribution for tmdiff 0.2.2
File Size Uploaded Provenance Actions
tmdiff-0.2.2.tar.gz 13.2 kB Without provenance Details for tmdiff-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 26.4 kB

Release files / tmdiff-0.2.2.tar.gz

Download URL tmdiff-0.2.2.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
403fe6caddf82e73eb2843749792c68bcbcdd4a7c14f7f45e00eb6bce978e48b
BLAKE2b-256 checksum
How to use checksums
4674d6bea2b087de3a39833659893b897f2f85700924a1d6079ee50d710efcaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / tmdiff-0.2.2-py3-none-any.whl

Download URL tmdiff-0.2.2-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1848d7dc0942b5b3f454236340017102817747bc1a2f3a42622de138b9061312
BLAKE2b-256 checksum
How to use checksums
d0c2fca2a53a5a8536bf19d7368699a41003c34c53a486bf89ebfbd18a25051d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for tmdiff 0.2.2

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