nex-code 0.5.6 → 0.5.7

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 CHANGED
@@ -22,7 +22,7 @@
22
22
  <img src="https://img.shields.io/badge/Ollama_Cloud-supported-brightgreen.svg" alt="Ollama Cloud: supported">
23
23
  <img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg" alt="Node >= 18">
24
24
  <img src="https://img.shields.io/badge/dependencies-2-green.svg" alt="Dependencies: 2">
25
- <img src="https://img.shields.io/badge/tests-3920-blue.svg" alt="Tests: 3920">
25
+ <img src="https://img.shields.io/badge/tests-3929-blue.svg" alt="Tests: 3920">
26
26
  <img src="https://img.shields.io/badge/VS_Code-extension-007ACC.svg" alt="VS Code extension">
27
27
  </p>
28
28
 
@@ -291,6 +291,21 @@ Multi-goal prompts auto-decompose into parallel sub-agents. Up to 5 agents run s
291
291
  nex-code --task "fix type errors in src/, add JSDoc to utils/, update CHANGELOG"
292
292
  ```
293
293
 
294
+ ### Background Agents
295
+
296
+ Sub-agents can run non-blocking in isolated forked processes. The main agent continues working while background workers complete, then results are automatically injected into the conversation.
297
+
298
+ ```
299
+ # The model decides when to use background:true — no extra syntax needed.
300
+ # Example: the model might run the linter in background while explaining code.
301
+ spawn_agents([
302
+ { task: "run the linter and report errors", background: true },
303
+ { task: "explain the auth module" } ← main agent answers this immediately
304
+ ])
305
+ ```
306
+
307
+ Background agents are shown in the spinner: `● Thinking [1 bg agent running]`. Results appear as `✓ Background agent done: …` when workers finish.
308
+
294
309
  ### Autoresearch
295
310
 
296
311
  Autonomous optimization loops: edit -> experiment -> keep/revert, on a dedicated branch.