claudish 7.7.4 → 7.8.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/AI_AGENT_GUIDE.md +9 -9
- package/dist/index.js +2486 -2213
- package/package.json +5 -5
package/AI_AGENT_GUIDE.md
CHANGED
|
@@ -137,7 +137,7 @@ Custom endpoints can be registered in `~/.claudish/config.json`. See [docs/setti
|
|
|
137
137
|
|
|
138
138
|
**Update models:**
|
|
139
139
|
```bash
|
|
140
|
-
claudish --models --
|
|
140
|
+
claudish --models --models-refresh
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
## Critical: File-Based Pattern for Sub-Agents
|
|
@@ -257,7 +257,7 @@ for (const model of models) {
|
|
|
257
257
|
| `--model <model>` | OpenRouter model to use | `--model x-ai/grok-code-fast-1` |
|
|
258
258
|
| `--stdin` | Read prompt from stdin | `cat task.md \| claudish --stdin --model grok` |
|
|
259
259
|
| `--json` | JSON output (structured) | `claudish --json "task"` |
|
|
260
|
-
| `--
|
|
260
|
+
| `--models` | List available models | `claudish --models --json` |
|
|
261
261
|
|
|
262
262
|
### Useful Flags
|
|
263
263
|
|
|
@@ -266,7 +266,7 @@ for (const model of models) {
|
|
|
266
266
|
| `--default-provider <name>` | Override default provider for bare model routing (v7.0.0+) | Auto-detected |
|
|
267
267
|
| `--quiet` / `-q` | Suppress logs | Enabled in single-shot |
|
|
268
268
|
| `--verbose` / `-v` | Show logs | Enabled in interactive |
|
|
269
|
-
| `--debug` / `-d` | Debug logging to file | Disabled |
|
|
269
|
+
| `--log-debug` / `-d` | Debug logging to file | Disabled |
|
|
270
270
|
| `--no-auto-approve` | Require prompts | Auto-approve enabled |
|
|
271
271
|
|
|
272
272
|
### Claude Code Flag Passthrough
|
|
@@ -438,7 +438,7 @@ Claude: [calls compare_models tool with models=["openai/gpt-5.3", "google/gemini
|
|
|
438
438
|
### JSON Output (Recommended)
|
|
439
439
|
|
|
440
440
|
```bash
|
|
441
|
-
claudish --
|
|
441
|
+
claudish --models --json
|
|
442
442
|
```
|
|
443
443
|
|
|
444
444
|
**Output:**
|
|
@@ -471,7 +471,7 @@ claudish --list-models --json
|
|
|
471
471
|
### Parse in TypeScript
|
|
472
472
|
|
|
473
473
|
```typescript
|
|
474
|
-
const { stdout } = await Bash("claudish --
|
|
474
|
+
const { stdout } = await Bash("claudish --models --json");
|
|
475
475
|
const data = JSON.parse(stdout);
|
|
476
476
|
|
|
477
477
|
// Get all model IDs
|
|
@@ -547,7 +547,7 @@ try {
|
|
|
547
547
|
} catch (error) {
|
|
548
548
|
if (error.message.includes("Model not found")) {
|
|
549
549
|
console.error("Model unavailable. Listing alternatives...");
|
|
550
|
-
await Bash("claudish --
|
|
550
|
+
await Bash("claudish --models");
|
|
551
551
|
} else {
|
|
552
552
|
console.error("Claudish error:", error.message);
|
|
553
553
|
}
|
|
@@ -609,7 +609,7 @@ console.log(`Total cost: $${totalCost.toFixed(4)}`);
|
|
|
609
609
|
3. **Use --json output** for automation and parsing
|
|
610
610
|
4. **Handle errors gracefully** with fallbacks
|
|
611
611
|
5. **Track costs** when running multiple tasks
|
|
612
|
-
6. **Update models regularly** with `--
|
|
612
|
+
6. **Update models regularly** with `--models-refresh`
|
|
613
613
|
7. **Use --stdin** for large prompts (git diffs, code review)
|
|
614
614
|
|
|
615
615
|
### ❌ DON'T
|
|
@@ -628,7 +628,7 @@ console.log(`Total cost: $${totalCost.toFixed(4)}`);
|
|
|
628
628
|
npm install -g claudish
|
|
629
629
|
|
|
630
630
|
# Get models
|
|
631
|
-
claudish --
|
|
631
|
+
claudish --models --json
|
|
632
632
|
|
|
633
633
|
# Run task
|
|
634
634
|
claudish --model x-ai/grok-code-fast-1 "your task"
|
|
@@ -640,7 +640,7 @@ git diff | claudish --stdin --model google/gemini-2.5-flash "review"
|
|
|
640
640
|
claudish --json --model grok "task" | jq -r '.total_cost_usd'
|
|
641
641
|
|
|
642
642
|
# Update models
|
|
643
|
-
claudish --
|
|
643
|
+
claudish --models --models-refresh
|
|
644
644
|
|
|
645
645
|
# Get help
|
|
646
646
|
claudish --help
|