@rayss-dev/openclaude 0.30.3-by-rayss → 0.30.4-by-rayss
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/config/defaults/CLAUDE.md +90 -4
- package/config/settings-schema.json +59 -3
- package/dist/acp.mjs +234 -71
- package/dist/cli.mjs +30 -29
- package/dist/sdk.mjs +169 -38
- package/package.json +1 -1
|
@@ -19,10 +19,17 @@
|
|
|
19
19
|
|
|
20
20
|
## Tool Selection — MCP FIRST
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
Before any built-in tool, name the job and check the MCP servers configured
|
|
23
|
+
in this session. Built-in is the fallback, not the default.
|
|
24
|
+
|
|
25
|
+
1. State the job in one phrase ("fetch a page", "search this repo").
|
|
26
|
+
2. Check which MCP tools are available — their names show which server they
|
|
27
|
+
come from. Load a schema first if a tool is still deferred, because
|
|
28
|
+
deferred tools are names only until loaded.
|
|
29
|
+
3. If an MCP tool fits, call it.
|
|
30
|
+
4. Only if none fits, use the built-in tool and say why in one line.
|
|
31
|
+
|
|
32
|
+
Never reference an MCP server that is not configured in this session.
|
|
26
33
|
|
|
27
34
|
## Coding Best Practices
|
|
28
35
|
|
|
@@ -56,3 +63,82 @@
|
|
|
56
63
|
If restating is unavoidable, say it once and move on.
|
|
57
64
|
- Long tool-driven sessions: after the last tool call succeeds, summarize
|
|
58
65
|
once and stop. Do not emit a second "everything is done" recap.
|
|
66
|
+
|
|
67
|
+
# CLAUDE.md
|
|
68
|
+
|
|
69
|
+
Behavioral guidelines to reduce common LLM mistakes. Applies to every task —
|
|
70
|
+
coding, research, writing, analysis, data work. Merge with project-specific
|
|
71
|
+
instructions as needed.
|
|
72
|
+
|
|
73
|
+
**Tradeoff:** Bias toward investigating before asking. For trivial tasks, use
|
|
74
|
+
judgment.
|
|
75
|
+
|
|
76
|
+
## 0. Explore Before Asking
|
|
77
|
+
|
|
78
|
+
Gather context first: read the relevant files, search the repo, check docs and
|
|
79
|
+
history, inspect the data. Investigating is always allowed and expected.
|
|
80
|
+
|
|
81
|
+
Never stop to ask a question you could answer by looking.
|
|
82
|
+
|
|
83
|
+
## 1. Think Before Acting
|
|
84
|
+
|
|
85
|
+
**Don't assume. Don't hide confusion. Surface tradeoffs.**
|
|
86
|
+
|
|
87
|
+
Before producing anything:
|
|
88
|
+
- State your assumptions explicitly, then verify them against the available
|
|
89
|
+
material. If you can check it yourself, do not ask.
|
|
90
|
+
- If multiple interpretations exist, present them - don't pick silently.
|
|
91
|
+
- If a simpler approach exists, say so. Push back when warranted.
|
|
92
|
+
- If something is still unclear after investigating, name what is confusing
|
|
93
|
+
and ask.
|
|
94
|
+
|
|
95
|
+
## 2. Simplicity First
|
|
96
|
+
|
|
97
|
+
**Minimum output that solves the problem. Nothing speculative.**
|
|
98
|
+
|
|
99
|
+
- No features beyond what was asked.
|
|
100
|
+
- No abstractions or helpers for one-off cases.
|
|
101
|
+
- No "flexibility" or "configurability" that wasn't requested.
|
|
102
|
+
- No handling for scenarios that cannot happen.
|
|
103
|
+
- If you write 200 lines and it could be 50, rewrite it.
|
|
104
|
+
|
|
105
|
+
Ask yourself: "Would a senior practitioner call this overcomplicated?" If yes, simplify.
|
|
106
|
+
|
|
107
|
+
## 3. Surgical Changes
|
|
108
|
+
|
|
109
|
+
**Touch only what you must. Clean up only your own mess.**
|
|
110
|
+
|
|
111
|
+
When editing existing material:
|
|
112
|
+
- Don't "improve" adjacent content, comments, or formatting.
|
|
113
|
+
- Don't rewrite things that aren't broken.
|
|
114
|
+
- Match existing style, even if you'd do it differently.
|
|
115
|
+
- If you notice unrelated dead weight, mention it - don't delete it.
|
|
116
|
+
|
|
117
|
+
When your changes create orphans:
|
|
118
|
+
- Remove the imports, variables, or helpers your changes made unused.
|
|
119
|
+
- Don't remove pre-existing leftovers unless asked.
|
|
120
|
+
|
|
121
|
+
The test: Every changed line should trace directly to the user's request.
|
|
122
|
+
|
|
123
|
+
## 4. Goal-Driven Execution
|
|
124
|
+
|
|
125
|
+
**Define success criteria. Loop until verified.**
|
|
126
|
+
|
|
127
|
+
Transform tasks into verifiable goals:
|
|
128
|
+
- "Add validation" → "Write tests for invalid inputs, then make them pass"
|
|
129
|
+
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
|
|
130
|
+
- "Summarize this source" → "Every claim traceable to a line in the source"
|
|
131
|
+
- "Refactor X" → "Ensure tests pass before and after"
|
|
132
|
+
|
|
133
|
+
For multi-step tasks, state a brief plan:
|
|
134
|
+
```
|
|
135
|
+
1. [Step] → verify: [check]
|
|
136
|
+
2. [Step] → verify: [check]
|
|
137
|
+
3. [Step] → verify: [check]
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and questions come after investigation rather than before it.
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
"const": "hostPattern"
|
|
856
856
|
},
|
|
857
857
|
"hostPattern": {
|
|
858
|
-
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\").",
|
|
858
|
+
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\"). The pattern must match the ENTIRE host: it is anchored before use, so \"github\\.mycompany\\.com\" cannot be satisfied by a lookalike host such as \"github.mycompany.com.evil.example\". Use an explicit wildcard (e.g. \".*\\.mycompany\\.com\") to allow subdomains.",
|
|
859
859
|
"type": "string"
|
|
860
860
|
}
|
|
861
861
|
},
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
"const": "hostPattern"
|
|
1301
1301
|
},
|
|
1302
1302
|
"hostPattern": {
|
|
1303
|
-
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\").",
|
|
1303
|
+
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\"). The pattern must match the ENTIRE host: it is anchored before use, so \"github\\.mycompany\\.com\" cannot be satisfied by a lookalike host such as \"github.mycompany.com.evil.example\". Use an explicit wildcard (e.g. \".*\\.mycompany\\.com\") to allow subdomains.",
|
|
1304
1304
|
"type": "string"
|
|
1305
1305
|
}
|
|
1306
1306
|
},
|
|
@@ -1731,7 +1731,7 @@
|
|
|
1731
1731
|
"const": "hostPattern"
|
|
1732
1732
|
},
|
|
1733
1733
|
"hostPattern": {
|
|
1734
|
-
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\").",
|
|
1734
|
+
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\"). The pattern must match the ENTIRE host: it is anchored before use, so \"github\\.mycompany\\.com\" cannot be satisfied by a lookalike host such as \"github.mycompany.com.evil.example\". Use an explicit wildcard (e.g. \".*\\.mycompany\\.com\") to allow subdomains.",
|
|
1735
1735
|
"type": "string"
|
|
1736
1736
|
}
|
|
1737
1737
|
},
|
|
@@ -2357,6 +2357,58 @@
|
|
|
2357
2357
|
"additionalProperties": false
|
|
2358
2358
|
}
|
|
2359
2359
|
},
|
|
2360
|
+
"modelPricing": {
|
|
2361
|
+
"description": "Exact-model pricing overrides. Token fields are USD per 1,000,000 tokens; webSearchRequests is USD per request and defaults to $0.01 when omitted. All four token fields are required. Keys are exact, case-sensitive resolved model ids. Shared project settings are ignored for personal USD accounting.",
|
|
2362
|
+
"type": "object",
|
|
2363
|
+
"propertyNames": {
|
|
2364
|
+
"type": "string",
|
|
2365
|
+
"minLength": 1,
|
|
2366
|
+
"maxLength": 512
|
|
2367
|
+
},
|
|
2368
|
+
"additionalProperties": {
|
|
2369
|
+
"type": "object",
|
|
2370
|
+
"properties": {
|
|
2371
|
+
"inputTokens": {
|
|
2372
|
+
"description": "Input-token price in USD per 1,000,000 tokens.",
|
|
2373
|
+
"type": "number",
|
|
2374
|
+
"minimum": 0,
|
|
2375
|
+
"maximum": 100000
|
|
2376
|
+
},
|
|
2377
|
+
"outputTokens": {
|
|
2378
|
+
"description": "Output-token price in USD per 1,000,000 tokens.",
|
|
2379
|
+
"type": "number",
|
|
2380
|
+
"minimum": 0,
|
|
2381
|
+
"maximum": 100000
|
|
2382
|
+
},
|
|
2383
|
+
"promptCacheReadTokens": {
|
|
2384
|
+
"description": "Prompt-cache read price in USD per 1,000,000 tokens.",
|
|
2385
|
+
"type": "number",
|
|
2386
|
+
"minimum": 0,
|
|
2387
|
+
"maximum": 100000
|
|
2388
|
+
},
|
|
2389
|
+
"promptCacheWriteTokens": {
|
|
2390
|
+
"description": "Prompt-cache write price in USD per 1,000,000 tokens.",
|
|
2391
|
+
"type": "number",
|
|
2392
|
+
"minimum": 0,
|
|
2393
|
+
"maximum": 100000
|
|
2394
|
+
},
|
|
2395
|
+
"webSearchRequests": {
|
|
2396
|
+
"description": "Web-search price in USD per request. Defaults to $0.01 when omitted.",
|
|
2397
|
+
"type": "number",
|
|
2398
|
+
"minimum": 0,
|
|
2399
|
+
"maximum": 1000
|
|
2400
|
+
}
|
|
2401
|
+
},
|
|
2402
|
+
"required": [
|
|
2403
|
+
"inputTokens",
|
|
2404
|
+
"outputTokens",
|
|
2405
|
+
"promptCacheReadTokens",
|
|
2406
|
+
"promptCacheWriteTokens"
|
|
2407
|
+
],
|
|
2408
|
+
"additionalProperties": false
|
|
2409
|
+
},
|
|
2410
|
+
"maxProperties": 256
|
|
2411
|
+
},
|
|
2360
2412
|
"apiRetry": {
|
|
2361
2413
|
"description": "Network retry policy. Use this to tune how OpenClaude handles rate limits (429), capacity issues (529) and transient errors — including unlimited retrying with a fixed delay to ride out a persistent rate limit.",
|
|
2362
2414
|
"type": "object",
|
|
@@ -2388,6 +2440,10 @@
|
|
|
2388
2440
|
"description": "When true, fast mode is enabled. When absent or false, fast mode is off.",
|
|
2389
2441
|
"type": "boolean"
|
|
2390
2442
|
},
|
|
2443
|
+
"skillSearch": {
|
|
2444
|
+
"description": "Enable skill search discovery — automatically finds relevant skills before tasks and exposes the DiscoverSkills tool. Default: false (off).",
|
|
2445
|
+
"type": "boolean"
|
|
2446
|
+
},
|
|
2391
2447
|
"fastModePerSessionOptIn": {
|
|
2392
2448
|
"description": "When true, fast mode does not persist across sessions. Each session starts with fast mode off.",
|
|
2393
2449
|
"type": "boolean"
|