@unitsvc/cc-helper 1.0.16 → 1.0.18
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-zh.md +88 -28
- package/README.md +88 -28
- package/package.json +3 -2
package/README-zh.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[**English**](./README.md) | **简体中文**
|
|
8
8
|
|
|
9
|
-
> ⚡ 一键启用 Claude Code CLI 的隐藏功能:`/loop`、`/btw` 和 `MCPSearch`
|
|
9
|
+
> ⚡ 一键启用 Claude Code CLI 的隐藏功能:`/loop`、`/btw`、`/keybindings`、`/context1m` 和 `MCPSearch`
|
|
10
10
|
|
|
11
11
|
## 环境要求
|
|
12
12
|
|
|
@@ -14,19 +14,21 @@
|
|
|
14
14
|
- Claude Code v2.1.71+
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -g @anthropic-ai/claude-code@v2.1.
|
|
17
|
+
npm install -g @anthropic-ai/claude-code@v2.1.76
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## 使用方法
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
# 启用默认功能(/loop, /btw)
|
|
23
|
+
# 启用默认功能(/loop, /btw, /keybindings)
|
|
24
24
|
npx @unitsvc/cc-helper enable
|
|
25
25
|
|
|
26
26
|
# 启用特定功能
|
|
27
27
|
npx @unitsvc/cc-helper enable loop
|
|
28
28
|
npx @unitsvc/cc-helper enable btw
|
|
29
|
+
npx @unitsvc/cc-helper enable keybindings
|
|
29
30
|
npx @unitsvc/cc-helper enable toolsearch
|
|
31
|
+
npx @unitsvc/cc-helper enable context1m # 别名: 1m, 1M
|
|
30
32
|
|
|
31
33
|
# 查看状态
|
|
32
34
|
npx @unitsvc/cc-helper status
|
|
@@ -37,29 +39,29 @@ npx @unitsvc/cc-helper disable
|
|
|
37
39
|
|
|
38
40
|
### 命令说明
|
|
39
41
|
|
|
40
|
-
| 命令
|
|
41
|
-
|
|
42
|
-
| `enable`
|
|
43
|
-
| `enable loop`
|
|
44
|
-
| `enable btw`
|
|
45
|
-
| `enable
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
42
|
+
| 命令 | 说明 |
|
|
43
|
+
| -------------------- | -------------------------------------------------------------- |
|
|
44
|
+
| `enable` | 启用 `/loop`、`/btw` 和 `/keybindings` 功能(默认) |
|
|
45
|
+
| `enable loop` | 仅启用 `/loop` 功能 |
|
|
46
|
+
| `enable btw` | 仅启用 `/btw` 功能 |
|
|
47
|
+
| `enable keybindings` | 仅启用 `/keybindings` 功能 |
|
|
48
|
+
| `enable toolsearch` | 启用 toolsearch 功能(需要显式激活) |
|
|
49
|
+
| `enable context1m` | 启用 1M 上下文窗口,用于 Claude Opus(v2.1.76+,需要显式激活) |
|
|
50
|
+
| `disable` | 恢复原始状态 |
|
|
51
|
+
| `status` | 查看当前状态及版本要求 |
|
|
52
|
+
|
|
53
|
+
**注意**: 运行 `cc-helper enable` 时会自动在 `~/.claude/settings.json` 中配置推荐的环境变量:
|
|
54
|
+
|
|
55
|
+
- `DISABLE_INSTALLATION_CHECKS=1` - 禁用 npm 安装警告
|
|
56
|
+
- `DISABLE_AUTOUPDATER=1` - 禁用自动更新
|
|
57
|
+
- `DISABLE_BUG_COMMAND=1` - 禁用 bug 命令
|
|
58
|
+
- `DISABLE_ERROR_REPORTING=1` - 禁用错误报告
|
|
59
|
+
- `DISABLE_TELEMETRY=1` - 禁用遥测
|
|
60
|
+
- `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1` - 禁用非必要流量
|
|
61
|
+
- `CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1` - 禁用反馈调查
|
|
62
|
+
- `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` - 启用实验性 Agent Teams
|
|
63
|
+
- `CLAUDE_CODE_HIDE_ACCOUNT_INFO=1` - 隐藏账户信息
|
|
64
|
+
- `API_TIMEOUT_MS=3000000` - 设置 API 超时为 50 分钟
|
|
63
65
|
|
|
64
66
|
---
|
|
65
67
|
|
|
@@ -188,15 +190,73 @@ ENABLE_TOOL_SEARCH=true claude
|
|
|
188
190
|
}
|
|
189
191
|
```
|
|
190
192
|
|
|
193
|
+
## 什么是 `/keybindings`?
|
|
194
|
+
|
|
195
|
+
`/keybindings` 启用自定义键盘快捷键支持。在 `~/.claude/keybindings.json` 中配置您的键绑定。
|
|
196
|
+
|
|
197
|
+
### 配置方法
|
|
198
|
+
|
|
199
|
+
创建或编辑 `~/.claude/keybindings.json`:
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"submit": ["ctrl+s"],
|
|
204
|
+
"interrupt": ["ctrl+c"],
|
|
205
|
+
"custom_commands": {
|
|
206
|
+
"ctrl+shift+l": "/loop 5m check status"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## 什么是 `/context1m`?
|
|
212
|
+
|
|
213
|
+
`/context1m` 为 Claude Opus 模型启用 1M token 上下文窗口。这允许您处理更大的代码库和更长的对话。
|
|
214
|
+
|
|
215
|
+
### 要求
|
|
216
|
+
|
|
217
|
+
- Claude Code v2.1.76 或更高版本
|
|
218
|
+
- Claude Opus 4+ 模型
|
|
219
|
+
- 可能需要 Pro 计划或官方 API
|
|
220
|
+
|
|
221
|
+
### 使用方法
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# 启用 1M 上下文
|
|
225
|
+
npx @unitsvc/cc-helper enable context1m
|
|
226
|
+
|
|
227
|
+
# 或使用别名
|
|
228
|
+
npx @unitsvc/cc-helper enable 1m
|
|
229
|
+
npx @unitsvc/cc-helper enable 1M
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### 扩展思维与上下文长度
|
|
233
|
+
|
|
234
|
+
使用第三方 API 代理时,扩展思维(推理)能力和上下文窗口大小因模型而异:
|
|
235
|
+
|
|
236
|
+
| 模型 | 最大思维链长度 | 上下文长度(Tokens) |
|
|
237
|
+
| -------------------- | ----------------------- | -------------------- |
|
|
238
|
+
| qwen3.5-plus | 81,920 | 1,000,000 |
|
|
239
|
+
| qwen3-coder-plus | 不支持思考模式 | 1,000,000 |
|
|
240
|
+
| qwen3-max-2026-01-23 | 81,920 | 262,144 |
|
|
241
|
+
| qwen3-coder-next | 不支持思考模式 | 262,144 |
|
|
242
|
+
| kimi-k2.5 | 81,920 | 262,144 |
|
|
243
|
+
| MiniMax-M2.5 | 32,768(思维链 + 回复) | 204,800 |
|
|
244
|
+
| glm-5 | 32,768 | 202,752 |
|
|
245
|
+
| glm-4.7 | 32,768 | 202,752 |
|
|
246
|
+
|
|
191
247
|
## 功能特点
|
|
192
248
|
|
|
193
|
-
- 一键启用 `/loop`、`/btw`
|
|
249
|
+
- 一键启用 `/loop`、`/btw`、`/keybindings` 功能
|
|
250
|
+
- 可选 `/toolsearch` 用于第三方 API 代理
|
|
251
|
+
- 可选 `/context1m` 用于 1M 上下文窗口(v2.1.76+)
|
|
194
252
|
- 可单独启用特定功能
|
|
195
253
|
- 轻松恢复原始状态
|
|
196
254
|
- 自动备份原文件
|
|
255
|
+
- 自动禁用 npm 弃用警告
|
|
256
|
+
- 自动跳过入门引导流程
|
|
197
257
|
- 零运行时依赖
|
|
198
258
|
- 跨平台支持
|
|
199
|
-
- 支持版本:2.1.71
|
|
259
|
+
- 支持版本:2.1.71 - 2.1.76+
|
|
200
260
|
|
|
201
261
|
### 示例
|
|
202
262
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**English** | [**简体中文**](./README-zh.md)
|
|
8
8
|
|
|
9
|
-
> ⚡ Enable hidden features in Claude Code CLI with one command: `/loop`, `/btw`, and `MCPSearch`
|
|
9
|
+
> ⚡ Enable hidden features in Claude Code CLI with one command: `/loop`, `/btw`, `/keybindings`, `/context1m`, and `MCPSearch`
|
|
10
10
|
|
|
11
11
|
## Requirements
|
|
12
12
|
|
|
@@ -14,19 +14,21 @@
|
|
|
14
14
|
- Claude Code v2.1.71+
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -g @anthropic-ai/claude-code@v2.1.
|
|
17
|
+
npm install -g @anthropic-ai/claude-code@v2.1.76
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
# Enable default features (/loop, /btw)
|
|
23
|
+
# Enable default features (/loop, /btw, /keybindings)
|
|
24
24
|
npx @unitsvc/cc-helper enable
|
|
25
25
|
|
|
26
26
|
# Enable specific features
|
|
27
27
|
npx @unitsvc/cc-helper enable loop
|
|
28
28
|
npx @unitsvc/cc-helper enable btw
|
|
29
|
+
npx @unitsvc/cc-helper enable keybindings
|
|
29
30
|
npx @unitsvc/cc-helper enable toolsearch
|
|
31
|
+
npx @unitsvc/cc-helper enable context1m # or: 1m, 1M
|
|
30
32
|
|
|
31
33
|
# Check status
|
|
32
34
|
npx @unitsvc/cc-helper status
|
|
@@ -37,14 +39,29 @@ npx @unitsvc/cc-helper disable
|
|
|
37
39
|
|
|
38
40
|
### Commands
|
|
39
41
|
|
|
40
|
-
| Command
|
|
41
|
-
|
|
|
42
|
-
| `enable`
|
|
43
|
-
| `enable loop`
|
|
44
|
-
| `enable btw`
|
|
45
|
-
| `enable
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
42
|
+
| Command | Description |
|
|
43
|
+
| -------------------- | -------------------------------------------------------------------- |
|
|
44
|
+
| `enable` | Enable `/loop`, `/btw`, and `/keybindings` features (default) |
|
|
45
|
+
| `enable loop` | Enable only `/loop` feature |
|
|
46
|
+
| `enable btw` | Enable only `/btw` feature |
|
|
47
|
+
| `enable keybindings` | Enable only `/keybindings` feature |
|
|
48
|
+
| `enable toolsearch` | Enable toolsearch feature (requires explicit activation) |
|
|
49
|
+
| `enable context1m` | Enable 1M context window for Claude Opus (v2.1.76+, explicit opt-in) |
|
|
50
|
+
| `disable` | Restore original |
|
|
51
|
+
| `status` | Check current status with version requirements |
|
|
52
|
+
|
|
53
|
+
**Note**: Running `cc-helper enable` also automatically configures recommended environment variables in `~/.claude/settings.json`:
|
|
54
|
+
|
|
55
|
+
- `DISABLE_INSTALLATION_CHECKS=1` - Disable npm installation warnings
|
|
56
|
+
- `DISABLE_AUTOUPDATER=1` - Disable auto-updater
|
|
57
|
+
- `DISABLE_BUG_COMMAND=1` - Disable bug command
|
|
58
|
+
- `DISABLE_ERROR_REPORTING=1` - Disable error reporting
|
|
59
|
+
- `DISABLE_TELEMETRY=1` - Disable telemetry
|
|
60
|
+
- `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1` - Disable non-essential traffic
|
|
61
|
+
- `CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1` - Disable feedback survey
|
|
62
|
+
- `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` - Enable experimental agent teams
|
|
63
|
+
- `CLAUDE_CODE_HIDE_ACCOUNT_INFO=1` - Hide account info
|
|
64
|
+
- `API_TIMEOUT_MS=3000000` - Set API timeout to 50 minutes
|
|
48
65
|
|
|
49
66
|
### Proxy Support
|
|
50
67
|
|
|
@@ -58,21 +75,6 @@ npx @unitsvc/cc-helper --proxy enable
|
|
|
58
75
|
npx @unitsvc/cc-helper --proxy https://your-proxy.com enable
|
|
59
76
|
```
|
|
60
77
|
|
|
61
|
-
## Sponsors
|
|
62
|
-
|
|
63
|
-
<table>
|
|
64
|
-
<tr>
|
|
65
|
-
<td width="60" valign="middle">
|
|
66
|
-
<img src="https://img.shields.io/badge/🚀-GLM-blue?style=for-the-badge" alt="GLM"/>
|
|
67
|
-
</td>
|
|
68
|
-
<td valign="middle">
|
|
69
|
-
<b>GLM Coding Plan</b><br/>
|
|
70
|
-
<sub>Full support for <b>Claude Code</b>, <b>Cline</b>, and <b>20+ top coding tools</b> — starting at just <b>$10/month</b></sub><br/>
|
|
71
|
-
<a href="https://z.ai/subscribe?ic=1YVKN4IRCQ"><b>👉 Subscribe now — limited-time deal!</b></a>
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
</table>
|
|
75
|
-
|
|
76
78
|
---
|
|
77
79
|
|
|
78
80
|
## What is `/loop`?
|
|
@@ -200,15 +202,73 @@ You can also disable the `MCPSearch` tool specifically using the `disallowedTool
|
|
|
200
202
|
}
|
|
201
203
|
```
|
|
202
204
|
|
|
205
|
+
## What is `/keybindings`?
|
|
206
|
+
|
|
207
|
+
`/keybindings` enables custom keyboard shortcuts support. Configure your keybindings in `~/.claude/keybindings.json`.
|
|
208
|
+
|
|
209
|
+
### Configuration
|
|
210
|
+
|
|
211
|
+
Create or edit `~/.claude/keybindings.json`:
|
|
212
|
+
|
|
213
|
+
```json
|
|
214
|
+
{
|
|
215
|
+
"submit": ["ctrl+s"],
|
|
216
|
+
"interrupt": ["ctrl+c"],
|
|
217
|
+
"custom_commands": {
|
|
218
|
+
"ctrl+shift+l": "/loop 5m check status"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## What is `/context1m`?
|
|
224
|
+
|
|
225
|
+
`/context1m` enables 1M token context window for Claude Opus models. This allows you to work with much larger codebases and conversations.
|
|
226
|
+
|
|
227
|
+
### Requirements
|
|
228
|
+
|
|
229
|
+
- Claude Code v2.1.76 or higher
|
|
230
|
+
- Claude Opus 4+ model
|
|
231
|
+
- May require Pro plan or first-party API
|
|
232
|
+
|
|
233
|
+
### Usage
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
# Enable 1M context
|
|
237
|
+
npx @unitsvc/cc-helper enable context1m
|
|
238
|
+
|
|
239
|
+
# Or use aliases
|
|
240
|
+
npx @unitsvc/cc-helper enable 1m
|
|
241
|
+
npx @unitsvc/cc-helper enable 1M
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Extended Thinking and Context Length
|
|
245
|
+
|
|
246
|
+
When using third-party API proxies, extended thinking (reasoning) capabilities and context window sizes vary by model:
|
|
247
|
+
|
|
248
|
+
| Model | Max Thinking Tokens | Context Length (Tokens) |
|
|
249
|
+
| -------------------- | ---------------------------- | ----------------------- |
|
|
250
|
+
| qwen3.5-plus | 81,920 | 1,000,000 |
|
|
251
|
+
| qwen3-coder-plus | Not supported | 1,000,000 |
|
|
252
|
+
| qwen3-max-2026-01-23 | 81,920 | 262,144 |
|
|
253
|
+
| qwen3-coder-next | Not supported | 262,144 |
|
|
254
|
+
| kimi-k2.5 | 81,920 | 262,144 |
|
|
255
|
+
| MiniMax-M2.5 | 32,768 (thinking + response) | 204,800 |
|
|
256
|
+
| glm-5 | 32,768 | 202,752 |
|
|
257
|
+
| glm-4.7 | 32,768 | 202,752 |
|
|
258
|
+
|
|
203
259
|
## Features
|
|
204
260
|
|
|
205
|
-
- Enable `/loop`, `/btw`,
|
|
261
|
+
- Enable `/loop`, `/btw`, `/keybindings` with one command
|
|
262
|
+
- Optional `/toolsearch` for third-party API proxies
|
|
263
|
+
- Optional `/context1m` for 1M context window (v2.1.76+)
|
|
206
264
|
- Enable specific features individually
|
|
207
265
|
- Easy restore functionality
|
|
208
266
|
- Automatic backup
|
|
267
|
+
- Auto-disable npm deprecation warning
|
|
268
|
+
- Auto-skip onboarding flow
|
|
209
269
|
- Zero runtime dependencies
|
|
210
270
|
- Cross-platform support
|
|
211
|
-
- Version support: 2.1.71
|
|
271
|
+
- Version support: 2.1.71 - 2.1.76+
|
|
212
272
|
|
|
213
273
|
### Examples
|
|
214
274
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unitsvc/cc-helper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Claude Code /loop feature bypass tool",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"claude code",
|
|
17
|
-
"
|
|
17
|
+
"coding plan",
|
|
18
|
+
"compliance",
|
|
18
19
|
"cli"
|
|
19
20
|
],
|
|
20
21
|
"author": "next-bin",
|