# Lanepost: Full Reference > Resume coding-agent work across Claude Code, Codex, Cursor, and IDEs without feeding 2-3 MB transcripts or manually rebuilding session context. Zero-dependency Python 3.9+ standard-library CLI for append-only step journals, compact resume packs, lane consoles, blocking waits, and deterministic command fact caching. - Repository: https://github.com/krishnac7/lanepost - Documentation & Live Console Sample: https://lanepost.krishnac7.com/ - Demo Console: https://lanepost.krishnac7.com/demo/ - License: Apache-2.0 ## 1. Core Concept When a coding agent hits a usage cap or stops mid-task (crash, reboot, or tool switch), we should not have to feed a 2-3 MB transcript into the next model or manually write a full handoff and rebuild the entire session context in another IDE. `lanepost` keeps a small file-locked append-only JSONL journal outside your repository (`~/.cache/lanepost/journal` or `$LANEPOST_JOURNAL_DIR`). `lanepost journal resume-pack ` compiles a compact handoff separating: - **BRIEF:** the original ask - **FINISHED STEPS:** durable checkpoints with commit SHAs and proof tags - **IN FLIGHT:** the single uncertain step to verify before retrying - **NEXT:** the smallest next verification and continuation step Transient worker heartbeats (`journal heartbeat` / `journal peer-check`) are stored separately from durable checkpoints so a quiet heartbeat never overwrites or fakes completed work. ## 2. CLI Commands (`lanepost `) - `lanepost journal start|step|wait|note|done|fail|heartbeat|peer-check|resume-pack|import|list` - Append-only file-locked lane journals (`fcntl` on POSIX; `msvcrt` fallback on `main` for Windows). - `journal list --json` and `journal resume-pack --json` emit machine-readable JSON; `main` also adds `Transcript: ... -> Resume pack: ...` compression stats, `--brief-file -` / `--result-file -` stdin support, and `journal fail --error|--why`. - `journal import [--format auto|claude-code|codex|gemini] --lane ` reconstructs a journal and redacts secret patterns (`--format codex|gemini` on `main`; tagged `v0.1.0.dev0` wheel supports Claude Code JSONL only). - `lanepost console [--html FILE | --json]` - Aggregates all lanes ordered by priority: waiting on you, failed, stalled, waiting on a gate, running, done. - `--html` writes a self-contained dark/light-aware static HTML dashboard with zero external resources. - `lanepost wait --file F --pattern P [--timeout 270]` - Single blocking wait call replacing noisy polling loops. - Exit codes: `0` matched/completed, `1` failed, `75` timed out. - `lanepost ctx --op ""` - Builds a repository-state-cached context pack: branch, base/merge-base, files in scope, configured guide line ranges, open findings, and required commit trailers. - `lanepost fact get|put|run|explain|stats|prune` - Local content-addressed action cache keyed by command, argument vector, working directory, namespace, fact name, and declared `--input` dependencies. - Refuses secret-like values (exit `3`); aborts caching if declared inputs change mid-command. - `lanepost commit -m ... --paths ... [--apply]` - Commits only named repository paths after running the repository's own message checker or `commit-msg` hook. Dry-run by default; never amends, stashes, pushes, or accepts `.`. - `lanepost review-pack --unit ...` - Outputs only the diff range since the last reviewed commit and open findings. - `lanepost setup --ide ` (`main` only) - Prints copy-paste IDE handoff snippets. - `lanepost where` / `lanepost init` / `lanepost --version` (`--version` on `main` only) - Shows resolved tool paths, config, and cache directories, writes a starter `.lanepost.json`, or prints version. ## 3. Configuration (`.lanepost.json`) Every key is optional and every command runs without a config file: ```json { "project": "example", "base": "main", "guides": {"index": "docs/index.md", "heading": "Operation.*Guides", "dir": "docs"}, "operations": {"lane start": ["docs/lanes.md#1"], "commit": ["docs/commits.md"], "review": ["docs/review.md"]}, "findings": {"paths": ["docs/reviews"], "max": 12}, "trailers": ["Card: "], "commit": {"check": ["bash", "scripts/check_commit_msg.sh", "{msgfile}", "{paths}"], "required_trailers": ["Card"], "default_trailers": []}, "node": {"cmd": ["bash", "-c", "uptime; df -h / | tail -1"], "ttl": 120, "max_lines": 12}, "journal": {"dir": "~/.cache/lanepost/journal"}, "console": {"stale_min": 20, "owner_words": ["owner", "approval"]} } ``` ## 4. Security & Honest Limits - **Zero external dependencies:** Python 3.9+ standard library only (`dependencies = []`). - **Install (`main` vs `v0.1.0.dev0`):** `python3 -m pip install "git+https://github.com/krishnac7/lanepost.git"` installs current `main` (all importers, `setup --ide`, `fail --error`, compression stats, `--version`, Windows `msvcrt`); `v0.1.0.dev0` release wheel covers core commands + Claude Code import only. - **Platform:** macOS, Linux, and Windows (`msvcrt` fallback on `main`; WSL required for `v0.1.0.dev0`). - **Importers:** `journal import --format auto|claude-code|codex|gemini` (`main` only; `v0.1.0.dev0` parses Claude Code JSONL only); no Cursor DB importer yet. Nothing in `lanepost` launches or orchestrates agents directly. - **Fact cache vs prompt caching:** `fact run` is a local command stdout cache, not provider prompt caching; a local cache hit is not evidence of model-token savings. - **Secrets:** Heuristic secret refusal/redaction guards common key shapes, but journals and packs quote briefs and paths; keep `~/.cache/lanepost` private.