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.3

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.3
File Size Uploaded Provenance Actions
tmdiff-0.2.3.tar.gz 13.4 kB Without provenance Details for tmdiff-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / tmdiff-0.2.3.tar.gz

Download URL tmdiff-0.2.3.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1eb347865f68476be287213e00e3dd77060674066a5fc1fbd75537326f9aed5e
BLAKE2b-256 checksum
How to use checksums
78a9ea9de495259c20233832f3f5893594622ec4fed6162926b4f4256129e16c
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.3-py3-none-any.whl

Download URL tmdiff-0.2.3-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd97014878e9ca7d092478f6700099a3cdd5def9061446c1136b8aa80f920e30
BLAKE2b-256 checksum
How to use checksums
4af767d5314bb68c5ba0aa46c53675b33163fd73ba84c54c740a6d442b13254d
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.3

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