nex-code 0.4.16 → 0.4.18

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 (3) hide show
  1. package/README.md +57 -32
  2. package/dist/nex-code.js +693 -511
  3. package/package.json +7 -1
package/README.md CHANGED
@@ -1,13 +1,16 @@
1
- ```
2
- ██▄▄██ nex-code v0.3.54
3
- █▀██▀█ devstral-2:123b · /help
4
- ▀████▀
5
- ```
1
+ <h1 align="center">nex-code</h1>
2
+
3
+ <p align="center">
4
+ <b>Run 400B+ open coding models on your codebase — without the hardware bill.</b><br>
5
+ Ollama Cloud first. OpenAI, Anthropic, and Gemini when you need them.
6
+ </p>
7
+
8
+ <p align="center">
9
+ <code>npx nex-code</code>
10
+ </p>
6
11
 
7
12
  <p align="center">
8
- <b>The open-source agentic coding CLI for Ollama Cloud.</b><br>
9
- Use it in the terminal or install the built-in <b>VS Code extension</b> for a sidebar chat panel.<br>
10
- Built and optimized for <a href="https://ollama.com">Ollama Cloud</a> — OpenAI, Anthropic, and Gemini are also supported.
13
+ <a href="https://github.com/hybridpicker/nex-code/stargazers">⭐ If this saves you time, a star helps others find it.</a>
11
14
  </p>
12
15
 
13
16
  <p align="center">
@@ -25,6 +28,14 @@
25
28
 
26
29
  ---
27
30
 
31
+ ```
32
+ ██▄▄██ nex-code v0.3.54
33
+ █▀██▀█ devstral-2:123b · /help
34
+ ▀████▀
35
+ ```
36
+
37
+ ---
38
+
28
39
  ## Demo
29
40
 
30
41
  https://github.com/user-attachments/assets/6a70525c-a1a4-4c6f-9784-176cb1becc15
@@ -65,6 +76,21 @@ npm update -g nex-code
65
76
 
66
77
  ---
67
78
 
79
+ ## vs. Claude Code & Gemini CLI
80
+
81
+ | | nex-code | Claude Code | Gemini CLI |
82
+ |---|---|---|---|
83
+ | Free tier | ✅ Ollama Cloud flat-rate | ❌ subscription required | ⚠️ limited free quota |
84
+ | Open models | ✅ devstral, Kimi K2, Qwen3 | ❌ Anthropic only | ❌ Google only |
85
+ | Local Ollama | ✅ | ❌ | ❌ |
86
+ | Multi-provider | ✅ swap with one env var | ❌ | ❌ |
87
+ | VS Code sidebar | ✅ built-in, same install | ✅ | ❌ |
88
+ | Startup time | ~100ms | ~2–4s | ~1–2s |
89
+ | Runtime deps | 2 | heavy | heavy |
90
+ | Infra tools | ✅ SSH, Docker, K8s built-in | ❌ | ❌ |
91
+
92
+ ---
93
+
68
94
  ## Why nex-code?
69
95
 
