Skip to main content

tmdiff

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

When you export years of messages from Slack, Discord, Gmail, or AI chats, 95% of the file is repetitive noise, boilerplate, and broken timestamps. tmdiff filters out the predictable background and hands you back only the turning points where a new idea, bug, or shift actually happened.

What It Does in 4 Steps

  1. Rebuilds the True Timeline (timeline.py) Extracts exact microsecond creation timestamps straight from platform IDs (Slack ts, Discord/X snowflakes, Gmail hex IDs, UUIDv1/v7). If an ID has no timestamp (like UUIDv4 or Reddit), it marks it UNANCHORED instead of guessing.
  2. Strips Boilerplate & Variables (fingerprint.py) Ignores numbers, URLs, hex hashes, and commit/export boilerplate (Signed-off-by, etc.), and binds negations (not converge → ¬converge) so opposites don't look identical.
  3. Finds the Turning Points (causal.py) Runs a lightweight forward-and-backward prediction model (numpy only) over your timeline. Routine messages score low surprise and get ignored; sudden conceptual shifts score high surprise (bits) and get flagged as turning points.
  4. Packs Lossless Handoffs (transport.py) Optionally exports the cleaned timeline into a self-describing, round-trip-verified UTF-8 byte envelope (.utf8.json) that never breaks on quotes or special characters.

Quick Start

pip install -e .
python3 -m tmdiff.cli examples/sample_archive.jsonl

Example Output

Processed 6 events | Turning points isolated:
  [2025-10-31T17:15:00.500000+00:00] (5.911 bits) Solver did not converge when mirror partner was omitted from state
  [2026-08-26T13:16:58.180000+00:00] (5.842 bits) Verified Davenport-Heilbronn mod 5 crossing at n=285 without Euler product

Run Tests

python3 -m unittest discover -v tests

License

MIT

Metadata

Release files for tmdiff 0.1.0

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.1.0
File Size Uploaded Provenance Actions
tmdiff-0.1.0.tar.gz 10.3 kB Without provenance Details for tmdiff-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 19.8 kB

Release files / tmdiff-0.1.0.tar.gz

Download URL tmdiff-0.1.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d3253b1b41b200a64375087c4add975ea18b7e9eb23f996c0e1b2bf49d03fa50
BLAKE2b-256 checksum
How to use checksums
6a4e2afa95b25f8a51e65bcd25ca0a6bc4e53ecda13858d8fe6b2971fa4ea12a
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.1.0-py3-none-any.whl

Download URL tmdiff-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea766fb95d99ca6964b4e57977ab22865a40ea19e4f671652ac975966afd7f7b
BLAKE2b-256 checksum
How to use checksums
b23656f162b4c99cbe6334e221ac3c4a33d2ade722987b460ce785603d084091
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.1.0

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