nexo-brain 5.3.19 → 5.3.21

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 (211) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/bin/nexo-brain.js +52 -10
  3. package/package.json +1 -1
  4. package/src/auto_update.py +11 -8
  5. package/src/dashboard/static/favicon 2.svg +32 -0
  6. package/src/dashboard/static/nexo-logo 2.png +0 -0
  7. package/src/dashboard/static/nexo-logo 2.svg +40 -0
  8. package/src/dashboard/static/style 2.css +2458 -0
  9. package/src/dashboard/templates/adaptive 2.html +118 -0
  10. package/src/dashboard/templates/artifacts 2.html +133 -0
  11. package/src/dashboard/templates/backups 2.html +136 -0
  12. package/src/dashboard/templates/base 2.html +417 -0
  13. package/src/dashboard/templates/calendar 2.html +591 -0
  14. package/src/dashboard/templates/chat 2.html +356 -0
  15. package/src/dashboard/templates/claims 2.html +259 -0
  16. package/src/dashboard/templates/cortex 2.html +321 -0
  17. package/src/dashboard/templates/credentials 2.html +128 -0
  18. package/src/dashboard/templates/crons 2.html +370 -0
  19. package/src/dashboard/templates/dashboard 2.html +494 -0
  20. package/src/dashboard/templates/dreams 2.html +252 -0
  21. package/src/dashboard/templates/email 2.html +160 -0
  22. package/src/dashboard/templates/evolution 2.html +189 -0
  23. package/src/dashboard/templates/feed 2.html +249 -0
  24. package/src/dashboard/templates/followup_health 2.html +170 -0
  25. package/src/dashboard/templates/graph 2.html +201 -0
  26. package/src/dashboard/templates/guard 2.html +259 -0
  27. package/src/dashboard/templates/inbox 2.html +251 -0
  28. package/src/dashboard/templates/memory 2.html +420 -0
  29. package/src/dashboard/templates/operations 2.html +608 -0
  30. package/src/dashboard/templates/plugins 2.html +185 -0
  31. package/src/dashboard/templates/protocol 2.html +199 -0
  32. package/src/dashboard/templates/rules 2.html +246 -0
  33. package/src/dashboard/templates/sentiment 2.html +247 -0
  34. package/src/dashboard/templates/sessions 2.html +218 -0
  35. package/src/dashboard/templates/skills 2.html +329 -0
  36. package/src/dashboard/templates/somatic 2.html +73 -0
  37. package/src/dashboard/templates/triggers 2.html +133 -0
  38. package/src/dashboard/templates/trust 2.html +360 -0
  39. package/src/db/__init__ 2.py +259 -0
  40. package/src/db/_core 2.py +437 -0
  41. package/src/db/_credentials 2.py +124 -0
  42. package/src/db/_episodic 2.py +762 -0
  43. package/src/db/_evolution 2.py +54 -0
  44. package/src/db/_fts 2.py +406 -0
  45. package/src/db/_goal_profiles 2.py +376 -0
  46. package/src/db/_hot_context 2.py +660 -0
  47. package/src/db/_outcomes 2.py +800 -0
  48. package/src/db/_personal_scripts 2.py +582 -0
  49. package/src/db/_sessions 2.py +330 -0
  50. package/src/db/_tasks 2.py +91 -0
  51. package/src/db/_watchers 2.py +173 -0
  52. package/src/doctor/formatters 2.py +52 -0
  53. package/src/doctor/models 2.py +69 -0
  54. package/src/doctor/planes 2.py +87 -0
  55. package/src/doctor/providers/__init__ 2.py +1 -0
  56. package/src/doctor/providers/deep 2.py +367 -0
  57. package/src/evolution_cycle 2.py +519 -0
  58. package/src/hooks/auto_capture 2.py +208 -0
  59. package/src/hooks/caffeinate-guard 2.sh +8 -0
  60. package/src/hooks/capture-session 2.sh +21 -0
  61. package/src/hooks/capture-tool-logs 2.sh +158 -0
  62. package/src/hooks/daily-briefing-check 2.sh +33 -0
  63. package/src/hooks/heartbeat-enforcement 2.py +90 -0
  64. package/src/hooks/heartbeat-posttool 2.sh +18 -0
  65. package/src/hooks/inbox-hook 2.sh +76 -0
  66. package/src/hooks/post-compact 2.sh +152 -0
  67. package/src/hooks/pre-compact 2.sh +169 -0
  68. package/src/hooks/protocol-guardrail 2.sh +10 -0
  69. package/src/hooks/protocol-pretool-guardrail 2.sh +9 -0
  70. package/src/hooks/session-stop 2.sh +52 -0
  71. package/src/kg_populate 2.py +292 -0
  72. package/src/maintenance 2.py +53 -0
  73. package/src/memory_backends 2.py +71 -0
  74. package/src/migrate_embeddings 2.py +124 -0
  75. package/src/nexo_sdk 2.py +103 -0
  76. package/src/observability 2.py +199 -0
  77. package/src/plugin_loader 2.py +217 -0
  78. package/src/plugins/__init__ 2.py +0 -0
  79. package/src/plugins/artifact_registry 2.py +450 -0
  80. package/src/plugins/backup 2.py +127 -0
  81. package/src/plugins/claims_tools 2.py +119 -0
  82. package/src/plugins/cognitive_memory 2.py +609 -0
  83. package/src/plugins/core_rules 2.py +252 -0
  84. package/src/plugins/cortex 2.py +1155 -0
  85. package/src/plugins/entities 2.py +67 -0
  86. package/src/plugins/episodic_memory 2.py +560 -0
  87. package/src/plugins/evolution 2.py +167 -0
  88. package/src/plugins/goal_engine 2.py +142 -0
  89. package/src/plugins/guard 2.py +862 -0
  90. package/src/plugins/impact 2.py +29 -0
  91. package/src/plugins/knowledge_graph_tools 2.py +137 -0
  92. package/src/plugins/media_memory_tools 2.py +98 -0
  93. package/src/plugins/memory_export 2.py +196 -0
  94. package/src/plugins/outcomes 2.py +130 -0
  95. package/src/plugins/personal_scripts 2.py +117 -0
  96. package/src/plugins/preferences 2.py +47 -0
  97. package/src/plugins/protocol 2.py +1449 -0
  98. package/src/plugins/simple_api 2.py +106 -0
  99. package/src/plugins/skills 2.py +341 -0
  100. package/src/plugins/state_watchers 2.py +79 -0
  101. package/src/plugins/update 2.py +986 -0
  102. package/src/plugins/user_state_tools 2.py +43 -0
  103. package/src/plugins/workflow 2.py +588 -0
  104. package/src/protocol_settings 2.py +59 -0
  105. package/src/public_contribution 2.py +466 -0
  106. package/src/public_evolution_queue 2.py +241 -0
  107. package/src/requirements 2.txt +14 -0
  108. package/src/retroactive_learnings 2.py +373 -0
  109. package/src/rules/__init__ 2.py +0 -0
  110. package/src/rules/core-rules 2.json +331 -0
  111. package/src/rules/migrate 2.py +207 -0
  112. package/src/runtime_power 2.py +874 -0
  113. package/src/script_registry 2.py +1559 -0
  114. package/src/scripts/check-context 2.py +272 -0
  115. package/src/scripts/deep-sleep/apply_findings 2.py +2327 -0
  116. package/src/scripts/deep-sleep/collect 2.py +928 -0
  117. package/src/scripts/deep-sleep/extract 2.py +330 -0
  118. package/src/scripts/deep-sleep/extract-prompt 2.md +285 -0
  119. package/src/scripts/deep-sleep/synthesize 2.py +312 -0
  120. package/src/scripts/deep-sleep/synthesize-prompt 2.md +336 -0
  121. package/src/scripts/nexo-agent-run 2.py +75 -0
  122. package/src/scripts/nexo-auto-update 2.py +6 -0
  123. package/src/scripts/nexo-backup 2.sh +25 -0
  124. package/src/scripts/nexo-brain-activation 2.sh +140 -0
  125. package/src/scripts/nexo-catchup 2.py +300 -0
  126. package/src/scripts/nexo-cognitive-decay 2.py +257 -0
  127. package/src/scripts/nexo-cortex-cycle 2.py +293 -0
  128. package/src/scripts/nexo-cron-wrapper 2.sh +53 -0
  129. package/src/scripts/nexo-daily-self-audit 2.py +2161 -0
  130. package/src/scripts/nexo-dashboard 2.sh +29 -0
  131. package/src/scripts/nexo-deep-sleep 2.sh +86 -0
  132. package/src/scripts/nexo-evolution-run 2.py +1664 -0
  133. package/src/scripts/nexo-followup-hygiene 2.py +139 -0
  134. package/src/scripts/nexo-hook-record 2.py +42 -0
  135. package/src/scripts/nexo-immune 2.py +936 -0
  136. package/src/scripts/nexo-impact-scorer 2.py +117 -0
  137. package/src/scripts/nexo-inbox-hook 2.sh +74 -0
  138. package/src/scripts/nexo-install 2.py +6 -0
  139. package/src/scripts/nexo-learning-housekeep 2.py +401 -0
  140. package/src/scripts/nexo-learning-validator 2.py +266 -0
  141. package/src/scripts/nexo-migrate 2.py +260 -0
  142. package/src/scripts/nexo-outcome-checker 2.py +127 -0
  143. package/src/scripts/nexo-postmortem-consolidator 2.py +456 -0
  144. package/src/scripts/nexo-pre-commit 2.py +120 -0
  145. package/src/scripts/nexo-prevent-sleep 2.sh +35 -0
  146. package/src/scripts/nexo-proactive-dashboard 2.py +354 -0
  147. package/src/scripts/nexo-reflection 2.py +256 -0
  148. package/src/scripts/nexo-runtime-preflight 2.py +274 -0
  149. package/src/scripts/nexo-sleep 2.py +631 -0
  150. package/src/scripts/nexo-snapshot-restore 2.sh +35 -0
  151. package/src/scripts/nexo-sync-clients 2.py +16 -0
  152. package/src/scripts/nexo-synthesis 2.py +475 -0
  153. package/src/scripts/nexo-tcc-approve 2.sh +79 -0
  154. package/src/scripts/nexo-update 2.sh +306 -0
  155. package/src/scripts/nexo-watchdog 2.sh +1207 -0
  156. package/src/scripts/nexo-watchdog-smoke 2.py +119 -0
  157. package/src/scripts/rehydrate_learnings_from_archive 2.py +245 -0
  158. package/src/server 2.py +1296 -0
  159. package/src/skills/run-nexo-audit-phase/guide 2.md +43 -0
  160. package/src/skills/run-nexo-audit-phase/skill 2.json +59 -0
  161. package/src/skills/run-nexo-core-fix-cycle/guide 2.md +17 -0
  162. package/src/skills/run-nexo-core-fix-cycle/script 2.py +276 -0
  163. package/src/skills/run-nexo-core-fix-cycle/skill 2.json +58 -0
  164. package/src/skills/run-release-final-audit/guide 2.md +16 -0
  165. package/src/skills/run-release-final-audit/script 2.py +259 -0
  166. package/src/skills/run-release-final-audit/skill 2.json +77 -0
  167. package/src/skills/run-runtime-doctor/guide 2.md +12 -0
  168. package/src/skills/run-runtime-doctor/script 2.py +21 -0
  169. package/src/skills/run-runtime-doctor/skill 2.json +25 -0
  170. package/src/skills_runtime 2.py +932 -0
  171. package/src/state_watchers_runtime 2.py +475 -0
  172. package/src/storage_router 2.py +32 -0
  173. package/src/system_catalog 2.py +786 -0
  174. package/src/tools_coordination 2.py +103 -0
  175. package/src/tools_credentials 2.py +68 -0
  176. package/src/tools_drive 2.py +487 -0
  177. package/src/tools_hot_context 2.py +163 -0
  178. package/src/tools_learnings 2.py +612 -0
  179. package/src/tools_menu 2.py +229 -0
  180. package/src/tools_reminders 2.py +88 -0
  181. package/src/tools_reminders_crud 2.py +363 -0
  182. package/src/tools_sessions 2.py +1054 -0
  183. package/src/tools_system_catalog 2.py +19 -0
  184. package/src/tools_task_history 2.py +57 -0
  185. package/src/tools_transcripts 2.py +98 -0
  186. package/src/transcript_utils 2.py +412 -0
  187. package/src/user_context 2.py +46 -0
  188. package/src/user_data_portability 2.py +328 -0
  189. package/src/user_state_model 2.py +170 -0
  190. package/templates/CLAUDE.md 2.template +108 -0
  191. package/templates/CODEX.AGENTS.md 2.template +66 -0
  192. package/templates/launchagents/README 2.md +132 -0
  193. package/templates/launchagents/com.nexo.auto-close-sessions 2.plist +39 -0
  194. package/templates/launchagents/com.nexo.catchup 2.plist +39 -0
  195. package/templates/launchagents/com.nexo.cognitive-decay 2.plist +40 -0
  196. package/templates/launchagents/com.nexo.dashboard 2.plist +43 -0
  197. package/templates/launchagents/com.nexo.deep-sleep 2.plist +43 -0
  198. package/templates/launchagents/com.nexo.evolution 2.plist +44 -0
  199. package/templates/launchagents/com.nexo.followup-hygiene 2.plist +45 -0
  200. package/templates/launchagents/com.nexo.immune 2.plist +41 -0
  201. package/templates/launchagents/com.nexo.postmortem 2.plist +45 -0
  202. package/templates/launchagents/com.nexo.self-audit 2.plist +47 -0
  203. package/templates/launchagents/com.nexo.synthesis 2.plist +45 -0
  204. package/templates/launchagents/com.nexo.watchdog 2.plist +37 -0
  205. package/templates/nexo_helper 2.py +301 -0
  206. package/templates/openclaw 2.json +13 -0
  207. package/templates/plugin-template 2.py +40 -0
  208. package/templates/script-template 2.py +59 -0
  209. package/templates/script-template 2.sh +13 -0
  210. package/templates/skill-script-template 2.py +48 -0
  211. package/templates/skill-template 2.md +33 -0
