nexo-brain 2.6.11 → 2.6.13
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/.claude-plugin/plugin.json +1 -1
- package/README.md +22 -12
- package/bin/nexo-brain.js +483 -56
- package/package.json +4 -1
- package/src/agent_runner.py +322 -0
- package/src/auto_update.py +12 -3
- package/src/cli.py +22 -10
- package/src/client_preferences.py +394 -0
- package/src/client_sync.py +78 -0
- package/src/cron_recovery.py +8 -1
- package/src/crons/manifest.json +6 -0
- package/src/crons/sync.py +14 -1
- package/src/doctor/providers/runtime.py +109 -1
- package/src/plugins/schedule.py +69 -12
- package/src/plugins/update.py +5 -1
- package/src/runtime_power.py +23 -0
- package/src/script_registry.py +62 -1
- package/src/scripts/check-context.py +102 -100
- package/src/scripts/deep-sleep/extract.py +29 -54
- package/src/scripts/deep-sleep/synthesize.py +14 -38
- package/src/scripts/nexo-agent-run.py +73 -0
- package/src/scripts/nexo-catchup.py +15 -19
- package/src/scripts/nexo-daily-self-audit.py +17 -14
- package/src/scripts/nexo-evolution-run.py +25 -55
- package/src/scripts/nexo-immune.py +17 -15
- package/src/scripts/nexo-learning-validator.py +90 -58
- package/src/scripts/nexo-postmortem-consolidator.py +15 -14
- package/src/scripts/nexo-sleep.py +20 -14
- package/src/scripts/nexo-synthesis.py +19 -12
- package/src/scripts/nexo-update.sh +28 -2
- package/src/scripts/nexo-watchdog.sh +34 -10
- package/templates/nexo_helper.py +45 -0
- package/templates/plugin-template.py +4 -0
- package/templates/script-template.py +13 -2
- package/templates/skill-script-template.py +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexo-brain",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.13",
|
|
4
4
|
"description": "Local cognitive runtime for Claude Code \u2014 persistent memory, overnight learning, doctor diagnostics, personal scripts, recovery-aware jobs, startup preflight, and optional dashboard/power helper.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "NEXO Brain",
|
package/README.md
CHANGED
|
@@ -454,9 +454,9 @@ npx nexo-brain # detects current version, migrates automatically
|
|
|
454
454
|
|
|
455
455
|
## Runtime CLI (v2.6.0)
|
|
456
456
|
|
|
457
|
-
NEXO Brain includes a local CLI that runs independently of
|
|
457
|
+
NEXO Brain includes a local CLI that runs independently of any single terminal client:
|
|
458
458
|
|
|
459
|
-
- `nexo chat` — launch
|
|
459
|
+
- `nexo chat` — launch the configured terminal client with NEXO as the operator
|
|
460
460
|
- `nexo update` — sync runtime from source, run migrations, reconcile schedules
|
|
461
461
|
- `nexo doctor --tier runtime` — boot/runtime/deep diagnostics with `--fix` mode
|
|
462
462
|
- `nexo scripts list` — list all personal scripts and their status
|
|
@@ -484,7 +484,7 @@ Core and personal jobs now declare explicit recovery contracts in `crons/manifes
|
|
|
484
484
|
|
|
485
485
|
| Field | Purpose |
|
|
486
486
|
|-------|---------|
|
|
487
|
-
| `recovery_policy` | `catchup`, `restart`, or `skip` |
|
|
487
|
+
| `recovery_policy` | `catchup`, `restart`, `restart_daemon`, or `skip` |
|
|
488
488
|
| `run_on_boot` | Re-run when the machine starts |
|
|
489
489
|
| `run_on_wake` | Re-run after sleep/resume |
|
|
490
490
|
| `idempotent` | Safe to re-run without side effects |
|
|
@@ -492,6 +492,8 @@ Core and personal jobs now declare explicit recovery contracts in `crons/manifes
|
|
|
492
492
|
|
|
493
493
|
If the Mac was asleep during a scheduled window, `catchup` detects the gap from `cron_runs` (not a state file) and re-executes eligible jobs once. Interval-based personal scripts get a single recovery run, not repeated ticks.
|
|
494
494
|
|
|
495
|
+
For personal daemon-style helpers, `recovery_policy=restart_daemon` plus `schedule_required=true` declares an official `KeepAlive` schedule. NEXO can now reconcile and repair those daemons instead of treating them as unmanaged legacy LaunchAgents.
|
|
496
|
+
|
|
495
497
|
## Startup Preflight (v2.6.2)
|
|
496
498
|
|
|
497
499
|
Before `nexo chat` or MCP server start, NEXO runs a preflight check:
|
|
@@ -567,14 +569,20 @@ The installer handles everything and syncs the same `nexo` MCP brain into Claude
|
|
|
567
569
|
After install, use the runtime CLI:
|
|
568
570
|
|
|
569
571
|
```bash
|
|
570
|
-
nexo chat # Launch Claude Code
|
|
572
|
+
nexo chat # Launch the configured terminal client (Claude Code or Codex)
|
|
571
573
|
nexo doctor # Check runtime health
|
|
572
574
|
nexo update # Pull latest version and sync
|
|
573
575
|
nexo clients sync # Re-sync Claude Code/Desktop/Codex to the same brain
|
|
574
576
|
nexo scripts list # See your personal scripts
|
|
575
577
|
```
|
|
576
578
|
|
|
577
|
-
|
|
579
|
+
During install, NEXO now asks which interactive clients you want to connect, which one `nexo chat` should open by default, whether to enable background automation, which backend should run that automation, and which model profile each active terminal/backend should use. Shared brain stays on in every mode.
|
|
580
|
+
|
|
581
|
+
Recommended defaults:
|
|
582
|
+
- Claude Code: `Opus latest`
|
|
583
|
+
- Codex: `gpt-5.4` with `xhigh` reasoning
|
|
584
|
+
|
|
585
|
+
Or use the shell alias created during install (e.g. `atlas`), which now runs `nexo chat .` so it opens whichever terminal client you selected as default.
|
|
578
586
|
|
|
579
587
|
Your operator will greet you immediately — adapted to the time of day, resuming from where you left off. No cold starts.
|
|
580
588
|
|
|
@@ -598,6 +606,7 @@ Your operator will greet you immediately — adapted to the time of day, resumin
|
|
|
598
606
|
| Auto-update | Non-blocking startup check (5s max), opt-out via schedule.json | Built into server startup |
|
|
599
607
|
| CLAUDE.md tracker | Version-tracked core sections with safe updates preserving customizations | Built into auto-update |
|
|
600
608
|
| Shared client sync | Same `nexo` MCP entry wired into Claude Code, Claude Desktop, and Codex | User config dirs |
|
|
609
|
+
| Client/backend preferences | Selected interactive clients, default terminal client, automation backend, and model/reasoning profiles per client | `NEXO_HOME/config/schedule.json` |
|
|
601
610
|
| Auto-diary | 3-layer system: PostToolUse every 10 calls, PreCompact emergency, heartbeat DIARY_OVERDUE | Built into hooks |
|
|
602
611
|
| Claude Code config | MCP server + 7 hooks + 15 processes registered | ~/.claude/settings.json |
|
|
603
612
|
|
|
@@ -627,7 +636,7 @@ nexo doctor --tier runtime --json # Machine-readable health report
|
|
|
627
636
|
nexo doctor --fix # Apply deterministic repairs
|
|
628
637
|
```
|
|
629
638
|
|
|
630
|
-
Personal scripts live in `NEXO_HOME/scripts/` with inline metadata. See `docs/writing-scripts.md` for details.
|
|
639
|
+
Personal scripts live in `NEXO_HOME/scripts/` with inline metadata. Their Python templates now include `run_automation_text(...)`, which routes work through the configured NEXO automation backend instead of hardcoding `claude -p` or provider-specific model names. See `docs/writing-scripts.md` for details.
|
|
631
640
|
|
|
632
641
|
Skills v2 combine procedural guides with optional executable scripts. Personal skills live in `NEXO_HOME/skills/`, packaged core skills live in `NEXO_CODE/skills/` during development and `NEXO_HOME/skills-core/` in installed environments, and staged runtime copies live in `NEXO_HOME/skills-runtime/`. Execution is fully autonomous: Deep Sleep can evolve mature guide skills into executable drafts automatically, and runtime execution no longer waits for manual approval. See `docs/skills-v2.md` for the full model.
|
|
633
642
|
|
|
@@ -637,8 +646,9 @@ The Doctor system reads existing health artifacts (immune, watchdog, self-audit)
|
|
|
637
646
|
|
|
638
647
|
- **macOS or Linux** (Windows via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install))
|
|
639
648
|
- **Node.js 18+** (for the installer)
|
|
640
|
-
- **Claude
|
|
641
|
-
-
|
|
649
|
+
- **Claude Code is the primary recommended client.** It remains the most mature NEXO path: native hooks, the most battle-tested automation contract, and the clearest parity with historical production behavior.
|
|
650
|
+
- **Recommended profiles:** Claude Code + `Opus latest`; Codex + `gpt-5.4` with `xhigh` reasoning if you prefer Codex as your terminal or automation backend.
|
|
651
|
+
- Python 3, Homebrew, and the selected required client/backend can be installed automatically when NEXO has a supported installer path for that dependency.
|
|
642
652
|
|
|
643
653
|
## Architecture
|
|
644
654
|
|
|
@@ -738,13 +748,13 @@ NEXO Brain isn't just engineering — it's applied cognitive psychology:
|
|
|
738
748
|
|
|
739
749
|
### Claude Code (Primary)
|
|
740
750
|
|
|
741
|
-
NEXO Brain is designed as an MCP server. Claude Code
|
|
751
|
+
NEXO Brain is designed as an MCP server. Claude Code remains the primary recommended client and the most complete integration path:
|
|
742
752
|
|
|
743
753
|
```bash
|
|
744
754
|
npx nexo-brain
|
|
745
755
|
```
|
|
746
756
|
|
|
747
|
-
All 150+ tools are available immediately after installation. The installer configures Claude Code's `~/.claude/settings.json` automatically.
|
|
757
|
+
All 150+ tools are available immediately after installation. The installer configures Claude Code's `~/.claude/settings.json` automatically. The recommended Claude profile is `Opus latest`.
|
|
748
758
|
|
|
749
759
|
### Claude Desktop
|
|
750
760
|
|
|
@@ -752,7 +762,7 @@ When Claude Desktop is installed, `nexo-brain`, `nexo update`, and `nexo clients
|
|
|
752
762
|
|
|
753
763
|
### Codex
|
|
754
764
|
|
|
755
|
-
When Codex CLI is available, `nexo-brain`, `nexo update`, and `nexo clients sync` register the same `nexo` MCP server via `codex mcp add`, so Codex uses the same local memory store as Claude Code and Claude Desktop.
|
|
765
|
+
When Codex CLI is available, `nexo-brain`, `nexo update`, and `nexo clients sync` register the same `nexo` MCP server via `codex mcp add`, so Codex uses the same local memory store as Claude Code and Claude Desktop. If selected during install, `nexo chat` can open Codex directly and background automation can also run through Codex. The current recommended Codex profile is `gpt-5.4` with `xhigh` reasoning.
|
|
756
766
|
|
|
757
767
|
### OpenClaw
|
|
758
768
|
|
|
@@ -865,7 +875,7 @@ If NEXO Brain is useful to you, consider:
|
|
|
865
875
|
- **Personal scripts registry**: Scripts in `NEXO_HOME/scripts/` tracked in SQLite with metadata, categories, schedules. Full lifecycle: create, sync, reconcile, schedule, unschedule, remove.
|
|
866
876
|
- **Orchestrator removed from core** (breaking): Was opt-in personal automation adding complexity for all users. Existing users keep their setup in `NEXO_HOME/scripts/`.
|
|
867
877
|
- **Claude Code plugin structure**: `plugin.json`, entry point, packaging for marketplace submission.
|
|
868
|
-
- **`nexo chat`**: Official command to launch
|
|
878
|
+
- **`nexo chat`**: Official command to launch the configured terminal client with NEXO as operator.
|
|
869
879
|
- **Managed Evolution hardening**: Can modify core behavior modules with rollback followups.
|
|
870
880
|
- Cron recovery hardened: TCC diagnostics, keepalive sync, personal schedule catchup.
|
|
871
881
|
|