Skip to content

lossless v0.1.41

Choose a tag to compare

@github-actions github-actions released this 12 Oct 16:48
· 31 commits to main since this release

0.1.41 — 2026-10-12

  • omp (oh-my-pi) is a supported harness. lossless setup now writes omp's pieces too: ~/.omp/agent/extensions/lossless.ts (catch-up on turn_end, session_before_compact, session_compact, session_shutdown), MCP in omp's native ~/.omp/agent/mcp.json, the skill in ~/.omp/agent/skills/lossless/SKILL.md, and the always-on rule in ~/.omp/agent/RULES.md. RULES.md is omp's always-apply rule file; its AGENTS.md is deliberately left alone because that is the single user context file omp keeps, so a lossless block there would shadow the user's other global instructions (~/.claude/CLAUDE.md included). lossless doctor checks all four, and ~/.omp relocations are honored (OMP_HOME, PI_CONFIG_DIR, PI_CODING_AGENT_DIR). New lossless hook-omp.
  • omp sessions read like Pi's tape, with omp's own shapes. The file is ~/.omp/agent/sessions/<bucket>/<timestamp>_<uuid>.jsonl; the bucket encodes the canonicalized cwd (-<home-relative> under home, -tmp-<temp-relative> under the temp root, else --<absolute>--) and is not reversible, so a session id handed over alone is looked for under every bucket. Written files open with a fixed-width 256-byte type:"title" slot before the session header, which is where the cwd peek reads. Subagent transcripts (<ts>_<id>/<AgentName>.jsonl, beside the tape) are skipped, like Claude's agent-*.jsonl dumps.
  • omp's bookkeeping lines are not memory, and neither is an inlined @file mention. The new entry types (title, title_change, model_usage, service_tier_change, reset_boundary, ttsr_injection, credential_pin, session_init, mode_change) are skipped and compaction still marks a compact. bashExecution and pythonExecution count as tool output, and a fileMention — the inlined contents of an @file mention, which used to be read as something the user typed — is dropped; that role exists in Pi's tape too, so Pi sessions get the same fix.
  • omp has no session-id environment variable, so the extension stamps the id. omp mounts MCP servers as xd:// device paths, so ask / remember / get_record arrive as a write to xd://mcp__lossless_ask with a JSON content string; the extension rewrites that JSON with the harness's own session id (the id from ctx.sessionManager.getSessionId() wins over anything the model sent), and a direct mcp__lossless_* tool name is stamped as well. The session_id description on all three tools and the installed skill now name omp.
  • A remember from any harness kept its session id again. lossless mcp reaches the daemon over HTTP, and the remember request dropped session_id (and harness) on the way, so every remember that a harness had stamped was booked to the session "manual" instead of the one it came from. Ask and get_record were unaffected. Found by running the omp adapter end to end.
  • A catch-up hook is no longer in its harness's process group. The Pi and omp extensions run hook-pi / hook-omp in the background so a turn never waits on it, which also meant a harness that exits right after turn_end or session_shutdown could take the child with it before it had read its payload. The child is now detached, so the copy finishes either way; session_before_compact still waits synchronously. (Five print-mode omp runs landed the tape before and after the change, so this is hardening against a timing window rather than a reproduced loss.)

Install

curl -fsSL https://github.com/jbgh/lossless/releases/latest/download/install.sh | sh
lossless setup

Already installed: lossless update