You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace em dashes in CLAUDE.md context-mode section
The context-mode routing rules block used em dashes, which the Validate
workflow's content-quality check rejects. Swap all 16 em/en dashes for
hyphens per the repo's no-em-dash convention.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,35 +145,35 @@ Do not hand-edit `plugin.json` `version`, the README badge, or the `**Version:**
145
145
|`mcp-server/data/events.json`| Indexed canonical CFX event names and payloads |
146
146
|`mcp-server/data/docs_index.json`| Indexed `docs.fivem.net` snippets for offline search |
147
147
148
-
# context-mode — MANDATORY routing rules
148
+
# context-mode - MANDATORY routing rules
149
149
150
-
You have context-mode MCP tools available. These rules are NOT optional — they protect your context window from flooding. A single unrouted command can dump 56 KB into context and waste the entire session.
150
+
You have context-mode MCP tools available. These rules are NOT optional - they protect your context window from flooding. A single unrouted command can dump 56 KB into context and waste the entire session.
151
151
152
-
## BLOCKED commands — do NOT attempt these
152
+
## BLOCKED commands - do NOT attempt these
153
153
154
-
### curl / wget — BLOCKED
154
+
### curl / wget - BLOCKED
155
155
Any Bash command containing `curl` or `wget` is intercepted and replaced with an error message. Do NOT retry.
156
156
Instead use:
157
157
-`ctx_fetch_and_index(url, source)` to fetch and index web pages
158
158
-`ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
159
159
160
-
### Inline HTTP — BLOCKED
160
+
### Inline HTTP - BLOCKED
161
161
Any Bash command containing `fetch('http`, `requests.get(`, `requests.post(`, `http.get(`, or `http.request(` is intercepted and replaced with an error message. Do NOT retry with Bash.
162
162
Instead use:
163
-
-`ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
163
+
-`ctx_execute(language, code)` to run HTTP calls in sandbox - only stdout enters context
164
164
165
-
### WebFetch — BLOCKED
165
+
### WebFetch - BLOCKED
166
166
WebFetch calls are denied entirely. The URL is extracted and you are told to use `ctx_fetch_and_index` instead.
167
167
Instead use:
168
168
-`ctx_fetch_and_index(url, source)` then `ctx_search(queries)` to query the indexed content
169
169
170
-
## REDIRECTED tools — use sandbox equivalents
170
+
## REDIRECTED tools - use sandbox equivalents
171
171
172
172
### Bash (>20 lines output)
173
173
Bash is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
174
174
For everything else, use:
175
-
-`ctx_batch_execute(commands, queries)`— run multiple commands + search in ONE call
176
-
-`ctx_execute(language: "shell", code: "...")`— run in sandbox, only stdout enters context
175
+
-`ctx_batch_execute(commands, queries)`- run multiple commands + search in ONE call
176
+
-`ctx_execute(language: "shell", code: "...")`- run in sandbox, only stdout enters context
177
177
178
178
### Read (for analysis)
179
179
If you are reading a file to **Edit** it → Read is correct (Edit needs content in context).
@@ -184,11 +184,11 @@ Grep results can flood context. Use `ctx_execute(language: "shell", code: "grep
184
184
185
185
## Tool selection hierarchy
186
186
187
-
1.**GATHER**: `ctx_batch_execute(commands, queries)`— Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
188
-
2.**FOLLOW-UP**: `ctx_search(queries: ["q1", "q2", ...])`— Query indexed content. Pass ALL questions as array in ONE call.
0 commit comments