@shuind/dsh-codex-harness 0.2.0 → 0.2.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.
- package/README.md +4 -10
- package/lib/client.js +1 -1
- package/lib/index.js +1 -1
- package/lib/installer.js +1 -1
- package/lib/types/prompt.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
## 功能
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 使用精简codex提示词;对gpt过度拉屎做了少量提示词防御。
|
|
8
8
|
- 在 **设置 → 插件 → 插件配置 → Codex Harness** 中查看、编辑或恢复完整提示词。
|
|
9
9
|
- 提供 `exec_command`、`write_stdin`、`apply_patch` 和 `update_plan`。
|
|
10
|
-
- 支持 Fast 请求、GPT
|
|
10
|
+
- 支持 Fast 请求、GPT 图片与思考强度和上下文容量。
|
|
11
|
+
- 实时显示请求模型、模型回复和上下文压缩状态及耗时。
|
|
11
12
|
- Responses 请求优先使用原生 `apply_patch`、hosted `web_search` 和远程压缩,失败时回退到 DSH 实现。
|
|
12
|
-
- 随附 DSH 的后台任务、目标、Plan mode、子 Agent/工作流、用户询问、todo 与 Skills 组合。
|
|
13
13
|
|
|
14
14
|
## 安装
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
dsh plugin --profile web add @shuind/dsh-codex-harness@0.2.
|
|
17
|
+
dsh plugin --profile web add @shuind/dsh-codex-harness@0.2.1
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
重启 Web,在 **Agent 预设** 中选择 **Codex 模式**,再创建会话。
|
|
@@ -44,12 +44,6 @@ apiKeyEnv: OPENAI_API_KEY
|
|
|
44
44
|
- **Fast**:在 Codex 模式的模型菜单中开启,向 Responses 请求发送 `service_tier: "priority"`。
|
|
45
45
|
- **上下文容量**:点击输入栏旁的上下文用量指示器,可设置 `1K`–`1000K` tokens;下一次请求和自动压缩使用该值。
|
|
46
46
|
|
|
47
|
-
## v0.2.0 迁移
|
|
48
|
-
|
|
49
|
-
v0.2.0 将原来的两个内置模式合并为一个。安装器会升级未修改的旧 Codex 协作模式,并移除未修改的旧基础模式;检测到用户改动的 preset 会保留。
|
|
50
|
-
|
|
51
|
-
preset 在创建会话时确定,已有会话不会自动切换。模型、中转站是否支持 hosted search、远程压缩、custom tools 和 priority tier,以实际服务为准。
|
|
52
|
-
|
|
53
47
|
## License
|
|
54
48
|
|
|
55
49
|
MIT
|
package/lib/client.js
CHANGED
|
@@ -55,7 +55,7 @@ window.__ModuleLoader__.load({
|
|
|
55
55
|
## Working principles
|
|
56
56
|
|
|
57
57
|
- Ask, align, and clarify first. Gather enough context from the user, then align the approach to achieve the user's goal through the clearest, most effective path.
|
|
58
|
-
- Keep only the essential logic and core actions.
|
|
58
|
+
- Keep only the essential logic and core actions. Don't explain or test what was removed or why something wasn't done, especially when writing documentation or communicating. Convey enough valuable information with as few words as possible.
|
|
59
59
|
- Solve problems by thinking from first principles and at a higher level.
|
|
60
60
|
`;
|
|
61
61
|
//#endregion
|
package/lib/index.js
CHANGED
|
@@ -1107,7 +1107,7 @@ const DEFAULT_CODEX_SYSTEM_PROMPT = String.raw`## General
|
|
|
1107
1107
|
## Working principles
|
|
1108
1108
|
|
|
1109
1109
|
- Ask, align, and clarify first. Gather enough context from the user, then align the approach to achieve the user's goal through the clearest, most effective path.
|
|
1110
|
-
- Keep only the essential logic and core actions.
|
|
1110
|
+
- Keep only the essential logic and core actions. Don't explain or test what was removed or why something wasn't done, especially when writing documentation or communicating. Convey enough valuable information with as few words as possible.
|
|
1111
1111
|
- Solve problems by thinking from first principles and at a higher level.
|
|
1112
1112
|
`;
|
|
1113
1113
|
/** Resolve the full plugin-owned prompt, preserving intentional empty overrides. */
|
package/lib/installer.js
CHANGED
|
@@ -43,7 +43,7 @@ const DEFAULT_CODEX_SYSTEM_PROMPT = String.raw`## General
|
|
|
43
43
|
## Working principles
|
|
44
44
|
|
|
45
45
|
- Ask, align, and clarify first. Gather enough context from the user, then align the approach to achieve the user's goal through the clearest, most effective path.
|
|
46
|
-
- Keep only the essential logic and core actions.
|
|
46
|
+
- Keep only the essential logic and core actions. Don't explain or test what was removed or why something wasn't done, especially when writing documentation or communicating. Convey enough valuable information with as few words as possible.
|
|
47
47
|
- Solve problems by thinking from first principles and at a higher level.
|
|
48
48
|
`;
|
|
49
49
|
//#endregion
|
package/lib/types/prompt.js
CHANGED
|
@@ -32,7 +32,7 @@ export const DEFAULT_CODEX_SYSTEM_PROMPT = String.raw `## General
|
|
|
32
32
|
## Working principles
|
|
33
33
|
|
|
34
34
|
- Ask, align, and clarify first. Gather enough context from the user, then align the approach to achieve the user's goal through the clearest, most effective path.
|
|
35
|
-
- Keep only the essential logic and core actions.
|
|
35
|
+
- Keep only the essential logic and core actions. Don't explain or test what was removed or why something wasn't done, especially when writing documentation or communicating. Convey enough valuable information with as few words as possible.
|
|
36
36
|
- Solve problems by thinking from first principles and at a higher level.
|
|
37
37
|
`;
|
|
38
38
|
/** Resolve the full plugin-owned prompt, preserving intentional empty overrides. */
|