dsh-plain-talk 0.1.8 → 0.1.10
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 +9 -0
- package/README.en.md +10 -8
- package/README.md +11 -9
- package/dsh/index.js +3 -4
- package/dsh/rules.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.en.md
CHANGED
|
@@ -43,12 +43,14 @@ Environment: DeepSeek Harness `desktop` profile, headless run, model `command co
|
|
|
43
43
|
|
|
44
44
|
|Case|Characters (off / on)|Output tokens (off / on)|
|
|
45
45
|
|-|-|-|
|
|
46
|
-
|A1 Create and verify files|
|
|
47
|
-
|A2 Write and read back|
|
|
48
|
-
|B1 Why models forget|
|
|
46
|
+
|A1 Create and verify files|139 → 184, 32.37%↑|2,333 → 1,344, 42.39%↓|
|
|
47
|
+
|A2 Write and read back|80 → 68, 15.00%↓|220 → 398, 80.91%↑|
|
|
48
|
+
|B1 Why models forget|408 → 348, 14.71%↓|732 → 326, 55.46%↓|
|
|
49
49
|
|B2 merge vs rebase|184 → 194, 5.43%↑|150 → 366, 144.00%↑|
|
|
50
|
-
|C1 Experiment draft|
|
|
51
|
-
|C2 Release-check draft|
|
|
50
|
+
|C1 Experiment draft|518 → 453, 12.55%↓|2,781 → 3,066, 10.25%↑|
|
|
51
|
+
|C2 Release-check draft|645 → 324, 49.77%↓|1,636 → 2,092, 27.87%↑|
|
|
52
|
+
|
|
53
|
+
Token counts cover every model step in the turn (including reasoning and tool calls), so they do not always move with reply length; C2, for example, is 321 characters shorter yet spends more tokens on analysis and self-checking.
|
|
52
54
|
|
|
53
55
|
About +589 input token per step.
|
|
54
56
|
|
|
@@ -70,9 +72,9 @@ Restart DSH after installing.
|
|
|
70
72
|
## Use
|
|
71
73
|
|
|
72
74
|
1. Open any session; a smiley speech-bubble icon appears to the right of the permission selector in the composer.
|
|
73
|
-
2.
|
|
75
|
+
2. Off by default (plain smile); one click turns it into the open smile with three sound waves, meaning this session is on. Affects only the current session.
|
|
74
76
|
3. State is written to `$DSH_HOME/plain-talk.json` and survives a restart.
|
|
75
|
-
4. To make new sessions start
|
|
77
|
+
4. To make new sessions start on: set `PLAIN_TALK_DEFAULT=on` in the launch environment.
|
|
76
78
|
|
|
77
79
|
## Vocabulary
|
|
78
80
|
|
|
@@ -113,7 +115,7 @@ Only `$DSH_HOME/plain-talk.json` and `$DSH_HOME/plain-talk-vocab.json` are writt
|
|
|
113
115
|
|
|
114
116
|
## Configuration
|
|
115
117
|
|
|
116
|
-
Only the environment variable `PLAIN_TALK_DEFAULT` (`on` / `off`, default `
|
|
118
|
+
Only the environment variable `PLAIN_TALK_DEFAULT` (`on` / `off`, default `off`).
|
|
117
119
|
|
|
118
120
|
## Notes
|
|
119
121
|
|
package/README.md
CHANGED
|
@@ -43,12 +43,14 @@ DeepSeek Harness 的回复优化插件:输入框里一个「说人话」开关
|
|
|
43
43
|
|
|
44
44
|
|场景|字数(关闭 / 开启)|输出 token(关闭 / 开启)|
|
|
45
45
|
|-|-|-|
|
|
46
|
-
|A1 建文件并验证|
|
|
47
|
-
|A2 写入并读回|
|
|
48
|
-
|B1 为什么模型会忘事|
|
|
46
|
+
|A1 建文件并验证|139 → 184, 32.37%↑|2,333 → 1,344, 42.39%↓|
|
|
47
|
+
|A2 写入并读回|80 → 68, 15.00%↓|220 → 398, 80.91%↑|
|
|
48
|
+
|B1 为什么模型会忘事|408 → 348, 14.71%↓|732 → 326, 55.46%↓|
|
|
49
49
|
|B2 merge 与 rebase|184 → 194, 5.43%↑|150 → 366, 144.00%↑|
|
|
50
|
-
|C1 实验草稿|
|
|
51
|
-
|C2 上线检查草稿|
|
|
50
|
+
|C1 实验草稿|518 → 453, 12.55%↓|2,781 → 3,066, 10.25%↑|
|
|
51
|
+
|C2 上线检查草稿|645 → 324, 49.77%↓|1,636 → 2,092, 27.87%↑|
|
|
52
|
+
|
|
53
|
+
token 统计覆盖整轮所有模型步(含思考与工具调用),因此与最终回复字数不必然同向;例如 C2 最终回复少了 321 字,但开启后多花了分析与自检的 token。
|
|
52
54
|
|
|
53
55
|
每步约 +589 input token。
|
|
54
56
|
|
|
@@ -70,9 +72,9 @@ dsh plugin --profile desktop add ./dsh-plain-talk
|
|
|
70
72
|
## 使用
|
|
71
73
|
|
|
72
74
|
1. 打开任意会话,输入框权限选择器右侧会多一个笑脸气泡图标。
|
|
73
|
-
2.
|
|
75
|
+
2. 默认关闭(微笑版);点一下变成带三道声波的张嘴笑脸,表示当前会话已开启。只影响当前会话。
|
|
74
76
|
3. 状态写在 `$DSH_HOME/plain-talk.json`,重启后保持。
|
|
75
|
-
4.
|
|
77
|
+
4. 想让新会话默认开启:启动环境里设 `PLAIN_TALK_DEFAULT=on`。
|
|
76
78
|
|
|
77
79
|
## 词汇清单
|
|
78
80
|
|
|
@@ -113,14 +115,14 @@ dsh plugin --profile desktop add ./dsh-plain-talk
|
|
|
113
115
|
|
|
114
116
|
## 配置
|
|
115
117
|
|
|
116
|
-
只有环境变量 `PLAIN_TALK_DEFAULT`(`on` / `off`,默认 `
|
|
118
|
+
只有环境变量 `PLAIN_TALK_DEFAULT`(`on` / `off`,默认 `off`)。
|
|
117
119
|
|
|
118
120
|
## 注意
|
|
119
121
|
|
|
120
122
|
* 按钮位置依赖 `conversation.input.left`,宿主改版后可能移到其它左侧控件旁。
|
|
121
123
|
* 规则是提示词约束,`plain_talk_check` 只提醒、不拦截发送。
|
|
122
124
|
* 词表按用户共享,不按项目隔离。
|
|
123
|
-
*
|
|
125
|
+
* 开启时每个请求多约 590 input token。
|
|
124
126
|
|
|
125
127
|
## 许可
|
|
126
128
|
|
package/dsh/index.js
CHANGED
|
@@ -52,10 +52,9 @@ const ROUTE_STATE = '/plain-talk/state'
|
|
|
52
52
|
const MAX_BODY = 8 * 1024
|
|
53
53
|
const MAX_SESSIONS = 256
|
|
54
54
|
|
|
55
|
-
/** New Sessions start
|
|
56
|
-
* PLAIN_TALK_DEFAULT=
|
|
57
|
-
|
|
58
|
-
const DEFAULT_ON = String(process.env.PLAIN_TALK_DEFAULT ?? 'on').toLowerCase() !== 'off'
|
|
55
|
+
/** New Sessions start off; one click turns the mode on and records that choice.
|
|
56
|
+
* PLAIN_TALK_DEFAULT=on makes unseen Sessions start on. */
|
|
57
|
+
const DEFAULT_ON = String(process.env.PLAIN_TALK_DEFAULT ?? 'off').toLowerCase() === 'on'
|
|
59
58
|
|
|
60
59
|
function dshHome() {
|
|
61
60
|
return process.env.DSH_HOME && process.env.DSH_HOME.length > 0
|
package/dsh/rules.js
CHANGED
|
@@ -16,6 +16,7 @@ export const RULES = `# 说人话(回复优化)
|
|
|
16
16
|
- 能一句说清就一句;默认不超过 12 行、300 字。用户明确要细节时放开深度,但结论仍在第一行。
|
|
17
17
|
- 不写"好的/我来看看/让我先…/希望这有帮助";不复述问题;不汇报你准备怎么做。
|
|
18
18
|
- 不写过程日记("我先…然后…")。只写结果、判断和可验证的事实。
|
|
19
|
+
- 工具调用之间的进度说明同样适用:用用户的语言,一句话(≤2 行);不需要说明就直接调工具。
|
|
19
20
|
- 列表最多 5 条;只给一个下一步。结尾不要问"还需要我做什么"。
|
|
20
21
|
|
|
21
22
|
## 自包含
|