Skip to main content

Live stream command line output.

Project description

live

Live stream command line output.

Enable agents to inspect logs via familiar interfaces like cat and tail. Explore logs from long-running or long-dead processes.

Large logs auto-rotate. Old sessions are cleaned opportunistically. No long running daemons. All state is stored in ~/.live.

Requires Python 3.10+. Zero dependencies.

Install

pipx install live-cmd
# or
uv tool install live-cmd

Install shell completions:

live update-shell

Install agent skill:

npx skills add astralarium/live

Print agent guide:

live llms.txt

Usage

Record command:

live run -n server npm start     # foreground
live run -d -n server npm start  # detached; prints session UUID

Inspect sessions:

live ls              # active sessions
live ls -ag          # all sessions
live less server     # interactive paging
live tail -f server  # follow logs

Select by name (newest match) or UUID prefix. Commands are scoped to sessions in the current directory (and descendants); pass -C PATH to scope to another directory, or -g for global scope.

Stop and clean up:

live stop server
live rm server
live rm --exited --older-than 1d

Agents

Resumable streaming for agents using POSIX semantics:

live cat -v server

Verbose output (-v) returns stream metadata on stderr.

live: id=925f… next-line=42 next-byte=250 last-time=1800…

Continue reading from next line:

live tail -vn +42 server

Config

~/.live/config.json, auto-created.

Option Default Description
ttlDays 7 Time before old sessions are cleaned up. Negative value to disable.
maxKb 512 Per-session output cap, in KB. Older segments are dropped.
segmentKb 64 Segment file size, in KB, before rotation.
heartbeatSec 30 Seconds between writer heartbeats; 3× this marks a session hung.

References

Links

Project details


Download files

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

Source Distribution

live_cmd-0.3.1.tar.gz (81.4 kB view details)

Uploaded Source

Built Distribution

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

live_cmd-0.3.1-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file live_cmd-0.3.1.tar.gz.

File metadata

  • Download URL: live_cmd-0.3.1.tar.gz
  • Upload date:
  • Size: 81.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for live_cmd-0.3.1.tar.gz
Algorithm Hash digest
SHA256 cbb7fbe18c6e19fd6f47af683bc62f94bc59fc021f4d31da5b68ecae1c5dc8c6
MD5 e4f8f7606ea7b3b5b264ea4130399e93
BLAKE2b-256 6dedd8a6a9d7ee6f57cf506172bad61a85e68fee385924495c48b3de7458b9b1

See more details on using hashes here.

File details

Details for the file live_cmd-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: live_cmd-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for live_cmd-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9061a7753e6c6130ac54d6ef2ac67c97effa10c6582b9ba0081e1ad6c268d796
MD5 f38300ac3c4a741d8e92710327aaa493
BLAKE2b-256 38090b09a4f988bb889a1a0c79d401978223a043eefe0d5a5088d2895daca8b1

See more details on using hashes here.

Supported by

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