@timmeck/brain-core 2.36.18 → 2.36.20

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 (31) hide show
  1. package/README.md +93 -135
  2. package/command-center.html +600 -115
  3. package/dist/consciousness/__tests__/thought-stream.test.d.ts +1 -0
  4. package/dist/consciousness/__tests__/thought-stream.test.js +62 -0
  5. package/dist/consciousness/__tests__/thought-stream.test.js.map +1 -0
  6. package/dist/consciousness/thought-stream.d.ts +2 -0
  7. package/dist/consciousness/thought-stream.js +4 -0
  8. package/dist/consciousness/thought-stream.js.map +1 -1
  9. package/dist/dashboard/__tests__/command-center-server.test.js +142 -6
  10. package/dist/dashboard/__tests__/command-center-server.test.js.map +1 -1
  11. package/dist/dashboard/command-center-server.d.ts +18 -0
  12. package/dist/dashboard/command-center-server.js +169 -1
  13. package/dist/dashboard/command-center-server.js.map +1 -1
  14. package/dist/debate/debate-engine.js +1 -1
  15. package/dist/debate/debate-engine.js.map +1 -1
  16. package/dist/missions/__tests__/mission-engine.test.d.ts +1 -0
  17. package/dist/missions/__tests__/mission-engine.test.js +66 -0
  18. package/dist/missions/__tests__/mission-engine.test.js.map +1 -0
  19. package/dist/missions/mission-engine.js +5 -0
  20. package/dist/missions/mission-engine.js.map +1 -1
  21. package/dist/plugin/example-plugin.d.ts +40 -0
  22. package/dist/plugin/example-plugin.js +91 -0
  23. package/dist/plugin/example-plugin.js.map +1 -0
  24. package/dist/prediction/prediction-engine.js +1 -1
  25. package/dist/research/research-orchestrator.js +9 -0
  26. package/dist/research/research-orchestrator.js.map +1 -1
  27. package/dist/utils/__tests__/logger.test.js +27 -0
  28. package/dist/utils/__tests__/logger.test.js.map +1 -1
  29. package/dist/utils/logger.js +10 -3
  30. package/dist/utils/logger.js.map +1 -1
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -5,9 +5,9 @@
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
6
  [![GitHub stars](https://img.shields.io/github/stars/timmeck/brain-ecosystem?style=social)](https://github.com/timmeck/brain-ecosystem)
7
7
 
8
- **Shared infrastructure for the Brain Ecosystem — 30+ autonomous engines, synapses, IPC, MCP, dream mode, consciousness, prediction, reasoning, emotions, evolution, self-modification, and more.**
8
+ **Shared infrastructure for the Brain Ecosystem — 60+ autonomous engines, synapses, IPC, MCP, LLM service, consciousness, research missions, notifications, self-modification, and more.**
9
9
 
10
- Brain Core is the nervous system that powers all three Brain MCP servers ([Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain), [Trading Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/trading-brain), [Marketing Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/marketing-brain)). A 40-step feedback orchestrator runs 30+ engines in autonomic cycles — the brain observes itself, forms hypotheses, runs experiments, dreams, debates, reasons in chains, feels emotions, evolves strategies genetically, and modifies its own source code. All packages live in the [brain-ecosystem](https://github.com/timmeck/brain-ecosystem) monorepo.
10
+ Brain Core is the nervous system that powers all three Brain MCP servers ([Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain), [Trading Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/trading-brain), [Marketing Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/marketing-brain)). A 40-step feedback orchestrator runs 60+ engines in autonomic cycles — the brain observes itself, forms hypotheses, runs experiments, dreams, debates, reasons in chains, feels emotions, evolves strategies genetically, and modifies its own source code.
11
11
 
12
12
  ## What's Included
13
13
 
@@ -16,15 +16,22 @@ Brain Core is the nervous system that powers all three Brain MCP servers ([Brain
16
16
  | Module | Description |
17
17
  |--------|-------------|
18
18
  | **IPC Protocol** | Length-prefixed JSON frames over named pipes / Unix sockets |
19
- | **IPC Server** | Named pipe server with auto-recovery of stale pipes |
20
- | **IPC Client** | Request/response with timeouts and notification support |
19
+ | **IPC Server/Client** | Named pipe server with auto-recovery, request/response with timeouts |
21
20
  | **MCP Server** | Stdio transport for Claude Code with auto-daemon-start |
22
21
  | **MCP HTTP Server** | SSE transport for Cursor, Windsurf, Cline, Continue |
23
22
  | **REST API Server** | HTTP server with CORS, auth, SSE events, batch RPC |
24
- | **IPC Validation** | Parameter validation (string 10KB, array 1000, depth 10) |
25
- | **IPC Errors** | Structured errors: IpcError, ValidationError, NotFoundError, TimeoutError |
26
23
  | **Security Middleware** | RateLimiter (token bucket), body size limits, security headers |
27
24
 
25
+ ### LLM Service
26
+
27
+ | Module | Description |
28
+ |--------|-------------|
29
+ | **Multi-Provider** | Anthropic Claude + Ollama local models, auto-routing by task |
30
+ | **Smart Caching** | Content-hash cache with TTL, avoid duplicate API calls |
31
+ | **Rate Limiting** | Per-hour and per-day token/call budgets with automatic throttling |
32
+ | **Usage Tracking** | Detailed stats: calls, tokens, latency, cache hit rate, cost tracking |
33
+ | **Prompt Templates** | Reusable templates for analysis, summarization, classification, coding |
34
+
28
35
  ### Synapse Network & Learning
29
36
 
30
37
  | Module | Description |
@@ -33,118 +40,107 @@ Brain Core is the nervous system that powers all three Brain MCP servers ([Brain
33
40
  | **Synapse Decay** | Exponential half-life decay for freshness |
34
41
  | **Spreading Activation** | BFS-based energy propagation through the graph |
35
42
  | **A* Pathfinding** | Find shortest paths between nodes |
36
- | **BaseSynapseManager** | Abstract manager with strengthen/weaken/activate/findPath/decay |
37
- | **BaseLearningEngine** | Abstract timer-managed learning engine |
38
- | **BaseResearchEngine** | Abstract timer-managed research engine |
39
- | **BaseMemoryEngine** | Abstract memory engine for expiry/consolidation/decay |
40
43
  | **Wilson Score** | Statistical confidence intervals for win rates |
41
- | **Time Decay** | Exponential half-life decay for rule freshness |
42
44
 
43
- ### 30+ Autonomous Engines
45
+ ### 60+ Autonomous Engines
44
46
 
45
- #### Core Research (9 engines)
47
+ #### Observation & Data
46
48
 
47
49
  | Engine | Description |
48
50
  |--------|-------------|
49
- | **SelfObserver** | Brain observes its own performance metrics and generates insights |
51
+ | **SelfObserver** | Observes own performance metrics, generates insights |
50
52
  | **AnomalyDetective** | Detects statistical outliers using Z-scores and drift analysis |
51
- | **CrossDomainEngine** | Finds correlations between events across different brains |
52
- | **AdaptiveStrategy** | Adjusts strategies based on outcomes, reverts if performance drops |
53
- | **ExperimentEngine** | Designs and runs A/B tests on brain parameters |
54
- | **KnowledgeDistiller** | Extracts principles from confirmed hypotheses |
55
- | **ResearchAgenda** | Prioritizes what should be researched next |
56
- | **CounterfactualEngine** | "What if" analysis — estimates impact of hypothetical interventions |
57
- | **ResearchJournal** | Logs all discoveries, experiments, and breakthroughs |
53
+ | **DataScout** | External data from GitHub/npm/Hacker News |
54
+ | **SignalScanner** | GitHub trending repos, HN mentions, crypto signals |
55
+ | **TechRadarEngine** | Daily tech trend scanning, repo watching, LLM relevance scoring |
58
56
 
59
- #### Intelligence & Awareness
57
+ #### Understanding & Analysis
60
58
 
61
59
  | Engine | Description |
62
60
  |--------|-------------|
63
61
  | **AttentionEngine** | Dynamic focus, context detection, burst detection, engine weight allocation |
64
- | **TransferEngine** | Cross-brain knowledge transfer, analogies, cross-domain rules |
65
- | **NarrativeEngine** | Brain explains itself in natural language, finds contradictions, generates digests |
62
+ | **CausalGraph** | Granger causality analysis for event relationships |
63
+ | **CrossDomainEngine** | Finds correlations between events across brains |
64
+ | **PatternEngine** | Discovers recurring patterns in data |
65
+
66
+ #### Ideas & Hypotheses
67
+
68
+ | Engine | Description |
69
+ |--------|-------------|
70
+ | **HypothesisEngine** | Forms and tests hypotheses (temporal, correlation, threshold, creative) |
66
71
  | **CuriosityEngine** | Knowledge gap detection, UCB1 explore/exploit, blind spot detection |
67
- | **EmergenceEngine** | Emergent behavior detection, complexity metrics (entropy, phi), phase transitions |
68
- | **DebateEngine** | Multi-agent debates, advocatus diaboli, consensus synthesis |
69
- | **ReasoningEngine** | Forward chaining, abductive reasoning, temporal inference, counterfactuals |
70
- | **EmotionalModel** | 8 emotion dimensions, 6 moods, mood-based behavior recommendations |
72
+ | **DreamEngine** | Offline consolidation — memory replay, synapse pruning, compression, decay |
73
+ | **DebateEngine** | Multi-agent debates, Advocatus Diaboli principle challenges, consensus synthesis |
71
74
 
72
- #### Meta-Cognition & Optimization
75
+ #### Testing & Experimentation
73
76
 
74
77
  | Engine | Description |
75
78
  |--------|-------------|
76
- | **ParameterRegistry** | Central tunable parameter store with 30+ parameters, bounds, snapshots |
77
- | **MetaCognitionLayer** | Engine performance grading (A-F), frequency adjustment |
79
+ | **ExperimentEngine** | A/B tests on brain parameters |
78
80
  | **AutoExperimentEngine** | Autonomous parameter tuning with snapshot/rollback |
79
- | **EvolutionEngine** | Genetic algorithm tournament selection, crossover, mutation, elitism |
80
- | **GoalEngine** | Goal planning with progress tracking, linear regression forecasting |
81
- | **MemoryPalace** | Knowledge graph with BFS pathfinding and auto-connection building |
81
+ | **SimulationEngine** | What-if scenarios via CausalGraph + PredictionEngine |
82
+ | **PredictionEngine** | Holt-Winters + EWMA forecasting with auto-calibration |
82
83
 
83
- #### Autonomy & Self-Improvement
84
+ #### Knowledge & Memory
84
85
 
85
86
  | Engine | Description |
86
87
  |--------|-------------|
87
- | **SelfTestEngine** | Tests if brain truly understands its principles vs memorization |
88
- | **TeachEngine** | Generates teaching packages for other brains |
89
- | **DataScout** | External data acquisition from GitHub/npm/HN |
90
- | **SimulationEngine** | What-if scenarios via CausalGraph + PredictionEngine |
91
- | **SelfScanner** | Indexes own TypeScript source code with SHA256 change detection |
92
- | **SelfModificationEngine** | Generates and tests code changes autonomously via Claude API |
93
- | **BootstrapService** | Cold-start fix: seeds data so engines produce output from cycle 1 |
88
+ | **KnowledgeDistiller** | Extracts principles from confirmed hypotheses |
89
+ | **MemoryPalace** | Knowledge graph with BFS pathfinding and connection building |
90
+ | **ResearchJournal** | Logs all discoveries, experiments, breakthroughs |
91
+ | **ConceptAbstraction** | Abstract concept formation from concrete observations |
94
92
 
95
- ### Orchestration & Core
93
+ #### Action & Self-Improvement
96
94
 
97
- | Module | Description |
95
+ | Engine | Description |
98
96
  |--------|-------------|
99
- | **ResearchOrchestrator** | 40-step feedback cycle orchestrating all engines every 5 minutes |
100
- | **DataMiner** | Bootstraps historical DB data into engines with adapter pattern |
101
- | **AutonomousResearchScheduler** | Self-directed research cycle execution |
102
- | **MetaLearningEngine** | Hyper-parameter optimization with Bayesian exploration |
103
- | **CausalGraph** | Granger causality analysis for event relationships |
104
- | **HypothesisEngine** | Forms and tests hypotheses (temporal, correlation, threshold, creative) |
105
- | **AutoResponder** | Anomaly automatic parameter adjustment, escalation, resolution |
106
- | **PredictionEngine** | Holt-Winters + EWMA forecasting with auto-calibration |
97
+ | **SelfModificationEngine** | Scans own code, generates improvements via Claude API, tests before applying |
98
+ | **GoalEngine** | Goal planning with progress tracking and forecasting |
99
+ | **AdaptiveStrategy** | Adjusts strategies based on outcomes, reverts if performance drops |
100
+ | **MetaCognitionLayer** | Engine performance grading (A-F), frequency adjustment |
101
+ | **EvolutionEngine** | Genetic algorithm tournament selection, crossover, mutation, elitism |
102
+ | **ReasoningEngine** | Forward chaining, abductive reasoning, temporal inference, counterfactuals |
103
+ | **EmotionalModel** | 8 emotion dimensions, 6 moods, mood-based behavior recommendations |
104
+ | **NarrativeEngine** | Brain explains itself in natural language, finds contradictions |
105
+ | **TransferEngine** | Cross-brain knowledge transfer, analogies, cross-domain rules |
107
106
 
108
- ### Dream Mode & Consciousness
107
+ ### Research Missions
109
108
 
110
109
  | Module | Description |
111
110
  |--------|-------------|
112
- | **DreamEngine** | Offline memory consolidation replay, prune, compress, decay |
113
- | **DreamConsolidator** | 4 phases: Memory Replay, Synapse Pruning, Compression, Importance Decay |
114
- | **ThoughtStream** | Circular buffer capturing every engine's thoughts in real-time |
115
- | **ConsciousnessServer** | HTTP + SSE server with live Consciousness Entity visualization (legacy — now part of Mission Control) |
116
- | **Consciousness Entity** | Animated Canvas 2D visualization: mood-colored pulsing orb, organic tentacles, 8-dimension ring, ambient particles, floating thoughts, inner eye tracking attention. 6 moods (flow/excited/anxious/reflective/bored/determined). Data from EmotionalModel via `/api/emotional` |
111
+ | **ResearchMissionEngine** | 5-phase autonomous web research pipeline |
112
+ | **Web Research Chain** | Brave Search + Jina Reader + Playwright + Firecrawl fallback |
113
+ | **Phase Pipeline** | Decompose Gather Hypothesize Analyze Synthesize |
117
114
 
118
- ### Code Generation & Mining
115
+ ### Notifications
119
116
 
120
117
  | Module | Description |
121
118
  |--------|-------------|
122
- | **CodeGenerator** | Claude API integration — generates code using brain knowledge as context |
123
- | **ContextBuilder** | Builds system prompts from principles, anti-patterns, strategies, patterns |
124
- | **CodeMiner** | Mines GitHub repos: README, package.json, directory structures |
125
- | **PatternExtractor** | Extracts dependency, tech stack, structure, and README patterns |
126
- | **CodegenServer** | HTTP + SSE dashboard for code review (legacy — now part of Mission Control) |
127
- | **SignalScanner** | GitHub trending repos, Hacker News, crypto signal tracking |
119
+ | **NotificationService** | Multi-provider notification routing |
120
+ | **Discord Provider** | Webhook-based Discord notifications |
121
+ | **Telegram Provider** | Bot API Telegram notifications |
122
+ | **Email Provider** | SMTP email notifications |
123
+ | **Notification Bridge** | IPC-based cross-brain notification relay |
128
124
 
129
125
  ### Dashboards
130
126
 
131
127
  | Dashboard | Port | Description |
132
128
  |-----------|------|-------------|
133
- | **Mission Control** | 7788 | Unified 7-tab dashboard: Overview, Consciousness (Entity visualization), Thoughts, CodeGen, Self-Mod, Engines, Intelligence |
134
-
135
- <p align="center"><img src="../../docs/assets/mission-control.png" alt="Mission Control Dashboard" width="700"></p>
129
+ | **Mission Control** | 7788 | 7-tab dashboard: Overview, Consciousness Entity, Thoughts, CodeGen, Self-Mod, Engines, Intelligence |
130
+ | **Command Center** | 7790 | 8-page ecosystem dashboard with live visualizations, debates, challenges, error log, self-mod feed, missions, knowledge growth |
136
131
 
137
- ### Cross-Brain & Services
132
+ ### Cross-Brain & Ecosystem
138
133
 
139
134
  | Module | Description |
140
135
  |--------|-------------|
141
136
  | **CrossBrainClient** | Discover and query peer brains over IPC |
142
137
  | **CrossBrainNotifier** | Push event notifications to peers |
143
- | **CrossBrainCorrelator** | Correlate events across brains (error-trade-loss, publish-during-errors) |
138
+ | **CrossBrainCorrelator** | Correlate events across brains |
139
+ | **BorgSyncEngine** | Collective knowledge synchronization between all brains |
144
140
  | **EcosystemService** | Aggregated status, health score 0–100, analytics |
145
- | **WebhookService** | HMAC-SHA256 signed webhooks with exponential retry |
146
- | **ExportService** | JSON/CSV export with date range and column filters |
147
- | **BackupService** | Timestamped SQLite backups with integrity verification |
141
+ | **WatchdogService** | Process monitoring, auto-restart, health checks |
142
+ | **PluginRegistry** | Community plugin loading, lifecycle hooks, MCP tools, IPC routes |
143
+ | **WindowsServiceManager** | NSSM/SC.exe service install/uninstall/status |
148
144
 
149
145
  ### Utilities
150
146
 
@@ -152,11 +148,9 @@ Brain Core is the nervous system that powers all three Brain MCP servers ([Brain
152
148
  |--------|-------------|
153
149
  | **DB Connection** | SQLite (better-sqlite3) with WAL mode, foreign keys, caching |
154
150
  | **Logger** | Winston-based structured logging with file rotation |
155
- | **Event Bus** | Generic typed event emitter |
156
- | **CLI Colors** | Shared color palette, formatting helpers (header, table, badges) |
157
- | **Config Loader** | `deepMerge()` + `loadConfigFile()` for layered config |
151
+ | **CLI Colors** | Shared color palette, formatting helpers |
158
152
  | **Embedding Engine** | Local vector embeddings with @huggingface/transformers |
159
- | **Memory Types** | Shared types for Memory, Session, Remember/Recall interfaces |
153
+ | **Webhook / Export / Backup** | HMAC webhooks, JSON/CSV export, SQLite backups |
160
154
 
161
155
  ## Installation
162
156
 
@@ -172,77 +166,41 @@ npm install @timmeck/brain-core
172
166
  import {
173
167
  createConnection, IpcServer, startMcpServer,
174
168
  ResearchOrchestrator, DreamEngine, ThoughtStream,
175
- UnifiedDashboardServer, PredictionEngine,
169
+ CommandCenterServer, LLMService,
176
170
  } from '@timmeck/brain-core';
177
171
 
178
172
  // 1. Database
179
173
  const db = createConnection('~/.my-brain/my-brain.db');
180
174
 
181
- // 2. Research Orchestrator (30+ engines, 40-step feedback cycle)
175
+ // 2. LLM Service (multi-provider)
176
+ const llm = new LLMService(db, {
177
+ anthropicApiKey: process.env.ANTHROPIC_API_KEY,
178
+ ollamaBaseUrl: 'http://localhost:11434',
179
+ });
180
+
181
+ // 3. Research Orchestrator (60+ engines, 40-step feedback cycle)
182
182
  const orchestrator = new ResearchOrchestrator(db, { brainName: 'my-brain' });
183
183
  orchestrator.start();
184
184
 
185
- // 3. Dream Mode
186
- const dreamEngine = new DreamEngine(db, { brainName: 'my-brain' });
187
- orchestrator.setDreamEngine(dreamEngine);
188
- dreamEngine.start();
189
-
190
- // 4. Consciousness
191
- const thoughtStream = new ThoughtStream();
192
- orchestrator.setThoughtStream(thoughtStream);
193
- // Unified Mission Control dashboard (includes Consciousness Entity, Thoughts, CodeGen, Self-Mod, Engines)
194
- const dashboard = new UnifiedDashboardServer({ port: 7790, thoughtStream, ... });
185
+ // 4. Command Center Dashboard
186
+ const dashboard = new CommandCenterServer({
187
+ port: 7790,
188
+ selfName: 'my-brain',
189
+ crossBrain, ecosystemService, correlator,
190
+ thoughtStream: orchestrator.thoughtStream,
191
+ getLLMStats: () => llm.getStats(),
192
+ });
195
193
  dashboard.start();
196
-
197
- // 5. Predictions
198
- const prediction = new PredictionEngine(db, { brainName: 'my-brain' });
199
- orchestrator.setPredictionEngine(prediction);
200
- prediction.start();
201
- ```
202
-
203
- ## Architecture
204
-
205
- ```
206
- @timmeck/brain-core
207
- ├── IPC ────────── protocol, server, client, validation, errors
208
- ├── MCP ────────── stdio server, HTTP/SSE server
209
- ├── API ────────── BaseApiServer, RateLimiter, security middleware
210
- ├── Synapses ───── Hebbian, Decay, Activation, Pathfinder, BaseSynapseManager
211
- ├── Research ───── ResearchOrchestrator (40 steps), DataMiner, BootstrapService
212
- │ ├── Core ───── SelfObserver, AnomalyDetective, Experiment, Adaptive, Agenda
213
- │ ├── Core ───── KnowledgeDistiller, Counterfactual, CrossDomain, Journal
214
- │ └── AutoResp ─ AutoResponder (anomaly → action)
215
- ├── Intelligence ─ Attention, Transfer, Narrative, Curiosity, Emergence, Debate
216
- ├── Reasoning ──── ReasoningEngine (forward chain, abduction, temporal, counterfactual)
217
- ├── Emotional ──── EmotionalModel (8 dimensions, 6 moods)
218
- ├── MetaCog ────── ParameterRegistry, MetaCognitionLayer, AutoExperimentEngine
219
- ├── Evolution ──── EvolutionEngine (genetic algorithm)
220
- ├── Goals ─────── GoalEngine (planning, progress, forecasting)
221
- ├── MemoryPalace ─ Knowledge graph, BFS pathfinding
222
- ├── SelfAware ──── SelfTest, Teach, DataScout, Simulation
223
- ├── SelfMod ────── SelfScanner, SelfModificationEngine
224
- ├── Dream ──────── DreamEngine, DreamConsolidator
225
- ├── Consciousness ThoughtStream, ConsciousnessServer
226
- ├── Prediction ─── PredictionEngine, Holt-Winters, EWMA, Calibration
227
- ├── CodeGen ────── CodeGenerator, CodeMiner, PatternExtractor, CodegenServer
228
- ├── Scanner ────── SignalScanner, GitHubCollector, HnCollector, CryptoCollector
229
- ├── Causal ─────── CausalGraph (Granger causality), HypothesisEngine
230
- ├── Cross-Brain ── Client, Notifier, Correlator, Subscriptions
231
- ├── Dashboard ──── Mission Control (Unified), Consciousness*, CodeGen*, Hub*, Research*
232
- ├── Services ───── Webhook, Export, Backup, Ecosystem
233
- ├── Memory ─────── BaseMemoryEngine, types
234
- ├── DB ─────────── SQLite connection (WAL mode)
235
- └── Utils ─────── hash, logger, paths, events, math, config, CLI
236
194
  ```
237
195
 
238
196
  ## Brain Ecosystem
239
197
 
240
- | Brain | Version | Purpose | Ports |
241
- |-------|---------|---------|-------|
242
- | [Brain](../brain) | v3.34.0 | Error memory, code intelligence, full autonomy & self-modification | 7777/7778/7788 |
243
- | [Trading Brain](../trading-brain) | v2.29.0 | Adaptive trading intelligence with signal learning & backtesting | 7779/7780 |
244
- | [Marketing Brain](../marketing-brain) | v1.30.0 | Content strategy, engagement & cross-platform optimization | 7781/7782/7783 |
245
- | **Brain Core** | v2.34.0 | Shared infrastructure — 30+ engines (this package) | — |
198
+ | Brain | Purpose | Ports |
199
+ |-------|---------|-------|
200
+ | [Brain](../brain) | Error memory, code intelligence, full autonomy & self-modification | 7777/7778/7788/7790 |
201
+ | [Trading Brain](../trading-brain) | Adaptive trading intelligence with signal learning & paper trading | 7779/7780 |
202
+ | [Marketing Brain](../marketing-brain) | Content strategy, social engagement & cross-platform optimization | 7781/7782/7783 |
203
+ | **Brain Core** (this) | Shared infrastructure — 60+ engines | — |
246
204
 
247
205
  ## Support
248
206