Skip to main content

🐜 trailant

The Trail Ant — trailant's mascot, mid-stride, leaving a glowing trail behind

Ants don't remember paths. They lay a trail as they move, and follow the strongest trail back.

trailant does the same for your work. It doesn't hold state of its own — it reads the trails your tools already leave behind (Claude Code, Codex CLI, and other AI coding sessions) and reconstructs where you were, so you can answer:

  • "Where was I?" — resume the right session, in the right project, without hunting through directories or scrollback.
  • "What did I actually do today / this week?" — a reconstructed activity view, useful for timesheets, standups, or just your own sanity.
  • "Am I pacing myself sustainably?" — a cadence view of your own velocity over time, so a burnout trajectory shows up as data instead of only as hindsight.

No cloud, no telemetry, no account. Everything lives in plain, append-only JSONL files on your own machine, so you can cat them, grep them, or check them into your own private git repo if you want history on your history.

Why not just use claude --resume / codex resume?

Those work fine within one vendor. trailant exists for the parts they don't cover: a single view across multiple AI coding tools, a way to reconstruct what a session or day was actually about after the fact, and a lightweight trend view over weeks — none of which any single vendor's CLI is trying to solve.

Design principles

  1. Transparent over opaque. The source of truth is plain JSONL — the same format Claude Code and Codex already use for their own session logs. No database holds unique data.
  2. Cache, never store, derived state. Any local index (e.g. SQLite) is a disposable accelerator, rebuildable at any time from the JSONL. Delete it whenever — nothing is lost.
  3. Supervised, not autonomous. trailant never sends anything (a log, an email) without showing you the draft first. It's meant to make a human-in-the-loop workflow faster, not to replace the human in the loop.
  4. Vendor-agnostic via adapters. Each AI coding tool gets a small adapter that normalizes its session format into one internal shape. Adding a new vendor is a self-contained addition.

See docs/technical-overview.md for the full design spec.

Mascot: the Trail Ant 🐜 — doesn't remember, just reads the trail.

Install

git clone https://github.com/semanticintent/trailant.git
cd trailant
pip install -e .

Quickstart

trailant reindex     # walk configured source directories, build the trail index
trailant resume       # list recent sessions across all vendors, ranked by recency
trailant today          # reconstructed view of today's activity
trailant log "debugging the retry logic in the ingest job"   # manual entry, no editor needed
trailant cadence          # velocity trend vs. your own baseline
trailant cadence --html   # same data as a static HTML report (also on `resume`)
trailant diff             # what changed in the index since the last `diff` run
trailant resume --print-command   # also print the exact `claude --resume <id>` / `codex resume <id>`

Configuration lives at ~/.trailant/config.yaml and is created with sane defaults on first run. See config.example.yaml in this repo for the full set of options.

Example output

--html on resume/cadence writes a static, screenshot-ready report instead of printing to the terminal (--output PATH implies --html). These are real renders — synthetic demo data, but the actual command output, not a mockup:

trailant cadence --html — a 9-week bar chart of session counts

trailant resume --html — recent sessions across every vendor

Status

Early / pre-alpha. The Claude Code and Codex adapters are functional against the documented session formats; other vendors are not yet implemented. Interfaces may change. Contributions and adapters for other tools (Cursor, Gemini CLI, etc.) are very welcome — see CONTRIBUTING.md.

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trailant-0.4.0.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trailant-0.4.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file trailant-0.4.0.tar.gz.

File metadata

  • Download URL: trailant-0.4.0.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trailant-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6d1437972dc7d0c2086400ebf10aef5dce8be0a950b0170b825b19930531dfd3
MD5 8729143746fcd77d553e60f70eaf8fb6
BLAKE2b-256 4c0ff776cad411bb34efb6d32f2610320ff79cb537801537f4b912d33142e06f

See more details on using hashes here.

Provenance

The following attestation bundles were made for trailant-0.4.0.tar.gz:

Publisher: publish.yml on semanticintent/trailant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trailant-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: trailant-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trailant-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 605892ca5c2f710324169df4f05ae7d1865029e3af9dd47671ebbc5202ffa6c9
MD5 684eeeeef5ecc9337a903340687da99c
BLAKE2b-256 a910b09d04adae5241119b6d351be692762bef9cdd8be7f744b9349979f540a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for trailant-0.4.0-py3-none-any.whl:

Publisher: publish.yml on semanticintent/trailant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page