Repository navigation
lossless v0.1.41
0.1.41 — 2026-10-12
- omp (oh-my-pi) is a supported harness.
lossless setupnow writes omp's pieces too:~/.omp/agent/extensions/lossless.ts(catch-up onturn_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.mdis omp's always-apply rule file; itsAGENTS.mdis 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.mdincluded).lossless doctorchecks all four, and~/.omprelocations are honored (OMP_HOME,PI_CONFIG_DIR,PI_CODING_AGENT_DIR). Newlossless 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-bytetype:"title"slot before thesessionheader, which is where the cwd peek reads. Subagent transcripts (<ts>_<id>/<AgentName>.jsonl, beside the tape) are skipped, like Claude'sagent-*.jsonldumps. - omp's bookkeeping lines are not memory, and neither is an inlined
@filemention. The new entry types (title,title_change,model_usage,service_tier_change,reset_boundary,ttsr_injection,credential_pin,session_init,mode_change) are skipped andcompactionstill marks a compact.bashExecutionandpythonExecutioncount as tool output, and afileMention— the inlined contents of an@filemention, 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, soask/remember/get_recordarrive as awritetoxd://mcp__lossless_askwith a JSONcontentstring; the extension rewrites that JSON with the harness's own session id (the id fromctx.sessionManager.getSessionId()wins over anything the model sent), and a directmcp__lossless_*tool name is stamped as well. Thesession_iddescription on all three tools and the installed skill now name omp. - A
rememberfrom any harness kept its session id again.lossless mcpreaches the daemon over HTTP, and the remember request droppedsession_id(andharness) 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-ompin the background so a turn never waits on it, which also meant a harness that exits right afterturn_endorsession_shutdowncould take the child with it before it had read its payload. The child is now detached, so the copy finishes either way;session_before_compactstill 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