lakonai 0.16.1 → 0.16.3

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 +25 -21
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -77,43 +77,47 @@ Two extras worth knowing:
77
77
 
78
78
  ---
79
79
 
80
- ## Output savings: improvements on top of improvements
80
+ ## Output savings: the rule trims the model's prose too
81
81
 
82
- How much does the rule cut the model's output? We measured the **same rule, same
83
- prompt** against two baselines:
82
+ The input side (filtered shell output, blocked reads, compressed catalogs) is
83
+ deterministic. But the terse rule also makes the **model itself** write less.
84
+ `lakonai gain` measures it by running the same prompts through your local AI CLI
85
+ twice - once rule-free, once with the terse rule as a system prompt - and
86
+ comparing output tokens.
84
87
 
85
- | The model lakonai is layered on… | …and the rule cuts | |
86
- | ------------------------------------------- | :----------------: | ---------------------------------------------- |
87
- | a **raw, verbose** model (Gemini default) | **~70%** | as strong as any terse-prompt tool |
88
- | **Claude Code** - already concise by design | **~10% more** | the hard case: trimming what's already trimmed |
88
+ On a rule-free Claude baseline, explain / how-do-I / write-a-function prompts run
89
+ **~52% leaner** with the rule (1332 → 634 tokens across 4 prompts).
89
90
 
90
- _361 → 107 tokens on the verbose baseline; 240 → 216 on Claude Code. Same rule -
91
- the only variable is how much fat the model started with._
91
+ Read that as a **best case on prose turns**, not your day-to-day average:
92
92
 
93
- Anyone can cut the obvious fat (~70% off a rambling API). lakonai's edge is the
94
- **hard** case: point it at an agent that's _already_ optimized for brevity and it
95
- **still finds another ~10%** - stacked on top of filtered shell output, blocked
96
- reads, and compressed catalogs. **Improvements on top of improvements.**
93
+ - it's a small, fixed corpus of chatty prompts - exactly where preamble balloons;
94
+ - model output varies run to run (the figure is a single weekly sample, not an average);
95
+ - agentic turns (code edits, tool calls, diffs) are mostly code, not prose, so the
96
+ rule trims far less there.
97
97
 
98
- > `lakonai gain` shows the honest **~10% marginal** number - what you actually save
99
- > on _your_ already-concise agent, not an inflated raw-baseline headline.
98
+ Your real workload lands somewhere between the deterministic **input** savings
99
+ (~46%) and this prose ceiling, pulled down by however much of your work is
100
+ code and tooling rather than explanation.
101
+
102
+ > `lakonai gain` shows both: the measured, deterministic input number and the
103
+ > estimated output number - labelled as an estimate, never inflated into a headline.
100
104
 
101
105
  ---
102
106
 
103
107
  ## See your savings
104
108
 
105
109
  ```
106
- lakonai - saved 161.8k tok (67% smaller) across 2104 commands
110
+ lakonai - saved 196.8k tok (46% smaller) across 1910 commands
107
111
 
108
- today 6.7k tok saved (68%)
109
- this week 36.4k tok saved (67%)
112
+ today 984 tok saved (17%)
113
+ this week 124.5k tok saved (57%)
110
114
 
111
- top: git 124.3k · ls 18.2k · grep 12.0k
115
+ top: grep 55.3k · tail 55.1k · Read 34.3k · git 23.4k · cat 15.2k
112
116
 
113
- output (terse rule): ~10% fewer tokens vs your agent's baseline
117
+ output (terse rule): ~52% fewer tokens (1332 → 634, 4 prompts) [claude]
114
118
  ```
115
119
 
116
- Input is measured & deterministic; output is measured by your local AI CLI (no key,
120
+ Input is measured & deterministic; output is estimated by your local AI CLI (no key,
117
121
  weekly, at a TTY only). Both sides, one number.
118
122
 
119
123
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakonai",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
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",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "author": "bargadev",
27
- "homepage": "https://github.com/bargadev/lakonai",
27
+ "homepage": "https://bargadev.github.io/lakonai-site",
28
28
  "repository": {
29
29
  "type": "git",
30
30
  "url": "git+https://github.com/bargadev/lakonai.git"