@inference-gateway/cli 0.132.0 → 0.133.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.
Files changed (2) hide show
  1. package/README.md +28 -0
  2. 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
@@ -467,6 +491,10 @@ infer init --userspace # Initialize user-level configuration
467
491
  # Terminal mode (default)
468
492
  infer chat
469
493
 
494
+ # Resume a previous chat session
495
+ infer conversations list # Find session IDs
496
+ infer chat --session-id abc-123-def
497
+
470
498
  # Web terminal mode with browser interface
471
499
  infer chat --web
472
500
  infer chat --web --port 8080 # Custom port
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inference-gateway/cli",
3
- "version": "0.132.0",
3
+ "version": "0.133.0",
4
4
  "description": "A Git-first CLI coding agent that turns ideas, issues, and tasks into real code changes.",
5
5
  "bin": {
6
6
  "infer": "bin/run.js"