@@ -0,0 +1,132 @@
1
+ # NEXO LaunchAgent Templates
2
+
3
+ macOS LaunchAgents that run NEXO's background processes automatically. These keep the system alive, consistent, and self-improving without any manual intervention.
4
+
5
+ ## What are LaunchAgents?
6
+
7
+ LaunchAgents are macOS's native mechanism for running programs automatically per user session. They are XML property list (`.plist`) files stored in `~/Library/LaunchAgents/`. `launchd` reads them at login and keeps them running according to their schedule. Unlike cron, they survive sleep/wake cycles and can run at load, on a fixed interval, or at a specific calendar time.
8
+
9
+ ## Installation
10
+
11
+ ### 1. Set your paths
12
+
13
+ All templates use two placeholders that you must replace before installing:
14
+
15
+ | Placeholder | Replace with |
16
+ |------------|-------------|
17
+ | `{{NEXO_HOME}}` | Absolute path to your NEXO knowledge base directory (default: `~/.nexo` or `$NEXO_HOME`) |
18
+ | `{{HOME}}` | Your home directory (e.g. `/Users/yourname` or `$HOME`) |
19
+
20
+ Replace them in every file you want to install:
21
+
22
+ ```bash
23
+ # Example — replace both placeholders in all files at once
24
+ NEXO_HOME="$HOME/.nexo"
25
+ HOME_DIR="$HOME"
26
+
27
+ for f in *.plist; do
28
+ sed -i '' \
29
+ "s|{{NEXO_HOME}}|$NEXO_HOME|g; s|{{HOME}}|$HOME_DIR|g" \
30
+ "$f"
31
+ done
32
+ ```
33
+
34
+ ### 2. Check the Python path
35
+
36
+ Each plist calls `/usr/bin/python3`. If your Python 3 is elsewhere (e.g. Homebrew at `/opt/homebrew/bin/python3`), update the `ProgramArguments` first line accordingly.
37
+
38
+ ### 3. Create required directories
39
+
40
+ The agents write logs to `{{NEXO_HOME}}/logs/` and `{{NEXO_HOME}}/coordination/`. Create them if they do not exist:
41
+
42
+ ```bash
43
+ mkdir -p "$NEXO_HOME/logs" "$NEXO_HOME/coordination"
44
+ ```
45
+
46
+ ### 4. Copy and load
47
+
48
+ ```bash
49
+ # Copy plists to LaunchAgents directory
50
+ cp *.plist ~/Library/LaunchAgents/
51
+
52
+ # Load each one
53
+ for f in ~/Library/LaunchAgents/com.nexo.*.plist; do
54
+ launchctl load "$f"
55
+ done
56
+ ```
57
+
58
+ ### Unloading
59
+
60
+ ```bash
61
+ for f in ~/Library/LaunchAgents/com.nexo.*.plist; do
62
+ launchctl unload "$f"
63
+ done
64
+ ```
65
+
66
+ ### Checking status
67
+
68
+ ```bash
69
+ # List all loaded NEXO agents
70
+ launchctl list | grep nexo
71
+
72
+ # Check a specific one (exit code 0 = running or loaded OK)
73
+ launchctl list com.nexo.watchdog
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Agents
79
+
80
+ ### Essential
81
+
82
+ These agents are required for NEXO to function correctly. Install all of them.
83
+
84
+ | File | Schedule | What it does |
85
+ |------|----------|-------------|
86
+ | `com.nexo.auto-close-sessions.plist` | Every 5 min | Expires stale sessions (no heartbeat for 15+ min). Prevents ghost sessions from cluttering the startup menu. |
87
+ | `com.nexo.watchdog.plist` | Every 30 min | Monitors that key services and cron jobs are alive. Writes `watchdog-status.json` and sets a flag when failures are detected. NEXO reads this at startup and alerts you before anything else. |
88
+ | `com.nexo.catchup.plist` | At login | Processes overdue followups and missed scheduled jobs after reboot or sleep. Ensures no maintenance task is permanently skipped. |
89
+
90
+ ### Core background intelligence
91
+
92
+ These agents power NEXO's learning and memory systems. Strongly recommended.
93
+
94
+ | File | Schedule | What it does |
95
+ |------|----------|-------------|
96
+ | `com.nexo.deep-sleep.plist` | Daily 04:30 | Reads full session transcripts from the previous day and extracts learnings that were not captured during live sessions. NEXO's "REM sleep." |
97
+ | `com.nexo.cognitive-decay.plist` | Daily 03:00 | Applies Ebbinghaus forgetting curve to the vector memory database. Reduces confidence scores for memories that have not been reinforced recently, keeping retrieval fresh and accurate. |
98
+ | `com.nexo.synthesis.plist` | Every 2 hours | Aggregates recent session diaries, error patterns, and pending items into `coordination/daily-synthesis.md`. This file is read at every session startup. |
99
+ | `com.nexo.postmortem.plist` | Daily 23:30 | Produces an end-of-day consolidated summary of decisions, changes, and errors. Feeds into the next morning's synthesis. |
100
+ | `com.nexo.self-audit.plist` | Daily 07:00 | Audits the learning system health. Flags repeated errors, calculates the learning repetition rate, and alerts if it exceeds 30%. |
101
+ | `com.nexo.immune.plist` | Every 30 min | Scans the knowledge base for internal contradictions and stale data. Prevents memory drift over time. |
102
+
103
+ ### Weekly maintenance
104
+
105
+ | File | Schedule | What it does |
106
+ |------|----------|-------------|
107
+ | `com.nexo.evolution.plist` | Machine-staggered weekly (managed installs) | Reviews the week's patterns and proposes improvements to NEXO's own configuration. Managed installs spread each machine across the week to avoid PR spikes; the static plist template is only a manual fallback. |
108
+ | `com.nexo.followup-hygiene.plist` | Sundays 05:00 | Cleans up stale followups and reminders. Archives long-pending items and deduplicates entries. Keeps the operational database noise-free. |
109
+
110
+ ### Optional
111
+
112
+ | File | Schedule | What it does |
113
+ |------|----------|-------------|
114
+ | `com.nexo.dashboard.plist` | Persistent (KeepAlive) | Runs the NEXO web dashboard on `http://localhost:6174`. Provides a browser-based view of sessions, reminders, followups, and system health. Only needed if you want the dashboard UI. |
115
+
116
+ ---
117
+
118
+ ## Logs
119
+
120
+ All agents write stdout and stderr to files under `{{NEXO_HOME}}/logs/` (or `{{NEXO_HOME}}/coordination/` for the session-related ones). Check these first when debugging:
121
+
122
+ ```bash
123
+ tail -50 "$NEXO_HOME/logs/watchdog-stdout.log"
124
+ tail -50 "$NEXO_HOME/logs/deep-sleep-stderr.log"
125
+ ```
126
+
127
+ ## Notes
128
+
129
+ - All times are local machine time.
130
+ - If the machine is off or sleeping when a scheduled time fires, `launchd` will NOT run the job retroactively — that is what `com.nexo.catchup` handles at the next login.
131
+ - The `com.nexo.dashboard` agent uses `KeepAlive: true`, meaning macOS will restart it automatically if it exits. Unload it explicitly if you want to stop it.
132
+ - Python path in the templates is `/usr/bin/python3` (macOS system Python). If your scripts require packages installed in a virtualenv or Homebrew Python, update the path to match (e.g. `/opt/homebrew/bin/python3`).
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.auto-close-sessions
3
+ Runs auto_close_sessions.py every 5 minutes to expire stale NEXO
4
+ sessions. Sessions are considered stale after 15 minutes of no
5
+ heartbeat activity. Closing them prevents ghost sessions from
6
+ appearing in the active sessions list at startup. Runs at load
7
+ so it is always active immediately after login.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.auto-close-sessions</string>
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/usr/bin/python3</string>
17
+ <string>{{NEXO_HOME}}/auto_close_sessions.py</string>
18
+ </array>
19
+ <key>StartInterval</key>
20
+ <integer>300</integer>
21
+ <key>StandardOutPath</key>
22
+ <string>{{NEXO_HOME}}/coordination/auto-close-stdout.log</string>
23
+ <key>StandardErrorPath</key>
24
+ <string>{{NEXO_HOME}}/coordination/auto-close-stderr.log</string>
25
+ <key>RunAtLoad</key>
26
+ <true/>
27
+ <key>EnvironmentVariables</key>
28
+ <dict>
29
+ <key>PATH</key>
30
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
31
+ <key>NEXO_SKIP_FS_INDEX</key>
32
+ <string>1</string>
33
+ <key>NEXO_HOME</key>
34
+ <string>{{NEXO_HOME}}</string>
35
+ <key>NEXO_CODE</key>
36
+ <string>{{NEXO_CODE}}</string>
37
+ </dict>
38
+ </dict>
39
+ </plist>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.catchup
3
+ Runs nexo-catchup.py at login and every 15 minutes so missed core
4
+ windows are recovered after boot, wake, or prolonged sleep.
5
+ Recovery is gated by cron_runs plus the manifest recovery contract,
6
+ so catchup only replays jobs that are safe and still inside their
7
+ allowed catch-up window.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.catchup</string>
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/usr/bin/python3</string>
17
+ <string>{{NEXO_HOME}}/scripts/nexo-catchup.py</string>
18
+ </array>
19
+ <key>RunAtLoad</key>
20
+ <true/>
21
+ <key>StartInterval</key>
22
+ <integer>900</integer>
23
+ <key>StandardOutPath</key>
24
+ <string>{{NEXO_HOME}}/logs/catchup-stdout.log</string>
25
+ <key>StandardErrorPath</key>
26
+ <string>{{NEXO_HOME}}/logs/catchup-stderr.log</string>
27
+ <key>EnvironmentVariables</key>
28
+ <dict>
29
+ <key>HOME</key>
30
+ <string>{{HOME}}</string>
31
+ <key>PATH</key>
32
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
33
+ <key>NEXO_HOME</key>
34
+ <string>{{NEXO_HOME}}</string>
35
+ <key>NEXO_CODE</key>
36
+ <string>{{NEXO_CODE}}</string>
37
+ </dict>
38
+ </dict>
39
+ </plist>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.cognitive-decay
3
+ Runs nexo-cognitive-decay.py every day at 03:00 to apply Ebbinghaus
4
+ forgetting curve decay to the cognitive memory database. Memories
5
+ that have not been reinforced recently have their confidence scores
6
+ reduced. This prevents stale or superseded information from
7
+ dominating retrieval results and keeps the semantic memory fresh.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.cognitive-decay</string>
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/usr/bin/python3</string>
17
+ <string>{{NEXO_HOME}}/scripts/nexo-cognitive-decay.py</string>
18
+ </array>
19
+ <key>StartCalendarInterval</key>
20
+ <dict>
21
+ <key>Hour</key>
22
+ <integer>3</integer>
23
+ <key>Minute</key>
24
+ <integer>0</integer>
25
+ </dict>
26
+ <key>StandardOutPath</key>
27
+ <string>{{NEXO_HOME}}/logs/cognitive-decay-stdout.log</string>
28
+ <key>StandardErrorPath</key>
29
+ <string>{{NEXO_HOME}}/logs/cognitive-decay-stderr.log</string>
30
+ <key>RunAtLoad</key>
31
+ <false/>
32
+ <key>EnvironmentVariables</key>
33
+ <dict>
34
+ <key>NEXO_HOME</key>
35
+ <string>{{NEXO_HOME}}</string>
36
+ <key>NEXO_CODE</key>
37
+ <string>{{NEXO_CODE}}</string>
38
+ </dict>
39
+ </dict>
40
+ </plist>
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.dashboard
3
+ Keeps the NEXO web dashboard running persistently on port 6174.
4
+ The dashboard provides a browser-based view of sessions, reminders,
5
+ followups, learnings, and system health. Uses KeepAlive so macOS
6
+ automatically restarts it if it crashes. Access it at
7
+ http://localhost:6174 while the LaunchAgent is loaded.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.dashboard</string>
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/usr/bin/python3</string>
17
+ <string>-m</string>
18
+ <string>dashboard.app</string>
19
+ <string>--port</string>
20
+ <string>6174</string>
21
+ <string>--no-browser</string>
22
+ </array>
23
+ <key>WorkingDirectory</key>
24
+ <string>{{NEXO_HOME}}</string>
25
+ <key>KeepAlive</key>
26
+ <true/>
27
+ <key>RunAtLoad</key>
28
+ <true/>
29
+ <key>StandardOutPath</key>
30
+ <string>/tmp/nexo-dashboard.log</string>
31
+ <key>StandardErrorPath</key>
32
+ <string>/tmp/nexo-dashboard.err</string>
33
+ <key>EnvironmentVariables</key>
34
+ <dict>
35
+ <key>PATH</key>
36
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
37
+ <key>NEXO_HOME</key>
38
+ <string>{{NEXO_HOME}}</string>
39
+ <key>NEXO_CODE</key>
40
+ <string>{{NEXO_CODE}}</string>
41
+ </dict>
42
+ </dict>
43
+ </plist>
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.deep-sleep
3
+ Runs nexo-deep-sleep.sh every day at 04:30 to perform overnight
4
+ consolidation. Reads the full transcripts from the previous day's
5
+ sessions, extracts patterns and learnings that were not captured
6
+ during live sessions, and writes them into the NEXO knowledge base.
7
+ This is the "REM sleep" of NEXO — background processing that
8
+ improves future performance without interrupting active work.
9
+ -->
10
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
11
+ <plist version="1.0">
12
+ <dict>
13
+ <key>Label</key>
14
+ <string>com.nexo.deep-sleep</string>
15
+ <key>ProgramArguments</key>
16
+ <array>
17
+ <string>/bin/bash</string>
18
+ <string>{{NEXO_HOME}}/scripts/nexo-deep-sleep.sh</string>
19
+ </array>
20
+ <key>StartCalendarInterval</key>
21
+ <dict>
22
+ <key>Hour</key>
23
+ <integer>4</integer>
24
+ <key>Minute</key>
25
+ <integer>30</integer>
26
+ </dict>
27
+ <key>StandardOutPath</key>
28
+ <string>{{NEXO_HOME}}/logs/deep-sleep-stdout.log</string>
29
+ <key>StandardErrorPath</key>
30
+ <string>{{NEXO_HOME}}/logs/deep-sleep-stderr.log</string>
31
+ <key>EnvironmentVariables</key>
32
+ <dict>
33
+ <key>PATH</key>
34
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
35
+ <key>HOME</key>
36
+ <string>{{HOME}}</string>
37
+ <key>NEXO_HOME</key>
38
+ <string>{{NEXO_HOME}}</string>
39
+ <key>NEXO_CODE</key>
40
+ <string>{{NEXO_CODE}}</string>
41
+ </dict>
42
+ </dict>
43
+ </plist>
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.evolution
3
+ Static fallback template for the weekly evolution cycle.
4
+ Managed installs now derive a machine-staggered weekly slot from the
5
+ cron manifest to avoid bunching public evolution PRs on Sunday.
6
+ If you install this plist manually, customize Weekday/Hour/Minute
7
+ yourself instead of assuming the managed stagger applies here.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.evolution</string>
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/usr/bin/python3</string>
17
+ <string>{{NEXO_HOME}}/scripts/nexo-evolution-run.py</string>
18
+ </array>
19
+ <key>StartCalendarInterval</key>
20
+ <dict>
21
+ <key>Hour</key>
22
+ <integer>5</integer>
23
+ <key>Minute</key>
24
+ <integer>0</integer>
25
+ <key>Weekday</key>
26
+ <integer>0</integer>
27
+ </dict>
28
+ <key>StandardOutPath</key>
29
+ <string>{{NEXO_HOME}}/logs/evolution-stdout.log</string>
30
+ <key>StandardErrorPath</key>
31
+ <string>{{NEXO_HOME}}/logs/evolution-stderr.log</string>
32
+ <key>EnvironmentVariables</key>
33
+ <dict>
34
+ <key>HOME</key>
35
+ <string>{{HOME}}</string>
36
+ <key>PATH</key>
37
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
38
+ <key>NEXO_HOME</key>
39
+ <string>{{NEXO_HOME}}</string>
40
+ <key>NEXO_CODE</key>
41
+ <string>{{NEXO_CODE}}</string>
42
+ </dict>
43
+ </dict>
44
+ </plist>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.followup-hygiene
3
+ Runs nexo-followup-hygiene.py every Sunday at 05:00 to clean up
4
+ stale followups and reminders. Archives or closes items that have
5
+ been pending for too long without activity, deduplicates near-
6
+ identical entries, and generates a weekly hygiene report. Keeps the
7
+ operational database from accumulating noise that would clutter
8
+ NEXO's startup menu and priority queue.
9
+ -->
10
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
11
+ <plist version="1.0">
12
+ <dict>
13
+ <key>Label</key>
14
+ <string>com.nexo.followup-hygiene</string>
15
+ <key>ProgramArguments</key>
16
+ <array>
17
+ <string>/usr/bin/python3</string>
18
+ <string>{{NEXO_HOME}}/scripts/nexo-followup-hygiene.py</string>
19
+ </array>
20
+ <key>StartCalendarInterval</key>
21
+ <dict>
22
+ <key>Weekday</key>
23
+ <integer>0</integer>
24
+ <key>Hour</key>
25
+ <integer>5</integer>
26
+ <key>Minute</key>
27
+ <integer>0</integer>
28
+ </dict>
29
+ <key>StandardOutPath</key>
30
+ <string>{{NEXO_HOME}}/logs/followup-hygiene-stdout.log</string>
31
+ <key>StandardErrorPath</key>
32
+ <string>{{NEXO_HOME}}/logs/followup-hygiene-stderr.log</string>
33
+ <key>EnvironmentVariables</key>
34
+ <dict>
35
+ <key>HOME</key>
36
+ <string>{{HOME}}</string>
37
+ <key>PATH</key>
38
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
39
+ <key>NEXO_HOME</key>
40
+ <string>{{NEXO_HOME}}</string>
41
+ <key>NEXO_CODE</key>
42
+ <string>{{NEXO_CODE}}</string>
43
+ </dict>
44
+ </dict>
45
+ </plist>
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.immune
3
+ Runs nexo-immune.py every 30 minutes to perform immune-system checks
4
+ on the NEXO knowledge base. Detects contradictions, stale data, and
5
+ memory drift. Part of NEXO's self-maintenance layer — ensures the
6
+ cognitive database stays internally consistent over time.
7
+ -->
8
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
9
+ <plist version="1.0">
10
+ <dict>
11
+ <key>Label</key>
12
+ <string>com.nexo.immune</string>
13
+
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/usr/bin/python3</string>
17
+ <string>{{NEXO_HOME}}/scripts/nexo-immune.py</string>
18
+ </array>
19
+
20
+ <key>StartInterval</key>
21
+ <integer>1800</integer>
22
+
23
+ <key>StandardOutPath</key>
24
+ <string>{{NEXO_HOME}}/coordination/immune-stdout.log</string>
25
+
26
+ <key>StandardErrorPath</key>
27
+ <string>{{NEXO_HOME}}/coordination/immune-stderr.log</string>
28
+
29
+ <key>EnvironmentVariables</key>
30
+ <dict>
31
+ <key>HOME</key>
32
+ <string>{{HOME}}</string>
33
+ <key>PATH</key>
34
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
35
+ <key>NEXO_HOME</key>
36
+ <string>{{NEXO_HOME}}</string>
37
+ <key>NEXO_CODE</key>
38
+ <string>{{NEXO_CODE}}</string>
39
+ </dict>
40
+ </dict>
41
+ </plist>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.postmortem
3
+ Runs nexo-postmortem-consolidator.py every day at 23:30 to produce
4
+ an end-of-day postmortem. Consolidates the day's session diaries,
5
+ decisions, changes, and errors into a single structured summary.
6
+ This summary feeds into the next morning's synthesis and provides
7
+ a permanent record of what happened each day. Does not run at load
8
+ — only fires at the scheduled time.
9
+ -->
10
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
11
+ <plist version="1.0">
12
+ <dict>
13
+ <key>Label</key>
14
+ <string>com.nexo.postmortem</string>
15
+ <key>ProgramArguments</key>
16
+ <array>
17
+ <string>/usr/bin/python3</string>
18
+ <string>{{NEXO_HOME}}/scripts/nexo-postmortem-consolidator.py</string>
19
+ </array>
20
+ <key>RunAtLoad</key>
21
+ <false/>
22
+ <key>StartCalendarInterval</key>
23
+ <dict>
24
+ <key>Hour</key>
25
+ <integer>23</integer>
26
+ <key>Minute</key>
27
+ <integer>30</integer>
28
+ </dict>
29
+ <key>StandardOutPath</key>
30
+ <string>{{NEXO_HOME}}/logs/postmortem-stdout.log</string>
31
+ <key>StandardErrorPath</key>
32
+ <string>{{NEXO_HOME}}/logs/postmortem-stderr.log</string>
33
+ <key>EnvironmentVariables</key>
34
+ <dict>
35
+ <key>HOME</key>
36
+ <string>{{HOME}}</string>
37
+ <key>PATH</key>
38
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
39
+ <key>NEXO_HOME</key>
40
+ <string>{{NEXO_HOME}}</string>
41
+ <key>NEXO_CODE</key>
42
+ <string>{{NEXO_CODE}}</string>
43
+ </dict>
44
+ </dict>
45
+ </plist>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.self-audit
3
+ Runs nexo-daily-self-audit.py every day at 07:00 to assess the
4
+ health of NEXO's learning system. Calculates the learning repetition
5
+ rate (how often new learnings duplicate existing ones), identifies
6
+ the top areas with recurring errors, and flags learnings that have
7
+ been ignored 3+ times. Alerts if the repetition rate exceeds 30%.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.self-audit</string>
14
+
15
+ <key>ProgramArguments</key>
16
+ <array>
17
+ <string>/usr/bin/python3</string>
18
+ <string>{{NEXO_HOME}}/scripts/nexo-daily-self-audit.py</string>
19
+ </array>
20
+
21
+ <key>StartCalendarInterval</key>
22
+ <dict>
23
+ <key>Hour</key>
24
+ <integer>7</integer>
25
+ <key>Minute</key>
26
+ <integer>0</integer>
27
+ </dict>
28
+
29
+ <key>StandardOutPath</key>
30
+ <string>{{NEXO_HOME}}/logs/self-audit-stdout.log</string>
31
+
32
+ <key>StandardErrorPath</key>
33
+ <string>{{NEXO_HOME}}/logs/self-audit-stderr.log</string>
34
+
35
+ <key>EnvironmentVariables</key>
36
+ <dict>
37
+ <key>HOME</key>
38
+ <string>{{HOME}}</string>
39
+ <key>PATH</key>
40
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
41
+ <key>NEXO_HOME</key>
42
+ <string>{{NEXO_HOME}}</string>
43
+ <key>NEXO_CODE</key>
44
+ <string>{{NEXO_CODE}}</string>
45
+ </dict>
46
+ </dict>
47
+ </plist>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.synthesis
3
+ Runs nexo-synthesis.py every 2 hours to generate a daily synthesis
4
+ document. Aggregates session diaries, error patterns, pending items,
5
+ and self-evaluation notes into coordination/daily-synthesis.md.
6
+ This file is read at the start of each session to give NEXO context
7
+ about what happened recently without replaying full session logs.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.synthesis</string>
14
+
15
+ <key>ProgramArguments</key>
16
+ <array>
17
+ <string>/usr/bin/python3</string>
18
+ <string>{{NEXO_HOME}}/scripts/nexo-synthesis.py</string>
19
+ </array>
20
+
21
+ <key>StartInterval</key>
22
+ <integer>7200</integer>
23
+
24
+ <key>RunAtLoad</key>
25
+ <false/>
26
+
27
+ <key>StandardOutPath</key>
28
+ <string>{{NEXO_HOME}}/coordination/synthesis-stdout.log</string>
29
+
30
+ <key>StandardErrorPath</key>
31
+ <string>{{NEXO_HOME}}/coordination/synthesis-stderr.log</string>
32
+
33
+ <key>EnvironmentVariables</key>
34
+ <dict>
35
+ <key>HOME</key>
36
+ <string>{{HOME}}</string>
37
+ <key>PATH</key>
38
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:__NEXO_HOME__/bin</string>
39
+ <key>NEXO_HOME</key>
40
+ <string>{{NEXO_HOME}}</string>
41
+ <key>NEXO_CODE</key>
42
+ <string>{{NEXO_CODE}}</string>
43
+ </dict>
44
+ </dict>
45
+ </plist>
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- com.nexo.watchdog
3
+ Runs nexo-watchdog.sh every 30 minutes to monitor system health.
4
+ Checks that the NEXO MCP server, cron jobs, and key infrastructure
5
+ services are alive. Writes results to watchdog-status.json and
6
+ watchdog-report.txt. Sets a .watchdog-alert flag when failures are
7
+ detected so the next Claude session can alert the user immediately.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>Label</key>
13
+ <string>com.nexo.watchdog</string>
14
+ <key>ProgramArguments</key>
15
+ <array>
16
+ <string>/bin/bash</string>
17
+ <string>{{NEXO_HOME}}/scripts/nexo-watchdog.sh</string>
18
+ </array>
19
+ <key>StartInterval</key>
20
+ <integer>1800</integer>
21
+ <key>RunAtLoad</key>
22
+ <true/>
23
+ <key>StandardOutPath</key>
24
+ <string>{{NEXO_HOME}}/logs/watchdog-stdout.log</string>
25
+ <key>StandardErrorPath</key>
26
+ <string>{{NEXO_HOME}}/logs/watchdog-stderr.log</string>
27
+ <key>EnvironmentVariables</key>
28
+ <dict>
29
+ <key>PATH</key>
30
+ <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:__NEXO_HOME__/bin</string>
31
+ <key>NEXO_HOME</key>
32
+ <string>{{NEXO_HOME}}</string>
33
+ <key>NEXO_CODE</key>
34
+ <string>{{NEXO_CODE}}</string>
35
+ </dict>
36
+ </dict>
37
+ </plist>