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.
- package/README.md +57 -32
- package/dist/nex-code.js +693 -511
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
<
|
|
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-
|
|
148
|
+
<!-- Updated: 2026-03-26 — run `/benchmark --discover` after new Ollama Cloud releases -->
|
|
123
149
|
|
|
124
|
-
| Rank | Model
|
|
125
|
-
|
|
126
|
-
| 🥇
|
|
127
|
-
| 🥈
|
|
128
|
-
| 🥉
|
|
129
|
-
| —
|
|
130
|
-
| —
|
|
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`
|
|
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
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
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 (
|
|
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
|
-
**
|
|
993
|
+
**Auto-orchestration is on by default** for prompts with ≥3 goals.
|
|
969
994
|
|
|
970
995
|
```bash
|
|
971
|
-
#
|
|
972
|
-
nex-code --
|
|
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
|
-
#
|
|
975
|
-
nex-code --
|
|
999
|
+
# Custom orchestrator model
|
|
1000
|
+
nex-code --orchestrator-model kimi-k2.5 --task "..."
|
|
976
1001
|
|
|
977
|
-
#
|
|
978
|
-
NEX_AUTO_ORCHESTRATE=
|
|
1002
|
+
# Disable auto-orchestration
|
|
1003
|
+
NEX_AUTO_ORCHESTRATE=false nex-code
|
|
979
1004
|
|
|
980
|
-
#
|
|
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` | `
|
|
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:**
|