@inference-gateway/cli 0.132.0 → 0.132.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 +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -328,6 +328,9 @@ claude_code:
|
|
|
328
328
|
timeout: 600 # Command timeout in seconds
|
|
329
329
|
max_output_tokens: 32000 # Maximum output tokens per request
|
|
330
330
|
thinking_budget: 10000 # Token budget for extended thinking
|
|
331
|
+
extra_args: # Extra arguments appended verbatim to the claude CLI invocation
|
|
332
|
+
- --max-turns
|
|
333
|
+
- "5"
|
|
331
334
|
```
|
|
332
335
|
|
|
333
336
|
**Environment Variables:**
|
|
@@ -336,6 +339,27 @@ claude_code:
|
|
|
336
339
|
export INFER_CLAUDE_CODE_ENABLED=true
|
|
337
340
|
export INFER_CLAUDE_CODE_CLI_PATH=/usr/local/bin/claude
|
|
338
341
|
export INFER_CLAUDE_CODE_TIMEOUT=600
|
|
342
|
+
export INFER_CLAUDE_CODE_EXTRA_ARGS="--max-turns,5" # comma/newline-separated; wins over --claude-code-extra-args
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
**Pass-through behavior:**
|
|
346
|
+
|
|
347
|
+
Claude Code mode is a pure pass-through: infer does not inject its system prompt, context blocks, or
|
|
348
|
+
system reminders, and does not re-execute claude's tool calls locally - claude runs with its own
|
|
349
|
+
defaults and native tools. Infer's `prompts.yaml` and `reminders.yaml` do not apply in this mode.
|
|
350
|
+
|
|
351
|
+
To add instructions on top of claude's built-in system prompt (passed via `--append-system-prompt`),
|
|
352
|
+
set the dedicated prompt in `.infer/prompts.yaml` (empty by default):
|
|
353
|
+
|
|
354
|
+
```yaml
|
|
355
|
+
agent:
|
|
356
|
+
system_prompt_claude_code: "Always answer in English."
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
Or via environment variable:
|
|
360
|
+
|
|
361
|
+
```bash
|
|
362
|
+
export INFER_PROMPTS_AGENT_SYSTEM_PROMPT_CLAUDE_CODE="Always answer in English."
|
|
339
363
|
```
|
|
340
364
|
|
|
341
365
|
### Features and Limitations
|