@izhimu/pi-caveman 0.4.0 → 0.5.0
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/CHANGELOG.md +84 -68
- package/README.md +131 -133
- package/extensions/caveman.ts +741 -750
- package/package.json +57 -57
- package/skills/caveman/README.md +68 -68
- package/skills/caveman/SKILL.md +89 -89
- package/skills/megacave/README.md +11 -11
- package/skills/megacave/SKILL.md +65 -65
- package/skills/ultracave/README.md +13 -13
- package/skills/ultracave/SKILL.md +63 -63
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@izhimu/pi-caveman",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Caveman mode for pi and oh-my-pi — ultra-compressed communication, 65% output token savings",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"pi-package",
|
|
8
|
-
"omp-package",
|
|
9
|
-
"caveman",
|
|
10
|
-
"token-savings",
|
|
11
|
-
"compression"
|
|
12
|
-
],
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/izhimu/pi-caveman.git"
|
|
16
|
-
},
|
|
17
|
-
"author": "izhimu",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"@earendil-works/pi-coding-agent": "*",
|
|
21
|
-
"@oh-my-pi/pi-coding-agent": "*"
|
|
22
|
-
},
|
|
23
|
-
"peerDependenciesMeta": {
|
|
24
|
-
"@earendil-works/pi-coding-agent": {
|
|
25
|
-
"optional": true
|
|
26
|
-
},
|
|
27
|
-
"@oh-my-pi/pi-coding-agent": {
|
|
28
|
-
"optional": true
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"test": "node --test --test-force-exit tests/*.test.mjs"
|
|
33
|
-
},
|
|
34
|
-
"pi": {
|
|
35
|
-
"extensions": [
|
|
36
|
-
"./extensions"
|
|
37
|
-
],
|
|
38
|
-
"skills": [
|
|
39
|
-
"./skills"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"omp": {
|
|
43
|
-
"extensions": [
|
|
44
|
-
"./extensions"
|
|
45
|
-
],
|
|
46
|
-
"skills": [
|
|
47
|
-
"./skills"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"files": [
|
|
51
|
-
"extensions/",
|
|
52
|
-
"skills/",
|
|
53
|
-
"README.md",
|
|
54
|
-
"CHANGELOG.md",
|
|
55
|
-
"LICENSE"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@izhimu/pi-caveman",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Caveman mode for pi and oh-my-pi — ultra-compressed communication, 65% output token savings",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pi-package",
|
|
8
|
+
"omp-package",
|
|
9
|
+
"caveman",
|
|
10
|
+
"token-savings",
|
|
11
|
+
"compression"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/izhimu/pi-caveman.git"
|
|
16
|
+
},
|
|
17
|
+
"author": "izhimu",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
21
|
+
"@oh-my-pi/pi-coding-agent": "*"
|
|
22
|
+
},
|
|
23
|
+
"peerDependenciesMeta": {
|
|
24
|
+
"@earendil-works/pi-coding-agent": {
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
"@oh-my-pi/pi-coding-agent": {
|
|
28
|
+
"optional": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"test": "node --test --test-force-exit tests/*.test.mjs"
|
|
33
|
+
},
|
|
34
|
+
"pi": {
|
|
35
|
+
"extensions": [
|
|
36
|
+
"./extensions"
|
|
37
|
+
],
|
|
38
|
+
"skills": [
|
|
39
|
+
"./skills"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"omp": {
|
|
43
|
+
"extensions": [
|
|
44
|
+
"./extensions"
|
|
45
|
+
],
|
|
46
|
+
"skills": [
|
|
47
|
+
"./skills"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"extensions/",
|
|
52
|
+
"skills/",
|
|
53
|
+
"README.md",
|
|
54
|
+
"CHANGELOG.md",
|
|
55
|
+
"LICENSE"
|
|
56
|
+
]
|
|
57
|
+
}
|
package/skills/caveman/README.md
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
# caveman
|
|
2
|
-
|
|
3
|
-
Talk like smart caveman. Same brain, fewer tokens.
|
|
4
|
-
|
|
5
|
-
## What it does
|
|
6
|
-
|
|
7
|
-
Makes the model answer first and cut the ceremony: no greeting, hedging,
|
|
8
|
-
filler, recap, or closer. Articles drop when the sentence still reads in one
|
|
9
|
-
pass. Code, commands, paths, numbers, and exact error strings never change.
|
|
10
|
-
Result depends on model and workload. Measured once on the 3.1.0 skill text (`evals/snapshots/results.json`: claude-opus-5-5, ten prompts, single run, output length only, tiktoken o200k approximation): caveman 3% fewer output tokens at the median than a plain `Answer concisely.` control, inside the noise; ultracave 35%; megacave 9%. No quality-equivalence claim is published. Mode persists until changed or stopped.
|
|
11
|
-
|
|
12
|
-
Caveman is one of three sibling skills:
|
|
13
|
-
|
|
14
|
-
| Skill | Command | What change |
|
|
15
|
-
|-------|---------|-------------|
|
|
16
|
-
| `caveman` | `/caveman` | The voice. Default. Answer first, fluff gone, every fact kept. |
|
|
17
|
-
| `ultracave` | `/ultracave` | Grammar stripped. Fragments, one word when one word is enough, each fact once. |
|
|
18
|
-
| `megacave` | `/megacave` | Classical Chinese (文言文). Far fewer characters, technical terms verbatim. |
|
|
19
|
-
|
|
20
|
-
`/caveman ultra` and `/caveman wenyan` still work as aliases.
|
|
21
|
-
|
|
22
|
-
Auto-clarity: every skill drops to normal prose for security warnings,
|
|
23
|
-
irreversible-action confirmations, step sequences a fragment could scramble,
|
|
24
|
-
and a user who repeats a question. Resumes after the clear part.
|
|
25
|
-
|
|
26
|
-
## How to invoke
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
/caveman # the voice (default)
|
|
30
|
-
/caveman status # show current mode without changing it
|
|
31
|
-
/ultracave # grammar stripped
|
|
32
|
-
/megacave # classical Chinese
|
|
33
|
-
stop caveman # back to normal prose
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Claude Code and the standalone OpenCode plugin read stored mode state. Other
|
|
37
|
-
hosts answer from the conversation and mark it `(not tracked by this host)`.
|
|
38
|
-
|
|
39
|
-
Want Claude Code sessions to start with normal prose? Set
|
|
40
|
-
`{"defaultMode":"manual"}` in `.caveman.json` for one project or
|
|
41
|
-
`~/.config/caveman/config.json` for your user. You can also set
|
|
42
|
-
`CAVEMAN_DEFAULT_MODE=manual`. Then `/caveman` activates the voice and
|
|
43
|
-
`/ultracave` selects ultracave. Stop persists across compaction and resume; a
|
|
44
|
-
fresh session starts off again. This startup policy is Claude Code-only:
|
|
45
|
-
OpenCode keeps its caveman default because the installer also supplies static
|
|
46
|
-
activation rules.
|
|
47
|
-
|
|
48
|
-
## Example output
|
|
49
|
-
|
|
50
|
-
Question: "Why does my React component re-render?"
|
|
51
|
-
|
|
52
|
-
Normal prose:
|
|
53
|
-
> Your component re-renders because you create a new object reference each render. Wrapping it in `useMemo` will fix the issue.
|
|
54
|
-
|
|
55
|
-
caveman:
|
|
56
|
-
> New object ref each render, so React re-renders. Wrap the prop in `useMemo`.
|
|
57
|
-
|
|
58
|
-
ultracave:
|
|
59
|
-
> Inline object prop, new ref, re-render. `useMemo`.
|
|
60
|
-
|
|
61
|
-
megacave:
|
|
62
|
-
> 每繪新生對象參照,故重繪;以 `useMemo` 包之則免。
|
|
63
|
-
|
|
64
|
-
## See also
|
|
65
|
-
|
|
66
|
-
- [`SKILL.md`](./SKILL.md): full LLM-facing instructions
|
|
67
|
-
- [`../ultracave/`](../ultracave/) and [`../megacave/`](../megacave/): the sibling skills
|
|
68
|
-
- [Caveman README](../../README.md): repo overview, install, benchmarks
|
|
1
|
+
# caveman
|
|
2
|
+
|
|
3
|
+
Talk like smart caveman. Same brain, fewer tokens.
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Makes the model answer first and cut the ceremony: no greeting, hedging,
|
|
8
|
+
filler, recap, or closer. Articles drop when the sentence still reads in one
|
|
9
|
+
pass. Code, commands, paths, numbers, and exact error strings never change.
|
|
10
|
+
Result depends on model and workload. Measured once on the 3.1.0 skill text (`evals/snapshots/results.json`: claude-opus-5-5, ten prompts, single run, output length only, tiktoken o200k approximation): caveman 3% fewer output tokens at the median than a plain `Answer concisely.` control, inside the noise; ultracave 35%; megacave 9%. No quality-equivalence claim is published. Mode persists until changed or stopped.
|
|
11
|
+
|
|
12
|
+
Caveman is one of three sibling skills:
|
|
13
|
+
|
|
14
|
+
| Skill | Command | What change |
|
|
15
|
+
|-------|---------|-------------|
|
|
16
|
+
| `caveman` | `/caveman` | The voice. Default. Answer first, fluff gone, every fact kept. |
|
|
17
|
+
| `ultracave` | `/ultracave` | Grammar stripped. Fragments, one word when one word is enough, each fact once. |
|
|
18
|
+
| `megacave` | `/megacave` | Classical Chinese (文言文). Far fewer characters, technical terms verbatim. |
|
|
19
|
+
|
|
20
|
+
`/caveman ultra` and `/caveman wenyan` still work as aliases.
|
|
21
|
+
|
|
22
|
+
Auto-clarity: every skill drops to normal prose for security warnings,
|
|
23
|
+
irreversible-action confirmations, step sequences a fragment could scramble,
|
|
24
|
+
and a user who repeats a question. Resumes after the clear part.
|
|
25
|
+
|
|
26
|
+
## How to invoke
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
/caveman # the voice (default)
|
|
30
|
+
/caveman status # show current mode without changing it
|
|
31
|
+
/ultracave # grammar stripped
|
|
32
|
+
/megacave # classical Chinese
|
|
33
|
+
stop caveman # back to normal prose
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Claude Code and the standalone OpenCode plugin read stored mode state. Other
|
|
37
|
+
hosts answer from the conversation and mark it `(not tracked by this host)`.
|
|
38
|
+
|
|
39
|
+
Want Claude Code sessions to start with normal prose? Set
|
|
40
|
+
`{"defaultMode":"manual"}` in `.caveman.json` for one project or
|
|
41
|
+
`~/.config/caveman/config.json` for your user. You can also set
|
|
42
|
+
`CAVEMAN_DEFAULT_MODE=manual`. Then `/caveman` activates the voice and
|
|
43
|
+
`/ultracave` selects ultracave. Stop persists across compaction and resume; a
|
|
44
|
+
fresh session starts off again. This startup policy is Claude Code-only:
|
|
45
|
+
OpenCode keeps its caveman default because the installer also supplies static
|
|
46
|
+
activation rules.
|
|
47
|
+
|
|
48
|
+
## Example output
|
|
49
|
+
|
|
50
|
+
Question: "Why does my React component re-render?"
|
|
51
|
+
|
|
52
|
+
Normal prose:
|
|
53
|
+
> Your component re-renders because you create a new object reference each render. Wrapping it in `useMemo` will fix the issue.
|
|
54
|
+
|
|
55
|
+
caveman:
|
|
56
|
+
> New object ref each render, so React re-renders. Wrap the prop in `useMemo`.
|
|
57
|
+
|
|
58
|
+
ultracave:
|
|
59
|
+
> Inline object prop, new ref, re-render. `useMemo`.
|
|
60
|
+
|
|
61
|
+
megacave:
|
|
62
|
+
> 每繪新生對象參照,故重繪;以 `useMemo` 包之則免。
|
|
63
|
+
|
|
64
|
+
## See also
|
|
65
|
+
|
|
66
|
+
- [`SKILL.md`](./SKILL.md): full LLM-facing instructions
|
|
67
|
+
- [`../ultracave/`](../ultracave/) and [`../megacave/`](../megacave/): the sibling skills
|
|
68
|
+
- [Caveman README](../../README.md): repo overview, install, benchmarks
|
package/skills/caveman/SKILL.md
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: caveman
|
|
3
|
-
description: >
|
|
4
|
-
Terse caveman voice: answer first, fluff gone, every technical fact kept.
|
|
5
|
-
Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less
|
|
6
|
-
tokens". Stays on until "stop caveman" or "normal mode".
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# caveman
|
|
10
|
-
|
|
11
|
-
Respond terse like smart caveman. All technical substance stay. Only fluff die.
|
|
12
|
-
|
|
13
|
-
Caveman is a voice, not broken grammar. Reader pays per token and reads in a terminal. Every word earns its place. Every fact survives.
|
|
14
|
-
|
|
15
|
-
## Persistence
|
|
16
|
-
|
|
17
|
-
Every response, whole session, until user says "stop caveman" or "normal mode". Unsure if still on? It is. Confirm the switch-off in one line.
|
|
18
|
-
|
|
19
|
-
`/caveman ultra` and `/caveman wenyan` are aliases: follow the `ultracave` or `megacave` skill instead of this one. `/caveman status` reports the mode and changes nothing. Relay the hook's `Caveman mode: <mode>` value when present. No hook value (host without hooks): report the mode you followed before this command, or `off` if caveman was turned off or never active, plus `(not tracked by this host)`. Example: `Caveman mode: caveman (not tracked by this host)`. Loading this skill to answer status is not activation. Never infer a mode from the configured default.
|
|
20
|
-
|
|
21
|
-
## Why
|
|
22
|
-
|
|
23
|
-
1. Every output token is billed and read. Filler costs twice.
|
|
24
|
-
2. Code, commands, paths, numbers, errors are the payload. One changed character breaks them.
|
|
25
|
-
3. Ceremony is expensive, grammar is cheap. "Sure, I'd be happy to help" is ten tokens. "the" is one.
|
|
26
|
-
4. A dropped negation costs more than every token saved. Clarity beats compression.
|
|
27
|
-
|
|
28
|
-
## Rules
|
|
29
|
-
|
|
30
|
-
### 1. Answer first
|
|
31
|
-
|
|
32
|
-
Answer, then reason, then next step. Pattern: `[thing] [action] [reason]. [next step].`
|
|
33
|
-
|
|
34
|
-
Bad: "Sure! I'd be happy to help. The issue you're experiencing is likely caused by..."
|
|
35
|
-
Good: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
|
|
36
|
-
|
|
37
|
-
### 2. Kill ceremony
|
|
38
|
-
|
|
39
|
-
No greeting, hedging, pleasantries, recap, or closer. No "Sure!", "Let me", "I'll now", "Hope this helps". No just/really/basically/actually/simply.
|
|
40
|
-
|
|
41
|
-
### 3. Short word
|
|
42
|
-
|
|
43
|
-
"fix" not "implement a solution for". Standard acronyms fine (DB, API, HTTP). Invented abbreviations not (cfg, impl, fn): same tokens, harder read. No arrows.
|
|
44
|
-
|
|
45
|
-
### 4. Articles optional, meaning never
|
|
46
|
-
|
|
47
|
-
Drop a/an/the when the sentence still reads in one pass. Fragments fine. Never drop not/never/no/only/except. Numbers and units exact.
|
|
48
|
-
|
|
49
|
-
Bad: "Migration drop column backup first."
|
|
50
|
-
Good: "Back up first. Then run migration: it drops the column."
|
|
51
|
-
|
|
52
|
-
### 5. One idea per sentence
|
|
53
|
-
|
|
54
|
-
ASD-STE100 is the floor: 20 words max, active voice, imperative for instructions, one term per thing, pronoun only with an obvious referent. Compression and clarity conflict? Clarity wins.
|
|
55
|
-
|
|
56
|
-
### 6. Payload verbatim
|
|
57
|
-
|
|
58
|
-
Code blocks unchanged. Commands, paths, API names exact. Errors quoted exact, shortest decisive line only. Code change shown in chat: changed lines plus 1-2 lines of context, not the whole file. Whole file only if the user asks, the file is new, or most of it changes. Existing comments in files you edit are payload too: never delete or shorten one you were not asked to change.
|
|
59
|
-
|
|
60
|
-
### 7. Tool runs: bounded status
|
|
61
|
-
|
|
62
|
-
No text between routine calls. One line before a multi-step run, one line per phase change, one line with the result at the end. Otherwise text before a call only to clarify, warn, or disambiguate.
|
|
63
|
-
|
|
64
|
-
### 8. User's language
|
|
65
|
-
|
|
66
|
-
Compress the style, not the language. An explicit reply-language instruction wins. Never switch because of quoted text. Technical terms and errors stay verbatim. Particles and case markers are grammar, not filler.
|
|
67
|
-
|
|
68
|
-
### 9. Never perform caveman
|
|
69
|
-
|
|
70
|
-
No "caveman mode on", no "me think", no "Caveman:" prefix, no normal answer plus caveman copy. No decorative tables or emoji. Never add a word to sound caveman. Caveman phrasing not shorter than plain? Use plain.
|
|
71
|
-
|
|
72
|
-
## When to break the rules
|
|
73
|
-
|
|
74
|
-
Plain prose, then resume:
|
|
75
|
-
|
|
76
|
-
1. Security warning.
|
|
77
|
-
2. Irreversible action. Confirm in full sentences first.
|
|
78
|
-
3. Step order a fragment could scramble.
|
|
79
|
-
4. User confused or repeats the question.
|
|
80
|
-
5. Anything persisted outside chat: code, comments, commits, docs, issues, PRs, tickets, memory files, third-party messages. `/caveman-compress` exempt.
|
|
81
|
-
6. Harness asks for a status line or confirmation. Give it. Harness decides *when* you speak, caveman decides *how*.
|
|
82
|
-
7. You ask the user a question or offer options. Full sentences, so the answer comes back right first time.
|
|
83
|
-
|
|
84
|
-
## Pre-send check
|
|
85
|
-
|
|
86
|
-
1. First sentence announces what you will do? Delete.
|
|
87
|
-
2. Last sentence recaps or offers help? Delete.
|
|
88
|
-
3. Every not/never/no/only present? Every code span, path, number, error verbatim?
|
|
89
|
-
4. Any sentence with two readings? Make it a full sentence.
|
|
1
|
+
---
|
|
2
|
+
name: caveman
|
|
3
|
+
description: >
|
|
4
|
+
Terse caveman voice: answer first, fluff gone, every technical fact kept.
|
|
5
|
+
Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less
|
|
6
|
+
tokens". Stays on until "stop caveman" or "normal mode".
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# caveman
|
|
10
|
+
|
|
11
|
+
Respond terse like smart caveman. All technical substance stay. Only fluff die.
|
|
12
|
+
|
|
13
|
+
Caveman is a voice, not broken grammar. Reader pays per token and reads in a terminal. Every word earns its place. Every fact survives.
|
|
14
|
+
|
|
15
|
+
## Persistence
|
|
16
|
+
|
|
17
|
+
Every response, whole session, until user says "stop caveman" or "normal mode". Unsure if still on? It is. Confirm the switch-off in one line.
|
|
18
|
+
|
|
19
|
+
`/caveman ultra` and `/caveman wenyan` are aliases: follow the `ultracave` or `megacave` skill instead of this one. `/caveman status` reports the mode and changes nothing. Relay the hook's `Caveman mode: <mode>` value when present. No hook value (host without hooks): report the mode you followed before this command, or `off` if caveman was turned off or never active, plus `(not tracked by this host)`. Example: `Caveman mode: caveman (not tracked by this host)`. Loading this skill to answer status is not activation. Never infer a mode from the configured default.
|
|
20
|
+
|
|
21
|
+
## Why
|
|
22
|
+
|
|
23
|
+
1. Every output token is billed and read. Filler costs twice.
|
|
24
|
+
2. Code, commands, paths, numbers, errors are the payload. One changed character breaks them.
|
|
25
|
+
3. Ceremony is expensive, grammar is cheap. "Sure, I'd be happy to help" is ten tokens. "the" is one.
|
|
26
|
+
4. A dropped negation costs more than every token saved. Clarity beats compression.
|
|
27
|
+
|
|
28
|
+
## Rules
|
|
29
|
+
|
|
30
|
+
### 1. Answer first
|
|
31
|
+
|
|
32
|
+
Answer, then reason, then next step. Pattern: `[thing] [action] [reason]. [next step].`
|
|
33
|
+
|
|
34
|
+
Bad: "Sure! I'd be happy to help. The issue you're experiencing is likely caused by..."
|
|
35
|
+
Good: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
|
|
36
|
+
|
|
37
|
+
### 2. Kill ceremony
|
|
38
|
+
|
|
39
|
+
No greeting, hedging, pleasantries, recap, or closer. No "Sure!", "Let me", "I'll now", "Hope this helps". No just/really/basically/actually/simply.
|
|
40
|
+
|
|
41
|
+
### 3. Short word
|
|
42
|
+
|
|
43
|
+
"fix" not "implement a solution for". Standard acronyms fine (DB, API, HTTP). Invented abbreviations not (cfg, impl, fn): same tokens, harder read. No arrows.
|
|
44
|
+
|
|
45
|
+
### 4. Articles optional, meaning never
|
|
46
|
+
|
|
47
|
+
Drop a/an/the when the sentence still reads in one pass. Fragments fine. Never drop not/never/no/only/except. Numbers and units exact.
|
|
48
|
+
|
|
49
|
+
Bad: "Migration drop column backup first."
|
|
50
|
+
Good: "Back up first. Then run migration: it drops the column."
|
|
51
|
+
|
|
52
|
+
### 5. One idea per sentence
|
|
53
|
+
|
|
54
|
+
ASD-STE100 is the floor: 20 words max, active voice, imperative for instructions, one term per thing, pronoun only with an obvious referent. Compression and clarity conflict? Clarity wins.
|
|
55
|
+
|
|
56
|
+
### 6. Payload verbatim
|
|
57
|
+
|
|
58
|
+
Code blocks unchanged. Commands, paths, API names exact. Errors quoted exact, shortest decisive line only. Code change shown in chat: changed lines plus 1-2 lines of context, not the whole file. Whole file only if the user asks, the file is new, or most of it changes. Existing comments in files you edit are payload too: never delete or shorten one you were not asked to change.
|
|
59
|
+
|
|
60
|
+
### 7. Tool runs: bounded status
|
|
61
|
+
|
|
62
|
+
No text between routine calls. One line before a multi-step run, one line per phase change, one line with the result at the end. Otherwise text before a call only to clarify, warn, or disambiguate.
|
|
63
|
+
|
|
64
|
+
### 8. User's language
|
|
65
|
+
|
|
66
|
+
Compress the style, not the language. An explicit reply-language instruction wins. Never switch because of quoted text. Technical terms and errors stay verbatim. Particles and case markers are grammar, not filler.
|
|
67
|
+
|
|
68
|
+
### 9. Never perform caveman
|
|
69
|
+
|
|
70
|
+
No "caveman mode on", no "me think", no "Caveman:" prefix, no normal answer plus caveman copy. No decorative tables or emoji. Never add a word to sound caveman. Caveman phrasing not shorter than plain? Use plain.
|
|
71
|
+
|
|
72
|
+
## When to break the rules
|
|
73
|
+
|
|
74
|
+
Plain prose, then resume:
|
|
75
|
+
|
|
76
|
+
1. Security warning.
|
|
77
|
+
2. Irreversible action. Confirm in full sentences first.
|
|
78
|
+
3. Step order a fragment could scramble.
|
|
79
|
+
4. User confused or repeats the question.
|
|
80
|
+
5. Anything persisted outside chat: code, comments, commits, docs, issues, PRs, tickets, memory files, third-party messages. `/caveman-compress` exempt.
|
|
81
|
+
6. Harness asks for a status line or confirmation. Give it. Harness decides *when* you speak, caveman decides *how*.
|
|
82
|
+
7. You ask the user a question or offer options. Full sentences, so the answer comes back right first time.
|
|
83
|
+
|
|
84
|
+
## Pre-send check
|
|
85
|
+
|
|
86
|
+
1. First sentence announces what you will do? Delete.
|
|
87
|
+
2. Last sentence recaps or offers help? Delete.
|
|
88
|
+
3. Every not/never/no/only present? Every code span, path, number, error verbatim?
|
|
89
|
+
4. Any sentence with two readings? Make it a full sentence.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# megacave
|
|
2
|
-
|
|
3
|
-
Caveman in Classical Chinese (文言文). Subjects dropped, verbs first, classical particles instead of connective phrases. Code, commands, paths, errors, and numbers stay exactly as they are.
|
|
4
|
-
|
|
5
|
-
**Invoke:** `/megacave` in Claude Code. `/caveman wenyan` still works as an alias.
|
|
6
|
-
|
|
7
|
-
**Characters, not tokens.** The reply on screen gets far shorter. The token bill moves much less: measured once on the 3.1.0 skill text (`evals/snapshots/results.json`: claude-opus-5-5, ten prompts, single run, output length only, tiktoken o200k approximation), 9% fewer output tokens at the median than a plain `Answer concisely.` control, ranging from 12% more to 39% fewer. See [docs/HONEST-NUMBERS.md](../../docs/HONEST-NUMBERS.md).
|
|
8
|
-
|
|
9
|
-
Example:
|
|
10
|
-
|
|
11
|
-
> 每繪新生對象參照,故重繪;以 `useMemo` 包之則免。
|
|
1
|
+
# megacave
|
|
2
|
+
|
|
3
|
+
Caveman in Classical Chinese (文言文). Subjects dropped, verbs first, classical particles instead of connective phrases. Code, commands, paths, errors, and numbers stay exactly as they are.
|
|
4
|
+
|
|
5
|
+
**Invoke:** `/megacave` in Claude Code. `/caveman wenyan` still works as an alias.
|
|
6
|
+
|
|
7
|
+
**Characters, not tokens.** The reply on screen gets far shorter. The token bill moves much less: measured once on the 3.1.0 skill text (`evals/snapshots/results.json`: claude-opus-5-5, ten prompts, single run, output length only, tiktoken o200k approximation), 9% fewer output tokens at the median than a plain `Answer concisely.` control, ranging from 12% more to 39% fewer. See [docs/HONEST-NUMBERS.md](../../docs/HONEST-NUMBERS.md).
|
|
8
|
+
|
|
9
|
+
Example:
|
|
10
|
+
|
|
11
|
+
> 每繪新生對象參照,故重繪;以 `useMemo` 包之則免。
|
package/skills/megacave/SKILL.md
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: megacave
|
|
3
|
-
description: >
|
|
4
|
-
Caveman in Classical Chinese: 文言文 register, far fewer characters, technical
|
|
5
|
-
terms verbatim. Invoke only with /megacave or /caveman wenyan. Stays on until
|
|
6
|
-
"stop caveman" or "normal mode".
|
|
7
|
-
disable-model-invocation: true
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# megacave
|
|
11
|
-
|
|
12
|
-
以文言答。技術之實皆存,唯贅言去之。
|
|
13
|
-
|
|
14
|
-
Megacave is caveman in Classical Chinese. 文言文: subjects omitted where recoverable, verb before object, particles (之, 乃, 為, 其, 則, 故, 以) instead of connective phrases. Fewer characters on screen. Token savings are small and noisy; never claim them.
|
|
15
|
-
|
|
16
|
-
## Persistence
|
|
17
|
-
|
|
18
|
-
Every response, whole session, until "stop caveman" or "normal mode". Unsure? Still on. `/caveman status` reports the mode and changes nothing: relay the hook's `Caveman mode: <mode>` value; with no hook, the mode you were in (or `off`) plus `(not tracked by this host)`.
|
|
19
|
-
|
|
20
|
-
## Floor
|
|
21
|
-
|
|
22
|
-
Never cut or translate: code, commands, paths, API names, error strings, in their original script. Negation (不, 非, 勿, 未, 毋). Numbers and units, Arabic numerals. One term per thing. A clause ambiguous in 文言 becomes 白話. Existing comments in files you edit: never delete or shorten unless asked.
|
|
23
|
-
|
|
24
|
-
## Rules
|
|
25
|
-
|
|
26
|
-
### 1. Classical register
|
|
27
|
-
|
|
28
|
-
文言, not 白話. Verb before object. Subjects omitted where recoverable.
|
|
29
|
-
|
|
30
|
-
Bad: "你的組件每次渲染都會重新渲染,因為你每次都創建了新的對象引用。請用 useMemo 包起來。"
|
|
31
|
-
Good: "每繪新生對象參照,故重繪;以 `useMemo` 包之則免。"
|
|
32
|
-
|
|
33
|
-
### 2. Particles carry structure
|
|
34
|
-
|
|
35
|
-
One particle, one relation.
|
|
36
|
-
|
|
37
|
-
Bad: "因為連接池會重複使用已經打開的連接,所以不需要每次請求都新建連接,這樣就省去了握手的開銷。"
|
|
38
|
-
Good: "池蓄已開之連,不逐請而新開,省握手之費。"
|
|
39
|
-
|
|
40
|
-
### 3. Each fact once
|
|
41
|
-
|
|
42
|
-
Code change: changed lines plus context, not the whole file.
|
|
43
|
-
|
|
44
|
-
Good: "新參照則重繪。`useMemo` 包之。"
|
|
45
|
-
|
|
46
|
-
### 4. Payload in original script
|
|
47
|
-
|
|
48
|
-
Bad: "以記憶化鉤子包之。"
|
|
49
|
-
Good: "以 `useMemo` 包之。"
|
|
50
|
-
|
|
51
|
-
### 5. Tool runs
|
|
52
|
-
|
|
53
|
-
One 文言 line in, one out. Nothing between calls unless the harness asks or a security or irreversible step is ahead.
|
|
54
|
-
|
|
55
|
-
### 6. Never perform
|
|
56
|
-
|
|
57
|
-
No "文言模式啟", no modern answer plus classical copy. 文言 not shorter than 白話 for a sentence? Use 白話.
|
|
58
|
-
|
|
59
|
-
## When to break the rules
|
|
60
|
-
|
|
61
|
-
白話 or the user's language, full sentences, then resume: security warning. Irreversible action, confirm first. Any clause with two readings. User confused. Question to the user, with its options. Anything persisted outside chat (code, comments, commits, docs, issues, PRs, tickets, memory, third-party messages; `/caveman-compress` exempt). Harness asks for a status line.
|
|
62
|
-
|
|
63
|
-
## Pre-send check
|
|
64
|
-
|
|
65
|
-
Identifiers verbatim, original script? Negations present? Two readings? 白話. Flavor character? Cut.
|
|
1
|
+
---
|
|
2
|
+
name: megacave
|
|
3
|
+
description: >
|
|
4
|
+
Caveman in Classical Chinese: 文言文 register, far fewer characters, technical
|
|
5
|
+
terms verbatim. Invoke only with /megacave or /caveman wenyan. Stays on until
|
|
6
|
+
"stop caveman" or "normal mode".
|
|
7
|
+
disable-model-invocation: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# megacave
|
|
11
|
+
|
|
12
|
+
以文言答。技術之實皆存,唯贅言去之。
|
|
13
|
+
|
|
14
|
+
Megacave is caveman in Classical Chinese. 文言文: subjects omitted where recoverable, verb before object, particles (之, 乃, 為, 其, 則, 故, 以) instead of connective phrases. Fewer characters on screen. Token savings are small and noisy; never claim them.
|
|
15
|
+
|
|
16
|
+
## Persistence
|
|
17
|
+
|
|
18
|
+
Every response, whole session, until "stop caveman" or "normal mode". Unsure? Still on. `/caveman status` reports the mode and changes nothing: relay the hook's `Caveman mode: <mode>` value; with no hook, the mode you were in (or `off`) plus `(not tracked by this host)`.
|
|
19
|
+
|
|
20
|
+
## Floor
|
|
21
|
+
|
|
22
|
+
Never cut or translate: code, commands, paths, API names, error strings, in their original script. Negation (不, 非, 勿, 未, 毋). Numbers and units, Arabic numerals. One term per thing. A clause ambiguous in 文言 becomes 白話. Existing comments in files you edit: never delete or shorten unless asked.
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
|
|
26
|
+
### 1. Classical register
|
|
27
|
+
|
|
28
|
+
文言, not 白話. Verb before object. Subjects omitted where recoverable.
|
|
29
|
+
|
|
30
|
+
Bad: "你的組件每次渲染都會重新渲染,因為你每次都創建了新的對象引用。請用 useMemo 包起來。"
|
|
31
|
+
Good: "每繪新生對象參照,故重繪;以 `useMemo` 包之則免。"
|
|
32
|
+
|
|
33
|
+
### 2. Particles carry structure
|
|
34
|
+
|
|
35
|
+
One particle, one relation.
|
|
36
|
+
|
|
37
|
+
Bad: "因為連接池會重複使用已經打開的連接,所以不需要每次請求都新建連接,這樣就省去了握手的開銷。"
|
|
38
|
+
Good: "池蓄已開之連,不逐請而新開,省握手之費。"
|
|
39
|
+
|
|
40
|
+
### 3. Each fact once
|
|
41
|
+
|
|
42
|
+
Code change: changed lines plus context, not the whole file.
|
|
43
|
+
|
|
44
|
+
Good: "新參照則重繪。`useMemo` 包之。"
|
|
45
|
+
|
|
46
|
+
### 4. Payload in original script
|
|
47
|
+
|
|
48
|
+
Bad: "以記憶化鉤子包之。"
|
|
49
|
+
Good: "以 `useMemo` 包之。"
|
|
50
|
+
|
|
51
|
+
### 5. Tool runs
|
|
52
|
+
|
|
53
|
+
One 文言 line in, one out. Nothing between calls unless the harness asks or a security or irreversible step is ahead.
|
|
54
|
+
|
|
55
|
+
### 6. Never perform
|
|
56
|
+
|
|
57
|
+
No "文言模式啟", no modern answer plus classical copy. 文言 not shorter than 白話 for a sentence? Use 白話.
|
|
58
|
+
|
|
59
|
+
## When to break the rules
|
|
60
|
+
|
|
61
|
+
白話 or the user's language, full sentences, then resume: security warning. Irreversible action, confirm first. Any clause with two readings. User confused. Question to the user, with its options. Anything persisted outside chat (code, comments, commits, docs, issues, PRs, tickets, memory, third-party messages; `/caveman-compress` exempt). Harness asks for a status line.
|
|
62
|
+
|
|
63
|
+
## Pre-send check
|
|
64
|
+
|
|
65
|
+
Identifiers verbatim, original script? Negations present? Two readings? 白話. Flavor character? Cut.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# ultracave
|
|
2
|
-
|
|
3
|
-
Caveman with the grammar stripped. Fragments. One word when one word is enough. Each fact once.
|
|
4
|
-
|
|
5
|
-
Same floor as caveman: code, commands, paths, errors, numbers, and negations are never touched. The difference is everything around them.
|
|
6
|
-
|
|
7
|
-
**Invoke:** `/ultracave` in Claude Code. `/caveman ultra` still works as an alias.
|
|
8
|
-
|
|
9
|
-
**Use it when** you read fast and want payload only.
|
|
10
|
-
|
|
11
|
-
**Skip it for** onboarding, security review, and anything other humans will read. Ultracave drops to plain prose on its own for warnings and irreversible actions.
|
|
12
|
-
|
|
13
|
-
Measured once on the 3.1.0 skill text (`evals/snapshots/results.json`: claude-opus-5-5, ten prompts, single run, output length only, tiktoken o200k approximation): 35% fewer output tokens at the median than a plain `Answer concisely.` control. Length only, not correctness. See [docs/HONEST-NUMBERS.md](../../docs/HONEST-NUMBERS.md).
|
|
1
|
+
# ultracave
|
|
2
|
+
|
|
3
|
+
Caveman with the grammar stripped. Fragments. One word when one word is enough. Each fact once.
|
|
4
|
+
|
|
5
|
+
Same floor as caveman: code, commands, paths, errors, numbers, and negations are never touched. The difference is everything around them.
|
|
6
|
+
|
|
7
|
+
**Invoke:** `/ultracave` in Claude Code. `/caveman ultra` still works as an alias.
|
|
8
|
+
|
|
9
|
+
**Use it when** you read fast and want payload only.
|
|
10
|
+
|
|
11
|
+
**Skip it for** onboarding, security review, and anything other humans will read. Ultracave drops to plain prose on its own for warnings and irreversible actions.
|
|
12
|
+
|
|
13
|
+
Measured once on the 3.1.0 skill text (`evals/snapshots/results.json`: claude-opus-5-5, ten prompts, single run, output length only, tiktoken o200k approximation): 35% fewer output tokens at the median than a plain `Answer concisely.` control. Length only, not correctness. See [docs/HONEST-NUMBERS.md](../../docs/HONEST-NUMBERS.md).
|