Vendor-neutral CLI/TUI for browsing local agent logs
Reason this release was yanked:
had personal ip/info
Project description
trailback
Vendor-neutral CLI/TUI for browsing local agent logs.
Note: The package is called
trailback(uv pip install trailback), but the CLI command istrail— short to type, easy to remember. See docs/NAMING.md for background.
Current MVP supports Codex, Claude, and Gemini sessions for listing, viewing transcripts, and usage stats.
Install
Install the CLI as a uv tool so the trail executable is available from anywhere:
uv tool install -e .
Ensure the uv tool bin directory is on your PATH (usually ~/.local/bin):
export PATH="$HOME/.local/bin:$PATH"
Verify:
command -v trail
trail tui
CLI
trail sourcestrail ls [--source codex] [--no-cwd]trail ls [--group] [--header] [--show-ids]trail open <session_id> [--source codex]trail open <group_id>trail stats [--source codex] [--format text|csv|json] [--period all|daily|monthly|yearly] [--no-header]trail tuitrail init [--path PATH] [--force]
Config
Use ~/.config/trail/config.toml to add sources. Default Codex example:
[sources.codex]
kind = "codex"
path = "~/.codex"
include = ["sessions/**/*.jsonl", "sessions/**/*.json"]
Claude example:
[sources.claude]
kind = "claude"
path = "~/.claude"
include = ["projects/**/*.jsonl"]
Gemini example:
[sources.gemini]
kind = "gemini"
path = "~/.gemini"
include = ["tmp/*/chats/session-*.json", "tmp/*/logs.json"]
Log sync (multi-machine)
Use scripts/sync-logs.sh to sync logs from a secondary machine to a primary.
It is designed for one-way sync (secondary -> primary) and uses a quiet window
to avoid in-progress files.
Manual run:
PRIMARY_USER=vr000m PRIMARY_HOST=trail-primary ./scripts/sync-logs.sh
Dry run:
DRY_RUN=1 PRIMARY_USER=vr000m PRIMARY_HOST=trail-primary ./scripts/sync-logs.sh
Optional SSH options:
SSH_OPTS="-i ~/.ssh/id_ed25519_trailsync -o StrictHostKeyChecking=accept-new" \
PRIMARY_USER=vr000m PRIMARY_HOST=trail-primary ./scripts/sync-logs.sh
LaunchAgent example (runs every 6 hours):
~/Library/LaunchAgents/com.trail.logs-sync.plist
Reload after edits:
launchctl unload -w ~/Library/LaunchAgents/com.trail.logs-sync.plist 2>/dev/null || true
launchctl load -w ~/Library/LaunchAgents/com.trail.logs-sync.plist
launchctl kickstart -k gui/$(id -u)/com.trail.logs-sync
For design details, see docs/LOG_SYNC.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trailback-0.1.0.tar.gz.
File metadata
- Download URL: trailback-0.1.0.tar.gz
- Upload date:
- Size: 72.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14b99f1b6f9850a2553bd5e37d5af2462c5cf5ddb9478173945d123a90cef89a
|
|
| MD5 |
66d95c1e35b5c5ec39cbc564c83cf873
|
|
| BLAKE2b-256 |
b8db01b15792c028e58158aa505adf80464f542b921fb17f747267626d0cb043
|
File details
Details for the file trailback-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trailback-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ce11174a8df87bd5ae0564ca91771552e1e0e7394d93c8ef38be5fedf138738
|
|
| MD5 |
65799bb9eae03eae0e19a96a185a5946
|
|
| BLAKE2b-256 |
02beda2d61fd3fa1188da3b8615f19f6fa9d871e6a512b89298660927713a69d
|