Claude Skill
win4r/lossless-claw-enhanced
lossless-claw-enhanced is a fork of lossless-claw with CJK-aware token estimation, improving accuracy for Chinese, Japanese, and Korean text in Claude Skill and OpenClaw workflows.
Overview
Repository
Install this Skill
git clone https://github.com/win4r/lossless-claw-enhanced.gitRegistry
git clone https://github.com/win4r/lossless-claw-enhanced.gitnpm installnpx vitest run --dir testnpx vitest run test/estimate-tokens.test.ts
Summary
A fork of Martian-Engineering/lossless-claw that adds CJK-aware token estimation for improved accuracy with Chinese, Japanese, and Korean text in Claude Skill workflows.
基于 Martian-Engineering/lossless-claw 的分支,增加了对中日韩文字(CJK)的令牌估算支持
Key features
- CJK-aware token estimation for accurate text processing
- Fork of lossless-claw with enhanced language support
- Compatible with OpenClaw plugins and skills
- TypeScript-based implementation for reliability
Use cases
- Improving Claude Skill accuracy with CJK text
- Token estimation for multilingual AI workflows
- Enhancing OpenClaw plugin performance with Asian languages
README excerpt
# 🦞lossless-claw-enhanced > [!WARNING] > **DEPRECATED — please use upstream instead** > > The two original differentiators of this fork — **CJK-aware token estimation** and **CJK trigram FTS search** — have both been merged into upstream [`Martian-Engineering/lossless-claw`](https://github.com/Martian-Engineering/lossless-claw) ([PR #344](https://github.com/Martian-Engineering/lossless-claw/pull/344), [PR #219](https://github.com/Martian-Engineering/lossless-claw/pull/219)). As of upstream `v0.11.x` there is no functional gap between this fork and upstream. > > This fork is at `0.5.3` and last adapted to OpenClaw `2026.4.14` — about 6 minor versions behind upstream. It will not be updated further. > > - **New users**: use [`Martian-Engineering/lossless-claw`](https://github.com/Martian-Engineering/lossless-claw) directly. It builds clean against current OpenClaw and includes all the CJK fixes this fork pioneered. > - **Existing users on OpenClaw 2026.5.x+**: switch to upstream. This fork no longer compiles against current OpenClaw (see [#32](https://github.com/win4r/lossless-claw-enhanced/issues/32)). Lossless Context Management plugin for [OpenClaw](https://github.com/openclaw/openclaw), based on the [LCM paper](https://papers.voltropy.com/LCM) from [Voltropy](https://x.com/Voltropy). Replaces OpenClaw's built-in sliding-window compaction with a DAG-based summarization system that preserves every message while keeping active context within model token limits. 中文配置文档: [docs/configuration.zh-CN.md](docs/configuration.zh-CN.md) ## Video Tutorial > Full walkthrough: installation, configuration, and hybrid retrieval internals. [](https://youtu.be/m21PNaIW3N4) **https