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.
- package/README.md +25 -21
- 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:
|
|
80
|
+
## Output savings: the rule trims the model's prose too
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
99
|
-
|
|
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
|
|
110
|
+
lakonai - saved 196.8k tok (46% smaller) across 1910 commands
|
|
107
111
|
|
|
108
|
-
today
|
|
109
|
-
this week
|
|
112
|
+
today 984 tok saved (17%)
|
|
113
|
+
this week 124.5k tok saved (57%)
|
|
110
114
|
|
|
111
|
-
top:
|
|
115
|
+
top: grep 55.3k · tail 55.1k · Read 34.3k · git 23.4k · cat 15.2k
|
|
112
116
|
|
|
113
|
-
output (terse rule): ~
|
|
117
|
+
output (terse rule): ~52% fewer tokens (1332 → 634, 4 prompts) [claude]
|
|
114
118
|
```
|
|
115
119
|
|
|
116
|
-
Input is measured & deterministic; output is
|
|
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.
|
|
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.
|
|
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"
|