70
96
  **Ollama Cloud first.** nex-code is built and optimized for [Ollama Cloud](https://ollama.com) — the flat-rate platform that runs devstral, Kimi K2, Qwen3-Coder, and 47+ other open models. All behavioral tuning (loop detection, context compression, tool-call repair) is done against real Ollama Cloud sessions. Other providers (OpenAI, Anthropic, Gemini) work via the same interface but are not the primary target.
@@ -119,19 +145,18 @@ Rankings are based on nex-code's own `/benchmark` — 15 tool-calling tasks agai
119
145
  ### Flat-Rate / Pay-as-you-go
120
146
 
121
147
  <!-- nex-benchmark-start -->
122
- <!-- Updated: 2026-03-20 — run `/benchmark --discover` after new Ollama Cloud releases -->
148
+ <!-- Updated: 2026-03-26 — run `/benchmark --discover` after new Ollama Cloud releases -->
123
149
 
124
- | Rank | Model | Score | Avg Latency | Context | Best For |
125
- | ---- | ---------------------- | ------ | ----------- | ------- | ----------------------------------------------------- |
126
- | 🥇 | `devstral-2:123b` | **84** | 1.5s | 131K | Default — fastest + most reliable tool selection |
127
- | 🥈 | `qwen3-coder:480b` | 79 | 2.9s | 131K | Coding-heavy sessions, heavy sub-agents |
128
- | 🥉 | `kimi-k2:1t` | 79 | 2.7s | 256K | Large repos (>100K tokens) |
129
- | — | `minimax-m2.7:cloud` | 73 | 3.5s | 200K | Complex swarm / multi-agent sessions (Toolathon SOTA) |
130
- | — | `devstral-small-2:24b` | 73 | 1.0s | 131K | Fast sub-agents, simple lookups |
150
+ | Rank | Model | Score | Avg Latency | Context | Best For |
151
+ |---|---|---|---|---|---|
152
+ | 🥇 | `devstral-2:123b` | **82.5** | 1.7s | 131K | Default — fastest + most reliable tool selection |
153
+ | 🥈 | `devstral-small-2:24b` | 75 | 3.1s | 131K | Fast sub-agents, simple lookups |
154
+ | 🥉 | `qwen3-coder:480b` | 72.5 | 8.4s | 131K | Coding-heavy sessions, heavy sub-agents |
155
+ | — | `kimi-k2:1t` | 67.5 | 6.6s | 256K | Large repos (>100K tokens) |
156
+ | — | `minimax-m2.7:cloud` | 64.1 | 5.0s | 200K | Complex swarm / multi-agent sessions (Toolathon SOTA) |
131
157
 
132
158
  > Rankings are nex-code-specific: tool name accuracy, argument validity, schema compliance.
133
159
  > Toolathon (Minimax SOTA) measures different task types — run `/benchmark --discover` after model releases.
134
-
135
160
  <!-- nex-benchmark-end -->
136
161
 
137
162
  ### Recommended `.env` for Ollama Cloud (Flat-Rate)
@@ -344,7 +369,7 @@ nex-code --prompt-file /tmp/task.txt --yolo --json
344
369
  | `--max-turns <n>` | Override the agentic loop iteration limit |
345
370
  | `--model <spec>` | Use a specific model (e.g. `anthropic:claude-sonnet-4-6`) |
346
371
  | `--debug` | Show internal diagnostic messages (compression, loop detection, guards) |
347
- | `--auto-orchestrate` | Automatically use the multi-agent orchestrator when ≥3 goals are detected (also: `NEX_AUTO_ORCHESTRATE=true`) |
372
+ | `--no-auto-orchestrate` | Disable auto-orchestration for multi-goal prompts (on by default; also: `NEX_AUTO_ORCHESTRATE=false`) |
348
373
  | `--orchestrator-model <m>` | Model for decomposition/synthesis step (default: `kimi-k2.5`) |
349
374
 
350
375
  ---
@@ -690,10 +715,10 @@ deploy the latest build to prod
690
715
  The agent loop uses a bouncing-ball spinner (`● · · · ·` → `· ● · · ·` → …) during tool execution, then prints compact 1-line summaries:
691
716
 
692
717
  ```
693
- ● ▸ 3 tools: read_file, grep, edit_file
694
- read_file src/app.js (45 lines)
695
- grep TODO → 12 matches
696
- ✗ edit_file src/x.js → old_text not found
718
+ Read, Grep, Edit
719
+ ⎿ Read 45 lines from app.js
720
+ ⎿ 12 matches "TODO"
721
+ old_text not found
697
722
  ```
698
723
 
699
724
  After multi-step tasks, a résumé and context-aware follow-up suggestions are shown:
@@ -947,7 +972,7 @@ When the agent creates a task list, a **live animated display** replaces the sta
947
972
  ◻ Run tests
948
973
  ```
949
974
 
950
- - Bouncing-ball spinner (`●` ping-pong across 5 positions) with elapsed time display
975
+ - Bouncing-ball spinner ( ping-pong across 5 positions) with elapsed time display
951
976
  - Per-task status icons: `✔` done, `◼` in progress, `◻` pending, `✗` failed
952
977
  - Automatically pauses during text streaming and resumes during tool execution
953
978
  - Falls back to the static `/tasks` view when no live display is active
@@ -965,19 +990,19 @@ Spawn parallel sub-agents for independent tasks:
965
990
 
966
991
  For complex tasks with multiple independent goals (e.g. "fix all TypeScript errors in auth/, add tests for utils/, and update the README"), the orchestrator decomposes the prompt into parallel sub-tasks, runs dedicated sub-agents on each, and synthesizes the results.
967
992
 
968
- **Trigger:**
993
+ **Auto-orchestration is on by default** for prompts with ≥3 goals.
969
994
 
970
995
  ```bash
971
- # One-off: pass flag on the CLI
972
- nex-code --auto-orchestrate --task "fix all type errors in src/, add JSDoc to utils/, update CHANGELOG"
996
+ # Just use it — multi-goal prompts auto-decompose into parallel agents
997
+ nex-code --task "fix all type errors in src/, add JSDoc to utils/, update CHANGELOG"
973
998
 
974
- # Headless with custom orchestrator model
975
- nex-code --auto-orchestrate --orchestrator-model kimi-k2.5 --task "..."
999
+ # Custom orchestrator model
1000
+ nex-code --orchestrator-model kimi-k2.5 --task "..."
976
1001
 
977
- # Always-on via env var
978
- NEX_AUTO_ORCHESTRATE=true nex-code
1002
+ # Disable auto-orchestration
1003
+ NEX_AUTO_ORCHESTRATE=false nex-code
979
1004
 
980
- # Set minimum goal count before orchestrator activates (default: 3)
1005
+ # Lower the goal threshold (default: 3)
981
1006
  NEX_ORCHESTRATE_THRESHOLD=2 nex-code
982
1007
  ```
983
1008
 
@@ -1013,7 +1038,7 @@ Suggested commit: fix: resolve auth type errors and add utility docs
1013
1038
 
1014
1039
  | Variable | Default | Description |
1015
1040
  | --------------------------- | ------- | ------------------------------------------------------- |
1016
- | `NEX_AUTO_ORCHESTRATE` | `false` | Set to `true` to always use the orchestrator |
1041
+ | `NEX_AUTO_ORCHESTRATE` | `true` | Set to `false` to disable auto-orchestration |
1017
1042
  | `NEX_ORCHESTRATE_THRESHOLD` | `3` | Minimum number of detected goals before auto-triggering |
1018
1043
 
1019
1044
  **Model roles in orchestration:**