lakonai 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,10 +21,10 @@
21
21
  </p>
22
22
 
23
23
  <p align="center">
24
- One command. <strong>Three fronts</strong>: terse model output · filtered shell output · blocked junk reads.<br/>
25
- Filters <strong>30 commands</strong> — git, ls, grep, find, <strong>test runners, lint/build, docker/kubectl/aws</strong> —<br/>
26
- and <strong>learns to filter new ones automatically the more you use it</strong>.<br/>
27
- Plus session-level token tracking and one-day update notifications.<br/>
24
+ One install. <strong>Four fronts</strong> of token waste, closed at once:<br/>
25
+ <strong>what the model writes</strong> · <strong>what your shell dumps in</strong> · <strong>what files it reads</strong> · <strong>the catalogs &amp; memory loaded every session</strong>.<br/>
26
+ Filters <strong>30 commands</strong>, guards <code>Read</code>/<code>Grep</code>, compresses your <strong>MCP tool catalogs automatically</strong>,<br/>
27
+ and shrinks your <strong>CLAUDE.md</strong> with a local AI CLI — <strong>no API key</strong>. Learns new filters the more you use it.<br/>
28
28
  Works across <strong>Claude Code, Codex, Cursor, Windsurf, Cline, Gemini CLI</strong>.
29
29
  </p>
30
30
 
@@ -65,7 +65,7 @@ Your AI coding agent does. It opens with *"Sure! I'd be happy to help…"*, repe
65
65
 
66
66
  ---
67
67
 
68
- ## Three fronts. One install.
68
+ ## Four fronts. One install.
69
69
 
70
70
  | Front | Wasted tokens look like… | lakonai fixes it by… |
71
71
  |--------------------------------|-------------------------------------------------------|-------------------------------------------------------------------------------------|
@@ -73,9 +73,14 @@ Your AI coding agent does. It opens with *"Sure! I'd be happy to help…"*, repe
73
73
  | **Input** (your shell tools) | `git log` dumping 1.8 k tokens of author metadata | Wrapping **30 commands** — `git`/`ls`/`grep`/`cat`/`find`, **test runners** (jest/pytest/go/cargo), **lint/build** (tsc/eslint/ruff/make), **docker/kubectl/aws** — and compressing before context. |
74
74
  | **Reads** (file ingestion) | Agent runs `Read` on `pnpm-lock.yaml` → 80 k of nothing | A `PreToolUse` hook on `Read` blocks lockfiles & `node_modules`, caps files >800 lines. |
75
75
  | **Search** (Grep tool) | `Grep` returns 800 matches and you re-read every one | A `PreToolUse` hook on `Grep` auto-caps `head_limit` at 30 with a one-shot hint. |
76
+ | **Context** (every session) | MCP tool catalogs + your `CLAUDE.md`, re-paid every single session | **Auto-compressing MCP catalogs** on install; **opt-in `compress-memory`** for your memory files. |
76
77
  | **Analysis** (the rule) | `Read` 5k of logs to count errors in your head | "Think in code" — write `node -e '…filter…count'`, consume only the answer. |
77
78
 
78
- Other tools stop at one front. lakonai does all three transparently — your agent doesn't have to remember anything.
79
+ Most tools stop at one front. lakonai works all four transparently — your agent doesn't have to remember anything.
80
+
81
+ > **Two that are easy to miss:**
82
+ > - **MCP catalogs, compressed automatically.** Connect MCP servers and their tool/prompt/resource *descriptions* load into context every session. On install, lakonai wraps each stdio server and shrinks those descriptions offline — no manual config (caveman's equivalent is hand-wired). Reversible; opt-out `LAKON_NO_MCP=1`.
83
+ > - **Your `CLAUDE.md`, compressed on command — no API key.** `lakonai compress-memory CLAUDE.md` rewrites your memory file using **a local AI CLI you already have** (`claude`/`gemini`/`codex`/`cursor-agent`). Backs up first, validates every code span / path / URL survives byte-for-byte. *(new in 0.12.0)*
79
84
 
80
85
  > **★ It gets better the more you use it.** lakonai watches your session history and, when an unfiltered command keeps showing up with heavy output, it **turns on a safe filter for that command automatically** — no config, no manual rules. Similar tools only *report* what you're missing; lakonai just fixes it. (Near-lossless: it collapses repetition and truncates with a marker, never silently dropping a line that could be an error. Opt out with `LAKON_NO_LEARN=1`.)
81
86
 
@@ -374,7 +379,7 @@ npm run test:coverage:check # enforce the coverage threshold
374
379
  node bin/lakonai.js --help
375
380
  ```
376
381
 
377
- Suite: **261 tests**. Coverage gate: **100% lines / 100% branches / 100% functions / 100% statements**. Zero runtime dependencies. Node ≥ 18.
382
+ Zero runtime dependencies. Node ≥ 18.
378
383
 
379
384
  ---
380
385
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakonai",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "lakonai — save AI context tokens. Filters & compresses CLI output (git, ls, grep, find, test runners, lint/build, docker/kubectl/aws) before it reaches Claude Code, Codex, Cursor, Windsurf, Cline or Gemini — and learns to filter new commands automatically the more you use it.",
5
5
  "keywords": [
6
6
  "claude",