subconscious-cli 6.0.0 → 6.1.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/README.md +135 -2
- package/bin/agent-data.js +242 -0
- package/bin/agent-help.js +106 -0
- package/bin/agent-install.js +354 -0
- package/bin/agent-launch.js +199 -0
- package/bin/agent-spawn.js +137 -0
- package/bin/agents.js +284 -840
- package/bin/auth.js +89 -33
- package/bin/branding.js +3 -1
- package/bin/claude-picker.js +143 -0
- package/bin/cli.js +87 -20
- package/bin/clipboard-image.js +24 -5
- package/bin/colors.js +1 -1
- package/bin/feedback.js +71 -21
- package/bin/harness-manifest.js +286 -0
- package/bin/headless-args.js +35 -0
- package/bin/launch-values.js +25 -0
- package/bin/model-capabilities.js +12 -8
- package/bin/models.js +35 -19
- package/bin/native/subc-tui-darwin-amd64 +0 -0
- package/bin/native/subc-tui-darwin-arm64 +0 -0
- package/bin/native/subc-tui-linux-amd64 +0 -0
- package/bin/native/subc-tui-linux-arm64 +0 -0
- package/bin/native/subc-tui-windows-amd64.exe +0 -0
- package/bin/native/subc-tui-windows-arm64.exe +0 -0
- package/bin/opencode-provider.js +48 -5
- package/bin/profile-settings.js +129 -0
- package/bin/profiles.js +136 -449
- package/bin/runbook/README.md +66 -23
- package/bin/runbook/claude-code/agent.json +300 -0
- package/bin/runbook/claude-code/install.sh +9 -252
- package/bin/runbook/codex/agent.json +461 -0
- package/bin/runbook/codex/hooks-lib.sh +17 -4
- package/bin/runbook/codex/install.sh +0 -4
- package/bin/runbook/codex/run.sh +16 -235
- package/bin/runbook/copilot/agent.json +185 -0
- package/bin/runbook/copilot/install.sh +45 -63
- package/bin/runbook/cursor/agent.json +137 -0
- package/bin/runbook/cursor/install.sh +8 -35
- package/bin/runbook/deepseek-harness/agent.json +163 -0
- package/bin/runbook/deepseek-harness/run.sh +20 -59
- package/bin/runbook/image-window/index.ts +14 -0
- package/bin/runbook/image-window/window.d.ts +19 -0
- package/bin/runbook/image-window/window.js +140 -0
- package/bin/runbook/lib.sh +41 -0
- package/bin/runbook/opencode/agent.json +158 -0
- package/bin/runbook/opencode/install.sh +9 -183
- package/bin/runbook/opencode/opencode-plugin.d.ts +16 -0
- package/bin/runbook/opencode/subconscious-image-window.ts +24 -0
- package/bin/runbook/pi/agent.json +216 -0
- package/bin/runbook/pi/install.sh +18 -44
- package/bin/runbook/pi/run.sh +6 -18
- package/bin/runbook/pi/subconscious-compaction.ts +71 -49
- package/bin/runbook/shared.json +58 -0
- package/bin/runbook/subconscious-code/agent.json +156 -0
- package/bin/sessions.js +173 -58
- package/bin/tui.js +104 -32
- package/bin/update-check.js +54 -21
- package/bin/upgrade.js +67 -43
- package/bin/usage.js +47 -24
- package/bin/windows/agents.js +141 -37
- package/bin/windows/common.js +36 -25
- package/bin/windows/install.js +116 -34
- package/bin/windows/launch.js +260 -77
- package/bin/windows/pi-compaction.ts +68 -13
- package/bin/windows/process.js +210 -57
- package/bin/windows/setup.js +251 -56
- package/package.json +9 -4
- package/bin/registry.generated.json +0 -406
- package/bin/runbook/claude-code/run.sh +0 -254
- package/bin/runbook/model-capabilities.generated.sh +0 -9
- package/bin/runbook/opencode/provider.sh +0 -93
- package/bin/runbook/opencode/run.sh +0 -99
- package/bin/runbook/opencode/subconscious-compaction.ts +0 -100
- package/bin/runbook/subconscious-code/run.sh +0 -21
- package/bin/windows/claude.js +0 -71
package/bin/runbook/README.md
CHANGED
|
@@ -1,25 +1,68 @@
|
|
|
1
1
|
# Coding-agent integrations
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- `
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`
|
|
25
|
-
|
|
3
|
+
Each directory here is one agent. Its `agent.json` is the only place that
|
|
4
|
+
agent's data is written; the code reads it at runtime. `shared.json` lists the
|
|
5
|
+
agents in menu order and holds what is truly shared: the packaged model list,
|
|
6
|
+
the default gateway, model capabilities, and the settings every agent uses
|
|
7
|
+
(`GATEWAY_URL`, `API_KEY`, `MODEL`, `MAX_CONCURRENT_SUBAGENTS`).
|
|
8
|
+
|
|
9
|
+
| Agent | Launch | Setup |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| `subconscious-code` (Marathon) | binary | `install.sh` (binary installer) |
|
|
12
|
+
| `claude-code` | binary | `install.sh` (leftover status/uninstall) |
|
|
13
|
+
| `codex` | `run.sh` | `install.sh` (hooks) |
|
|
14
|
+
| `opencode` | binary | `install.sh` (leftover status/uninstall) |
|
|
15
|
+
| `cursor` | none | `install.sh` (hooks) |
|
|
16
|
+
| `copilot` | none | `install.sh` (provider and hooks) |
|
|
17
|
+
| `pi` | `run.sh` | `install.sh` (provider and extensions) |
|
|
18
|
+
| `deepseek-harness` | `run.sh` | none |
|
|
19
|
+
|
|
20
|
+
## What `agent.json` holds and who reads it
|
|
21
|
+
|
|
22
|
+
| Field | Read by |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `id`, `command`, `aliases`, `name`, `description` | routing, `subc help`, the TUI menu |
|
|
25
|
+
| `install` | the installer prompt, `--version` warning (`minimum_version`), Windows installs; `{package}` fills in the commands |
|
|
26
|
+
| `runbook` | which script launches the agent (none means the binary is run directly) and which setup actions exist |
|
|
27
|
+
| `help` | `subc <agent> help`; flags with a `help` text are added from `inputs` |
|
|
28
|
+
| `sessions`, `launch.resume`, `launch.handoff` | `subc sessions resume` |
|
|
29
|
+
| `launch.argv`, `launch.headless_argv`, `headless_stdin`, `headless_platforms` | every launch: subc builds the full argv and stdin from these |
|
|
30
|
+
| `inputs` | profile settings and the TUI (`label`, `type`, `min`, `max`, `choices`), the new-profile template, launch flags (`flag`), and defaults (`default`, `aliases`, `keep_empty`) |
|
|
31
|
+
| `env` | the env subc gives the agent: the first set `override`, otherwise `value` |
|
|
32
|
+
| `config` | `cli-config` entries become `config_flag NAME=VALUE` (Codex `-c`) when `when` holds; other entries describe files the runbooks write |
|
|
33
|
+
| `capabilities`, `prerequisites` | the harness manifest only |
|
|
34
|
+
|
|
35
|
+
Values may use `{baseUrl}`, `{baseUrlV1}`, `{apiKey}`, `{model}`, `{prompt}`,
|
|
36
|
+
`{args}`, `{config}`, and `${NAME}` for another input or env entry.
|
|
37
|
+
`subc harness-manifest --json` prints every agent file with `${NAME}` replaced
|
|
38
|
+
by its default, so readers such as bench-runner parse JSON instead of these
|
|
39
|
+
scripts.
|
|
40
|
+
|
|
41
|
+
## The runbook contract
|
|
42
|
+
|
|
43
|
+
subc starts a runbook as `bash run.sh ARGV...`, where `ARGV` is the agent's
|
|
44
|
+
complete command line. The env already holds every input with its default,
|
|
45
|
+
every `env` entry, `SUBC_MODEL_IDS` (launch model first, then the catalog),
|
|
46
|
+
and `SUBC_VISION_MODELS`. A runbook does its own work, such as writing a
|
|
47
|
+
temporary file, and ends with `subc_exec` from `lib.sh`, which replaces a
|
|
48
|
+
`{tempFile}` placeholder in the template words and execs the agent. A runbook
|
|
49
|
+
declares no defaults, flags, or argv of its own.
|
|
50
|
+
|
|
51
|
+
Setup scripts (`install.sh`) get the same inputs and keep their own
|
|
52
|
+
`install|status|uninstall` command line.
|
|
53
|
+
|
|
54
|
+
## Adding or changing an agent
|
|
55
|
+
|
|
56
|
+
1. Create `bin/runbook/<id>/agent.json` (copy the closest agent) and add the
|
|
57
|
+
id to `shared.json`.
|
|
58
|
+
2. Add `run.sh` only if the launch must do work subc cannot express as data,
|
|
59
|
+
such as writing a file; otherwise leave `runbook.script` out.
|
|
60
|
+
3. Run `npm test`. `test/agent-files.test.js` validates every agent file and
|
|
61
|
+
renders each launch template.
|
|
62
|
+
|
|
63
|
+
To change a default, flag, env value, argv, or help text, edit the agent file.
|
|
64
|
+
The launcher, profiles, help, Windows launcher, and manifest all read it. The
|
|
65
|
+
contents of files a runbook writes (the Codex catalog, Pi's provider, the
|
|
66
|
+
DeepSeek Harness overlay, Copilot's provider) live in that script, and on
|
|
67
|
+
Windows in `bin/windows/launch.js` and `bin/windows/setup.js`, whose Codex
|
|
68
|
+
`-c` list also differs from the one in `agent.json`.
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "claude-code",
|
|
3
|
+
"command": "claude",
|
|
4
|
+
"aliases": ["claude-code", "claudecode"],
|
|
5
|
+
"name": "Claude Code",
|
|
6
|
+
"description": "Run Claude Code on your hosted Subconscious model with gateway env, context limits, and telemetry.",
|
|
7
|
+
"protocol": "anthropic",
|
|
8
|
+
"homepage": "https://docs.anthropic.com/en/docs/claude-code",
|
|
9
|
+
"install": {
|
|
10
|
+
"commands": {
|
|
11
|
+
"darwin": "curl -fsSL https://claude.ai/install.sh | bash",
|
|
12
|
+
"linux": "curl -fsSL https://claude.ai/install.sh | bash",
|
|
13
|
+
"win32": "powershell -ExecutionPolicy Bypass -Command \"irm https://claude.ai/install.ps1 | iex\"",
|
|
14
|
+
"fallback": "npm i -g {package}"
|
|
15
|
+
},
|
|
16
|
+
"method": "script",
|
|
17
|
+
"package": "@anthropic-ai/claude-code",
|
|
18
|
+
"version": null,
|
|
19
|
+
"channel": "installer default (unpinned)",
|
|
20
|
+
"minimum_version": "2.1.242",
|
|
21
|
+
"verified": true,
|
|
22
|
+
"note": "subc warns, and does not block, below minimum_version."
|
|
23
|
+
},
|
|
24
|
+
"runbook": {
|
|
25
|
+
"mode": "launch",
|
|
26
|
+
"setup_script": "install.sh",
|
|
27
|
+
"setup_actions": ["status", "uninstall"]
|
|
28
|
+
},
|
|
29
|
+
"help": {
|
|
30
|
+
"usage": "subc [-p NAME] claude [help|status|uninstall] [Claude arguments...]",
|
|
31
|
+
"behavior": "Launches Claude Code with the active Subconscious profile and model picker. Persistent files are leftover-only: subc claude uninstall.",
|
|
32
|
+
"options": [
|
|
33
|
+
["help", "Show this help"],
|
|
34
|
+
["status", "Inspect leftover ~/.claude/subconscious-gateway.env"],
|
|
35
|
+
["uninstall", "Remove leftover ~/.claude/subconscious-gateway.env"],
|
|
36
|
+
["--model MODEL", "Override the profile model for this launch"]
|
|
37
|
+
],
|
|
38
|
+
"args": ["-- ARGS...", "Pass remaining arguments to Claude Code"]
|
|
39
|
+
},
|
|
40
|
+
"sessions": { "key": "claude", "portable": true },
|
|
41
|
+
"prerequisites": [],
|
|
42
|
+
"launch": {
|
|
43
|
+
"argv": ["claude", "--settings", "${SUBC_CLAUDE_SETTINGS}", "{args}"],
|
|
44
|
+
"headless_argv": [
|
|
45
|
+
"claude",
|
|
46
|
+
"--settings",
|
|
47
|
+
"${SUBC_CLAUDE_SETTINGS}",
|
|
48
|
+
"{args}",
|
|
49
|
+
"-p",
|
|
50
|
+
"--",
|
|
51
|
+
"{prompt}"
|
|
52
|
+
],
|
|
53
|
+
"headless_platforms": ["darwin", "linux"],
|
|
54
|
+
"resume": ["--resume", "{sessionId}"],
|
|
55
|
+
"handoff": ["{prompt}"],
|
|
56
|
+
"persistent_setup": false
|
|
57
|
+
},
|
|
58
|
+
"inputs": [
|
|
59
|
+
{
|
|
60
|
+
"name": "GATEWAY_URL",
|
|
61
|
+
"flag": "--gateway-url",
|
|
62
|
+
"metavar": "URL"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "CLAUDE_GATEWAY_URL",
|
|
66
|
+
"label": "Claude gateway override",
|
|
67
|
+
"description": "Optional Claude-only gateway origin; blank uses GATEWAY_URL.",
|
|
68
|
+
"type": "url",
|
|
69
|
+
"comment": "Leave CLAUDE_GATEWAY_URL blank to use GATEWAY_URL above."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "CLAUDE_CODE_API_KEY",
|
|
73
|
+
"flag": "--api-key",
|
|
74
|
+
"metavar": "KEY",
|
|
75
|
+
"label": "Claude API key",
|
|
76
|
+
"description": "Claude-specific credential override; blank uses API_KEY.",
|
|
77
|
+
"type": "secret"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "CLAUDE_CODE_SUBAGENT_MODEL",
|
|
81
|
+
"default": "{model}",
|
|
82
|
+
"unset_words": true,
|
|
83
|
+
"export": true,
|
|
84
|
+
"label": "Subagent model",
|
|
85
|
+
"description": "Model used by Claude Code subagents. UNSET follows the default model.",
|
|
86
|
+
"type": "model",
|
|
87
|
+
"comment": "CLAUDE_CODE_SUBAGENT_MODEL=UNSET follows MODEL above."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW",
|
|
91
|
+
"default": 1000000,
|
|
92
|
+
"aliases": ["COMPACT_WINDOW"],
|
|
93
|
+
"export": true,
|
|
94
|
+
"flag": "--compact-window",
|
|
95
|
+
"metavar": "N",
|
|
96
|
+
"help": "Override the Claude auto-compact window",
|
|
97
|
+
"label": "Auto-compact window",
|
|
98
|
+
"description": "Claude token window before compaction (100000–1000000).",
|
|
99
|
+
"type": "integer",
|
|
100
|
+
"min": 100000,
|
|
101
|
+
"max": 1000000
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "CLAUDE_CODE_MAX_CONTEXT_TOKENS",
|
|
105
|
+
"default": 3000000,
|
|
106
|
+
"aliases": ["MAX_CONTEXT_TOKENS"],
|
|
107
|
+
"export": true,
|
|
108
|
+
"flag": "--max-context-tokens",
|
|
109
|
+
"metavar": "N",
|
|
110
|
+
"help": "Override the maximum context tokens",
|
|
111
|
+
"label": "Maximum context tokens",
|
|
112
|
+
"description": "Maximum context advertised to Claude Code.",
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"min": 1
|
|
115
|
+
},
|
|
116
|
+
{ "name": "MAX_CONCURRENT_SUBAGENTS" },
|
|
117
|
+
{
|
|
118
|
+
"name": "MAX_SUBAGENT_SPAWN_DEPTH",
|
|
119
|
+
"default": 1,
|
|
120
|
+
"label": "Subagent spawn depth",
|
|
121
|
+
"description": "Maximum Claude subagent nesting depth.",
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"min": 0
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"env": [
|
|
127
|
+
{
|
|
128
|
+
"name": "ANTHROPIC_BASE_URL",
|
|
129
|
+
"value": "{baseUrl}",
|
|
130
|
+
"override": ["CLAUDE_GATEWAY_URL"],
|
|
131
|
+
"description": "Anthropic Messages endpoint origin."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "ANTHROPIC_AUTH_TOKEN",
|
|
135
|
+
"value": "{apiKey}",
|
|
136
|
+
"description": "Bearer credential. ANTHROPIC_API_KEY is not set."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "ANTHROPIC_MODEL",
|
|
140
|
+
"value": "{model}",
|
|
141
|
+
"override": ["ANTHROPIC_MODEL"],
|
|
142
|
+
"description": "Main model."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "ANTHROPIC_SMALL_FAST_MODEL",
|
|
146
|
+
"value": "{model}",
|
|
147
|
+
"override": ["ANTHROPIC_SMALL_FAST_MODEL"],
|
|
148
|
+
"description": "Small/fast background model."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY",
|
|
152
|
+
"value": "0",
|
|
153
|
+
"description": "Turns off gateway model discovery; the picker comes from --settings."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "CLAUDE_CODE_AUTO_MODE_SERVER",
|
|
157
|
+
"value": "0",
|
|
158
|
+
"description": "Runs the auto-mode classifier locally: gateway upstreams cannot perform Anthropic's server-side check (https://code.claude.com/docs/en/auto-mode-classifier-billing)."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS",
|
|
162
|
+
"value": "${MAX_CONCURRENT_SUBAGENTS}",
|
|
163
|
+
"description": "Concurrent subagents."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH",
|
|
167
|
+
"value": "${MAX_SUBAGENT_SPAWN_DEPTH}",
|
|
168
|
+
"description": "Subagent nesting depth."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "CLAUDE_CODE_ENABLE_TELEMETRY",
|
|
172
|
+
"value": "1",
|
|
173
|
+
"override": ["CLAUDE_CODE_ENABLE_TELEMETRY"],
|
|
174
|
+
"description": "Enables OTEL api_request logs, which the gateway uses for purpose attribution (https://code.claude.com/docs/en/monitoring-usage#api-request-event)."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
|
|
178
|
+
"value": "1",
|
|
179
|
+
"override": ["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"],
|
|
180
|
+
"description": "Disables non-essential network traffic."
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "ENABLE_CLAUDEAI_MCP_SERVERS",
|
|
184
|
+
"value": "false",
|
|
185
|
+
"description": "Disables claude.ai connectors, which need subscription OAuth and cannot run against the gateway."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "OTEL_LOGS_EXPORTER",
|
|
189
|
+
"value": "otlp",
|
|
190
|
+
"override": ["OTEL_LOGS_EXPORTER"],
|
|
191
|
+
"description": "Log exporter. OTEL_TRACES_EXPORTER and OTEL_METRICS_EXPORTER are never set: Claude's telemetry init can abort on an exporter type it does not know."
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "OTEL_EXPORTER_OTLP_PROTOCOL",
|
|
195
|
+
"value": "http/json",
|
|
196
|
+
"override": ["OTEL_EXPORTER_OTLP_PROTOCOL"],
|
|
197
|
+
"description": "OTLP protocol."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "OTEL_EXPORTER_OTLP_LOGS_ENDPOINT",
|
|
201
|
+
"value": "${ANTHROPIC_BASE_URL}/v1/logs",
|
|
202
|
+
"description": "Gateway log endpoint."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "OTEL_EXPORTER_OTLP_HEADERS",
|
|
206
|
+
"value": "x-api-key={apiKey}",
|
|
207
|
+
"description": "Credential on log export."
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "OTEL_EXPORTER_OTLP_TIMEOUT",
|
|
211
|
+
"value": "2000",
|
|
212
|
+
"override": ["OTEL_EXPORTER_OTLP_TIMEOUT"],
|
|
213
|
+
"description": "Export timeout in ms."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "OTEL_LOGS_EXPORT_INTERVAL",
|
|
217
|
+
"value": "2000",
|
|
218
|
+
"override": ["OTEL_LOGS_EXPORT_INTERVAL"],
|
|
219
|
+
"description": "Export interval in ms."
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"config": [
|
|
223
|
+
{
|
|
224
|
+
"kind": "cli-flag",
|
|
225
|
+
"name": "--settings",
|
|
226
|
+
"lifetime": "launch",
|
|
227
|
+
"value": {
|
|
228
|
+
"availableModels": "{catalog}",
|
|
229
|
+
"modelPicker": {
|
|
230
|
+
"replaceBuiltInOptions": true,
|
|
231
|
+
"options": "one entry per catalog model"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"description": "Replaces the built-in model picker with the live catalog and allowlists only those models."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "file",
|
|
238
|
+
"path": "~/.claude/subconscious-gateway.env",
|
|
239
|
+
"lifetime": "legacy",
|
|
240
|
+
"description": "Written only by older persistent setup. subc claude uninstall removes it; launch never writes it."
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"capabilities": {
|
|
244
|
+
"compaction": {
|
|
245
|
+
"default": "on",
|
|
246
|
+
"on": {
|
|
247
|
+
"set_by_subc": true,
|
|
248
|
+
"kind": "env",
|
|
249
|
+
"name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW",
|
|
250
|
+
"value": "${CLAUDE_CODE_AUTO_COMPACT_WINDOW}",
|
|
251
|
+
"verified": true,
|
|
252
|
+
"note": "Auto-compaction stays on; subc only moves the window."
|
|
253
|
+
},
|
|
254
|
+
"off": {
|
|
255
|
+
"set_by_subc": false,
|
|
256
|
+
"kind": "env",
|
|
257
|
+
"name": "DISABLE_AUTO_COMPACT",
|
|
258
|
+
"value": "1",
|
|
259
|
+
"verified": false,
|
|
260
|
+
"note": "Upstream Claude Code variable. subc never sets it, and this repo does not confirm its behaviour."
|
|
261
|
+
},
|
|
262
|
+
"threshold": {
|
|
263
|
+
"set_by_subc": true,
|
|
264
|
+
"kind": "env",
|
|
265
|
+
"name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW",
|
|
266
|
+
"value": "${CLAUDE_CODE_AUTO_COMPACT_WINDOW}",
|
|
267
|
+
"verified": true,
|
|
268
|
+
"semantics": "window",
|
|
269
|
+
"range": {
|
|
270
|
+
"verified": false,
|
|
271
|
+
"note": "The bounds of the profile setting, from the Claude Code docs (https://code.claude.com/docs/en/context-window#set-the-auto-compact-window). A launch value is not clamped."
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"mcp": {
|
|
276
|
+
"configured_by_subc": false,
|
|
277
|
+
"transports": null,
|
|
278
|
+
"verified": false,
|
|
279
|
+
"note": "subc adds no MCP servers. It disables claude.ai connectors with ENABLE_CLAUDEAI_MCP_SERVERS=false. User MCP config is left alone."
|
|
280
|
+
},
|
|
281
|
+
"headers": [
|
|
282
|
+
{
|
|
283
|
+
"name": "x-api-key",
|
|
284
|
+
"value": "{apiKey}",
|
|
285
|
+
"on": "OTLP log export to {baseUrl}/v1/logs",
|
|
286
|
+
"set_by_subc": true,
|
|
287
|
+
"verified": true
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "x-claude-code-session-id",
|
|
291
|
+
"value": "session ID",
|
|
292
|
+
"on": "model requests",
|
|
293
|
+
"set_by_subc": false,
|
|
294
|
+
"verified": false,
|
|
295
|
+
"note": "Sent by Claude Code itself, per a comment in install.sh. Not set by subc."
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"hooks": []
|
|
299
|
+
}
|
|
300
|
+
}
|