[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D69EX86GETFDFKG0VY984B":3,"skill-same:01M7D69EX86GETFDFKG0VY984B":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7D69EX86GETFDFKG0VY984B","opencode-lossless",null,"Use when an OpenCode v2 session has opencode-lossless installed: read compacted history with lcm_grep, lcm_describe, lcm_expand, or lcm_expand_query; run \u002Flossless-status, \u002Flossless-report, \u002Flossless-pass, \u002Flossless-heal, \u002Flossless-backup, \u002Flossless-export, \u002Flossless-import, \u002Flossless-diagnose, \u002Flossless-migrate, \u002Flossless-gc, or \u002Flossless-dump; or tune the swap point.","stainless-code\u002Flossless","stainless-code","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F188862219?v=4","01M7826VYMCF2NTQWQZRWQ454T","STAINLESS CODE","01M7D663576JS718B5NKJTEXHZ",4,"MIT","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flossless\u002Fblob\u002Fmain\u002Fpackages\u002Fopencode\u002Fskills\u002Fopencode-lossless\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: opencode-lossless\ndescription: \"Use when an OpenCode v2 session has opencode-lossless installed: read compacted history with lcm_grep, lcm_describe, lcm_expand, or lcm_expand_query; run \u002Flossless-status, \u002Flossless-report, \u002Flossless-pass, \u002Flossless-heal, \u002Flossless-backup, \u002Flossless-export, \u002Flossless-import, \u002Flossless-diagnose, \u002Flossless-migrate, \u002Flossless-gc, or \u002Flossless-dump; or tune the swap point.\"\nlicense: MIT\nmetadata:\n  type: composition\n  library: \"opencode-lossless\"\n  library_version: \"0.1.3\"\nrequires:\n  - lossless\nsources:\n  - stainless-code\u002Flossless:packages\u002Fopencode\u002Fsrc\n---\n\n# opencode-lossless\n\nPassive mirroring starts with no configuration. The adapter stores every prompt, assistant reply, and tool exchange in a per-session SQLite sidecar. Past the swap point the DAG projection replaces aged history, and on host compaction the adapter hands over the frontier as the checkpoint instead of a summary.\n\n## Install\n\n```sh\nopencode plugin add opencode-lossless\n```\n\nEquivalent `opencode.json` entry:\n\n```json\n{ \"plugins\": [{ \"package\": \"opencode-lossless\" }] }\n```\n\nTo keep sidecars inside the project, set `sidecarDir` to `\".\u002F.lossless\"`.\n\n## Commands\n\n- `\u002Flossless-status`, message and compaction summary counts per live sidecar.\n- `\u002Flossless-report`, this session's metrics: projection, checkpoint, pass, recall, reader.\n- `\u002Flossless-pass`, run one DAG pass over the aged span now, without waiting for the swap.\n- `\u002Flossless-heal`, dry-run repair of tainted summaries. `--apply` spends model calls.\n- `\u002Flossless-backup`, copy this session's sidecar beside it.\n- `\u002Flossless-export`, write the verbatim transcript and summaries as JSONL (mode 0600).\n- `\u002Flossless-import`, restore rows from an export.\n- `\u002Flossless-diagnose`, redacted, pasteable diagnostics block. `--save` writes it at mode 0600.\n- `\u002Flossless-migrate`, upgrade older-schema sidecars in place (dry-run by default).\n- `\u002Flossless-gc`, list old sidecars, or export and delete them (never the current session).\n- `\u002Flossless-dump`, read-only dump of the session sidecar. `--include-removed` keeps removed-branch rows, `--save` writes the output to a file at mode 0600.\n\n## Recall tools\n\n- `lcm_grep` searches full text over this session, and `scope` reaches past sessions. `role` keeps only rows stored with that role, `date_start` and `date_end` bound rows by timestamp, and `tool_name` keeps only tool-result rows for that tool.\n- `lcm_describe` inspects one summary (kind, costs, children) without expanding it.\n- `lcm_expand` reads the verbatim originals a summary covers, and `anchor` centers the listing on one entry.\n- `lcm_expand_query` runs a bounded child session that reads and answers, so originals never enter the parent context.\n\n## Config essentials\n\n```json\n{ \"enabled\": true, \"sidecarDir\": \".\u002F.lossless\", \"assembly\": true }\n```\n\nThe example stores sidecars in the project. Without `sidecarDir`, the plugin uses the global auto-detected path, which holds sessions from every project. The config reference lists the exact paths at https:\u002F\u002Fstainless-code.com\u002Flossless\u002Freference\u002Fopencode\u002Fconfig\n\n- `sidecarDir` holds one SQLite file per session (0700 dir, 0600 files). Delete one to forget that session. After upgrading a project that used `.\u002F.lossless`, keep `sidecarDir` set to `\".\u002F.lossless\"` to keep that history: `\u002Flossless-migrate` works in place in the configured directory only (dry run by default, moves nothing). To carry history elsewhere, `\u002Flossless-export` each session under the old config and `\u002Flossless-import` into an empty store under the new one, or stop the server first and copy the `.sqlite`, `-wal`, and `-shm` files across and then migrate.\n- `assembly: true` (default) owns the context boundary. Projection swaps aged history and compaction stores the DAG frontier.\n- The config reference documents every other key and its default: swap thresholds, summarizer chain and budgets, heal window, and reader timeout. See https:\u002F\u002Fstainless-code.com\u002Flossless\u002Freference\u002Fopencode\u002Fconfig\n\n## Verify\n\nFrom a checkout of this repo (these scripts only exist there, not in a consumer project):\n\n```sh\nbun run opencode:check   # read-only: host version, config, bundle hash, sidecar counts\nbun run opencode:smoke   # one real model call, asserts the verbatim mirror\nbun run opencode:compact # compaction gate, makes real model calls\n```\n\n## Common mistakes\n\n- **`assembly: false` drops `\u002Flossless-pass` and `lcm_expand_query`.** Keep the default `true` unless the host must own compaction. With `false`, compaction falls back to the host.\n- **`scope` equivalence.** `scope: \"session\"` (default) reads this session only. Pass `scope: \"sessions\"` or `\"all_sessions\"` to reach past sessions.\n- **Reader is session-scoped.** `lcm_expand_query` returns findings only through its child session, never the raw transcript. Ask a question it can answer from the sources, not for a dump.\n- **Forgetting is file deletion.** Remove that session's sidecar file. There is no delete tool.\n- **Expecting host compaction to summarize.** With assembly on, the checkpoint is the DAG frontier, not a prose summary. Read it with `lcm_describe`, not by asking the host.\n","# opencode-lossless\n\nPassive mirroring starts with no configuration. The adapter stores every prompt, assistant reply, and tool exchange in a per-session SQLite sidecar. Past the swap point the DAG projection replaces aged history, and on host compaction the adapter hands over the frontier as the checkpoint instead of a summary.\n\n## Install\n\n```sh\nopencode plugin add opencode-lossless\n```\n\nEquivalent `opencode.json` entry:\n\n```json\n{ \"plugins\": [{ \"package\": \"opencode-lossless\" }] }\n```\n\nTo keep sidecars inside the project, set `sidecarDir` to `\".\u002F.lossless\"`.\n\n## Commands\n\n- `\u002Flossless-status`, message and compaction summary counts per live sidecar.\n- `\u002Flossless-report`, this session's metrics: projection, checkpoint, pass, recall, reader.\n- `\u002Flossless-pass`, run one DAG pass over the aged span now, without waiting for the swap.\n- `\u002Flossless-heal`, dry-run repair of tainted summaries. `--apply` spends model calls.\n- `\u002Flossless-backup`, copy this session's sidecar beside it.\n- `\u002Flossless-export`, write the verbatim transcript and summaries as JSONL (mode 0600).\n- `\u002Flossless-import`, restore rows from an export.\n- `\u002Flossless-diagnose`, redacted, pasteable diagnostics block. `--save` writes it at mode 0600.\n- `\u002Flossless-migrate`, upgrade older-schema sidecars in place (dry-run by default).\n- `\u002Flossless-gc`, list old sidecars, or export and delete them (never the current session).\n- `\u002Flossless-dump`, read-only dump of the session sidecar. `--include-removed` keeps removed-branch rows, `--save` writes the output to a file at mode 0600.\n\n## Recall tools\n\n- `lcm_grep` searches full text over this session, and `scope` reaches past sessions. `role` keeps only rows stored with that role, `date_start` and `date_end` bound rows by timestamp, and `tool_name` keeps only tool-result rows for that tool.\n- `lcm_describe` inspects one summary (kind, costs, children) without expanding it.\n- `lcm_expand` reads the verbatim originals a summary covers, and `anchor` centers the listing on one entry.\n- `lcm_expand_query` runs a bounded child session that reads and answers, so originals never enter the parent context.\n\n## Config essentials\n\n```json\n{ \"enabled\": true, \"sidecarDir\": \".\u002F.lossless\", \"assembly\": true }\n```\n\nThe example stores sidecars in the project. Without `sidecarDir`, the plugin uses the global auto-detected path, which holds sessions from every project. The config reference lists the exact paths at https:\u002F\u002Fstainless-code.com\u002Flossless\u002Freference\u002Fopencode\u002Fconfig\n\n- `sidecarDir` holds one SQLite file per session (0700 dir, 0600 files). Delete one to forget that session. After upgrading a project that used `.\u002F.lossless`, keep `sidecarDir` set to `\".\u002F.lossless\"` to keep that history: `\u002Flossless-migrate` works in place in the configured directory only (dry run by default, moves nothing). To carry history elsewhere, `\u002Flossless-export` each session under the old config and `\u002Flossless-import` into an empty store under the new one, or stop the server first and copy the `.sqlite`, `-wal`, and `-shm` files across and then migrate.\n- `assembly: true` (default) owns the context boundary. Projection swaps aged history and compaction stores the DAG frontier.\n- The config reference documents every other key and its default: swap thresholds, summarizer chain and budgets, heal window, and reader timeout. See https:\u002F\u002Fstainless-code.com\u002Flossless\u002Freference\u002Fopencode\u002Fconfig\n\n## Verify\n\nFrom a checkout of this repo (these scripts only exist there, not in a consumer project):\n\n```sh\nbun run opencode:check   # read-only: host version, config, bundle hash, sidecar counts\nbun run opencode:smoke   # one real model call, asserts the verbatim mirror\nbun run opencode:compact # compaction gate, makes real model calls\n```\n\n## Common mistakes\n\n- **`assembly: false` drops `\u002Flossless-pass` and `lcm_expand_query`.** Keep the default `true` unless the host must own compaction. With `false`, compaction falls back to the host.\n- **`scope` equivalence.** `scope: \"session\"` (default) reads this session only. Pass `scope: \"sessions\"` or `\"all_sessions\"` to reach past sessions.\n- **Reader is session-scoped.** `lcm_expand_query` returns findings only through its child session, never the raw transcript. Ask a question it can answer from the sources, not for a dump.\n- **Forgetting is file deletion.** Remove that session's sidecar file. There is no delete tool.\n- **Expecting host compaction to summarize.** With assembly on, the checkpoint is the DAG frontier, not a prose summary. Read it with `lcm_describe`, not by asking the host.\n",{"name":5,"license":15,"sources":24,"metadata":26,"requires":29,"description":7},[25],"stainless-code\u002Flossless:packages\u002Fopencode\u002Fsrc",{"type":27,"library":5,"library_version":28},"composition","0.1.3",[30],"lossless","main","9dedf1fabe7ea6b6eca1d6fa93a2dde3a5f37061","packages\u002Fopencode\u002Fskills\u002Fopencode-lossless",0,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flossless","https:\u002F\u002Fstainless-code.com\u002Flossless","https:\u002F\u002Fgithub.com\u002Fstainless-code","https:\u002F\u002Fstainless-code.com\u002F","Open-source tooling for JS\u002FTS and AI agents.","2026-11-07 02:31:20",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add stainless-code\u002Flossless --skill opencode-lossless",{"tool":47,"command":48},"bunx","bunx skills add stainless-code\u002Flossless --skill opencode-lossless",{"tool":50,"command":51},"pnpm","pnpm dlx skills add stainless-code\u002Flossless --skill opencode-lossless","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flossless\u002Fblob\u002Fmain\u002Fpackages\u002Fopencode\u002Fskills\u002Fopencode-lossless\u002FSKILL.md",true,[],[56,63],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7D69NGNTGBGWSQ3CZ4D7R1C","pi-lossless","Use when a Pi session has pi-lossless installed: search compacted history with lcm_grep, lcm_describe, or lcm_expand_query; run \u002Flcm status, settings, backup, export, report, doctor, gc, migrate, heal, dump, or diagnose; or tune compaction thresholds.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flossless\u002Fblob\u002Fmain\u002Fpackages\u002Fpi\u002Fskills\u002Fpi-lossless\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7D69B0ANKBGMBDPY0EQP3FG","lossless-core","Use when wiring a host to lossless-core or working on the engine itself: implement ModelHost or Reader, run a compaction, retrieval, or heal pass, or read the store directly with LcmStore.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flossless\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fskills\u002Flossless-core\u002FSKILL.md",[],[]]