Transparent PTY wrapper for Claude Code with role detection and cloud atom storage
Project description
0latency CLI
Verbatim CLI capture wrapper for Claude Code, Codex, Gemini CLI, and Aider. Captures all user inputs and agent outputs as role-tagged atoms, stored locally or synced to the 0Latency cloud memory platform.
Installation
pip install -e .
Usage
# Wrap Claude Code session (writes to cloud if authenticated)
0latency claude
# Wrap Claude Code with local-only storage
0latency --local claude
# Dry-run mode (show what would be captured)
0latency --explain claude
# Authenticate with 0Latency cloud
0latency login
# Check status
0latency status
# Pass arguments to Claude Code
0latency claude --print "what is 2+2"
0latency claude /path/to/project
Commands
0latency claude [args...]- Wrap Claude Code session with verbatim capture0latency login- Authenticate with OAuth device-code flow0latency status- Show auth state, storage info, and sync status
Flags
--local- Force local-only storage (override cloud writes)--explain- Dry-run mode showing what would be captured--version- Show version information--help- Show help message
License
MIT
Reliability Features (v0.3.0)
Production-hardened for long-running sessions and adverse conditions:
- Crash Recovery: Zero atom loss via rolling buffer + auto-import
- Backpressure Handling: Local queue (10K cap) with exponential backoff retry
- Large Paste Support: UTF-8-safe chunking up to 1M+ characters
- Long-Session Stability: Ring buffers keep RSS < 500MB in 4+ hour sessions
- Interactive Prompts: Y/N and password prompts pass through (not captured)
- Tool-Call Tracking: Multi-tool chains atomized with sequence metadata
- Async Background: Non-blocking capture for long-running bash commands
- Atom Batching: API efficiency via 10-atom batches or 2s flush
See docs/reliability.md for details and verification.
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 0latency_cli-0.3.0.tar.gz.
File metadata
- Download URL: 0latency_cli-0.3.0.tar.gz
- Upload date:
- Size: 71.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acbcb587ce25322d46ad65df527fae1abeef6d010f16c5e18424c641f99fdc1a
|
|
| MD5 |
4a5c7c97276f291b7f3716cf7afe84bd
|
|
| BLAKE2b-256 |
d9d5bef8e0093b55f67a8ecd585783d442bac1923817a791f290af3ceae48667
|
File details
Details for the file 0latency_cli-0.3.0-py3-none-any.whl.
File metadata
- Download URL: 0latency_cli-0.3.0-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10525eb22848afe096e2cb45f697988ce4498c8e78f4705bf0ddafd9c10ef8e0
|
|
| MD5 |
7a160d6ff982e4369f8f918dd351caf0
|
|
| BLAKE2b-256 |
c1673b9d2b9ca906b69763cb7e1484a858a14ea193aed5e10e8345e4df903874
|