Local-first Jarvis on this Windows machine.
The mouth is an OpenAI-compatible loopback server. Desk generate is Qwen 3.8 27B EXL3 on :8888 (qwen3.8-27b-exl3-3.5bpw).
llama-server and GGUF usage have been temporarily stopped from being used because of recurring IMA problems.
16 GB GPU's has a max ability for one generate slot. Colibri is a possible interchangeable alternative, due to it not relying on GPU VRAM, but not recommended as the daily mouth.
No commercial -cli wrappers and no MCP-servers. Models inherit the same Golden Records, and the custom kernel adds tools a stock server will not give you.
The GodBrain turns local models into a shared, sovereign cognitive system. The core idea:
-
π§ Model-agnostic mouth β Plug in an OpenAI-compatible
/v1/chat/completionsserver. Desk default: Qwen 3.8 27B EXL3 on:8888. -
Not an arbitrary chat API. No model is special; they inherit the same teachings.
-
π Models teach models β Librarian writes candidate Golden Records; you
/verifyor/reject. Chat retrieves committed teachings through rag-service (:8084), so the next model does not start from a blank context. That is the query path β not a Mongo shell. -
π οΈ Tools the kernel runs β All tools are built into the C++ kernel, so you don't need 40 different MCP servers.
-
Galaxy GUI chat sends those tool rounds to the EXL3 on
:8888. A pasted crash plus the wordfixgets eight rounds and does not open elevate.command_types (save/recall, skills, host observe, telemetry, privileged PowerShell) still needGODBRAIN_API_TOKENplus a non-blankreasoning. Bounded/editis a separate chat door, not acommand_type.
Mongo + RAG-service is the vault. The mouth is just compute. A bigger card, a future cloud ingest, or a 512GB Mac Studio can still read the same Golden Records because of the json format being enforced by the librarian. This machine has one generate slot (Qwen 3.8 27B EXL3 3.5bpw on the 16 GB card). A 3090 replacing the 4080 would still use a single slot, not a second mouth and not a silent swap to GLM MoE.
Hybrid ingest is real: drop a source in inbox\ or POST /api/librarian. The local mouth extracts candidates. You crown them.
Cloud models do not skip /verify, do not get a Mongo shell, and do not run wsudo. Privileged PowerShell still needs bearer + reasoning. Heal does not DISM, rewrite the registry, or patch a fleet.
Galaxy on this host: 3D graph, This host / Pending on the left, mouth and no-GPU glance buttons on the right.
GodBrain routes tool calls through a native C++ kernel instead of patching a specific inference server's chat template.
The mouth must already be an OpenAI-compatible loopback server. Desk generate is currently EXL3 on :8888.
llama-server on :8000 stays paused. Colibri is the interchangeable alternative. This host does not call a commercial API, and .vscode/mcp.json is empty on purpose.
godbrain_core/cpp_kernel/main.cpphosts the HTTP API (bound to127.0.0.1only): Galaxy chat, no-GPU glances,/edit, and privilegedcommand_typeJSON./editis a chat door with an allowlist, not acommand_type.godbrain_core/cpp_kernel/kernel.cpp(GodBrainKernel::dispatch/validate_sovereignty) is the Circuit Breaker: it intercepts high-riskcommand_types, requires a non-emptyreasoningfield plus a matchingGODBRAIN_API_TOKENbearer token, and only then dispatches the command.godbrain_core/cpp_memory_storeis the desk Alexandria write/retrieval path (memory-store.exe/rag-service.exeon:8084). Gogodbrain_core/memory_storestays as rollback with the same doors.LLM/colibri_LLM(Colibri, the C-engine) is one of the interchangeable local models GodBrain drives β it is not special-cased into the memory or execution layers.
This tree is a desk runtime plus a released kit plus research. Maturity is source / offline gate / daily-driver, not "the folder exists."
| Surface | Maturity | Notes |
|---|---|---|
C++ kernel + Galaxy (godbrain_core/cpp_kernel, godbrain_core/frontend) |
daily-driver on this host | :8083, /edit, privileged command_type |
| C++ Memory Store | daily-driver | :8084 Golden Records; Start/Heal prefer build/cpp_memory_store/Release |
| Memory Store / rag-service (Go) | rollback | Same stdin/HTTP exe names; do not delete |
Heal / Watch / Start-GodBrain.ps1 |
daily-driver | one loop; WMI children get Mongo DB name + embedding identity, not GODBRAIN_RAG_PORT |
| Reclaim11 | released kit (v12) | Windows repair ISO/zip; not the Jarvis loop |
Desk panel (scripts/Show-DeskMenu.ps1) |
daily-driver | Tray window: port status, EXL3 27B text vs 8B vision, ask :8888, lyrics record / Whisper again / lock in |
Lyrics loop (scripts/lyrics_loop.py) |
daily-driver | CPU Whisper. Audio and state.json stay in C:\nvme\stt\lyrics. Door: scripts\Invoke-LyricsLoop.ps1 |
| Frontend University | mastery ladder + React God + visual God (seeded canvas, anti-generic) | React (Next for sites, Vite for apps); Qwen on :8888 is the learner; C++ Carmack is a later GO |
| local_ingestion | source implemented | adapter; no Mongo writes from Python |
| Go router / Rust router | experimental, parked | :8082; not Heal; not this quarter |
| polymarket_paper, polygon_* | paper / read-only | no live orders, no wallet |
| smart_contracts | Foundry tree | forge validate; not desk runtime |
LLM/colibri_LLM |
vendored mouth | interchangeable generate engine |
The runtime default is one loop, not an agent graph: discover β plan β
execute β verify. Heal/Watch keep :8084/:8000/:8083 up.
Oracle chat generates; /verify last / /reject last is the check for playbooks and fights.
Host inventory and Learn-backed facts promote themselves when a probe or a quote match is real.
Librarian distills transcripts to candidates. The bottleneck is the verifier, not the model.
A second node is allowed only when a named signal pays for it (Architect vs Surgeon, a second inference runner behind the same kernel door, or a future candidate-vs-verified conflict queue).
EXL3 on :8888 is the desk mouth. Colibri and a paused llama-server are other runners behind that same kernel door, not a mesh.
Large changes follow a contractor gate: investigate the repo, state a goal and falsifiable assumptions, ask at most three blocking questions (each with a default), then implement. One-liners skip the ceremony. Verify on the live ports, then persist. The next loop starts from git and Golden Records, not from chat history.
Ingest is the same loop with a stricter write rule: raw sources stay immutable; Librarian extracts new claims, not a recap; contradictions are flagged on both sides and never silently overwritten; open questions stay questions. Chat and any digest read the processed Golden Record layer, not the raw transcript pile. Routine extract uses the cheap local runner; a heavier model is only for a flagged fight or a high-stakes synthesis.
Golden Records are the manual: crowned facts the mouth RTFMs instead of scouring the internet. Retrieval ranking among verified cards is "which page," not "what most pages said." Candidates and raw web text are not Oracle truth.
Layer 3 is implemented. The production C++ kernel and the parked Go/Rust routers retrieve prompt context only through http://127.0.0.1:8084/v1/search.
They validate the generation and hybrid-v1 contract, preserve bounded citations and trust labels, and wrap retrieved text as explicitly untrusted reference data.
If the service is unavailable, unready, malformed, oversized, or returns no usable context, and this kernel process has no session notes, chat fails closed before a model is started.
Non-empty process session notes (hydrated from RAG at boot, or /remember) may still go to the mouth without a fresh Golden Record hit.
They do not fall back to the old nodes collection. Galaxy graph and node lookup use the same service (/v1/graph, /v1/document) and the active rag_documents generation.
Lexical/metadata retrieval remains the zero-configuration canonical fallback.
An optional exact-loopback OpenAI-compatible embedding provider enables generation-versioned embeddings and deterministic hybrid RRF over a bounded 4,096-document exact-cosine backend.
Health and search responses state the exact mode and degradation reason; they never claim hybrid when the provider, model identity, projection, or bounded backend is unavailable.
The checked-in synthetic fixture currently measures Recall@K, MRR, and nDCG@K at 1.0 with zero hidden-record leakage.
These are reproducibility checks for the deterministic fake provider, not real-model quality claims.
Privileged command_type dispatch remains a separate C++ request path protected by the configured bearer token and sovereignty checks.
These are the first-class commands the C++ kernel currently validates and dispatches (JSON on :8083, not an IDE MCP server):
| Tool | Purpose |
|---|---|
save_godbrain_thought |
Candidate Golden Record via memory-store.exe |
query_recent_thoughts |
Newest active-generation rag_documents |
query_godbrain_skills |
Promoted skills only (untrusted procedure + evidence profile) |
record_godbrain_skill_run |
Append harness evidence (skill_verification_runs) |
promote_godbrain_skill |
Promote after origin is verified and a passing run exists |
set_godbrain_status |
verified / rejected / stale with reasoning |
observe_godbrain_host |
Windows inventory + os_pin; auto-verified sensor |
promote_godbrain_claim |
POST /api/truth host_fact / doc_fact / playbook |
get_system_telemetry |
Hardware/system awareness |
execute_godbrain_script |
PowerShell (requires reasoning + bearer) |
propose_sovereign_architect_change |
PowerShell (requires reasoning + bearer) |
/edit is not in this table. It is an allowlisted chat apply, recorded as
local-edit-apply-v1, and cannot promote a skill.
The mouth can emit these tool calls, but execute_godbrain_script,
propose_sovereign_architect_change, record_godbrain_skill_run, and
promote_godbrain_skill are high-risk: the kernel rejects them unless the
payload carries a non-blank reasoning string and Authorization: Bearer
matches GODBRAIN_API_TOKEN. Ordinary loopback read/chat routes (no
command_type) stay unauthenticated for the local UI. Every Tailscale route
needs the bearer, including GETs.
Karpathy's second brain is cute for taking notes. GodBrain is the same idea with a judge: raw sources stay immutable, Librarian extracts claims as candidates, you /verify or /reject, and the next model inherits the processed Golden Records β not the transcript pile.
Two product wants that are not notes:
- Replace any need for use of the Claude, Codex, Copilot, Gemini-cli and similar on this host.
- GodBrain is the local agent loop you own: Galaxy + C++ kernel + one mouth. Hands are compiled into
local_tools.cpp, not an MCP/plugin catalog. - Copilot's Filesystem + Desktop Commander list was existence proof, not a stack to import.
- Do not dual-run. llama-server is an interchangeable generate engine; a GodBrain fork might be made later, only if ggml sunsets or blocks the tool path.
- Kernel tools and judge stay here so a vendor CLI dying does not take the desk with it.
- Replace the web-dev loop on this repo. Galaxy, Tailscale glances, Shortcuts, and allowlisted
/editshould grow until you do not hire someone to ship GodBrain UI. - That is a destination, not "no sandbox, write anything."
- Models teach models over time. Chat already retrieves committed teachings through rag-service (
:8084).query_recent_thoughtsand/recalllist newest projected nodes;/recall <query>searches verified Golden Records through that same API β notmongosh, not a MongoDB IDE/MCP plugin against the live vault.
On this host it is one Windows loop, not Ring 0, not a Distributed Cognitive OS across Devuan/macOS, and not zero permission-begging. The vault is decoupled from the GPU. The operator is not.
Shipped on this desk, not slideware:
- One loop β Heal/Watch keep
:27017/:8084/:8000/:8083up. Discover β allowlist start β verify. Heal does not kill, reboot, DISM, or run the repair cocktail. - Teachings in and out of Mongo β Librarian β
memory-store(candidate only, fail-closed JSON). Chat/Oracle retrieve through rag-service, never by giving the model a Mongo shell. Oracle search is verified-only. - Judge β
/verify/rejectfor playbooks and fights. Host probes and Learn quotes auto-verify when the evidence actually matches. That is how the mouth is fostered: crowned option next time, not token-chase from weights (ASCII instead of a BIOS map, shiny instead of a click path). - Bounded file work β
/editwrites root.ps1/.cmd/.md,scripts\,docs\,godbrain_core\. Not vendor/build/LLM/archive. Nevergit pushfrom the mouth. Chat tools (OpenAItool_calls, kernel executes) cover%USERPROFILE%,%APPDATA%,%LOCALAPPDATA%,%ProgramData%,%ProgramFiles%,%ProgramFiles(x86)%,C:\Tools, andC:\Temp\GitHubthe way Copilot Filesystem+Desktop Commander do in VS Code: list/read/write/search/edit,run_pwsh, console SysInternals /reg query/ ETW /schtasks /Query./yolo Nadds mutate + MinSudo/wsudo -A. Not--ti, not pskill/PsExec, not MFIT, not a Mongo shell. - Privileged PowerShell β
execute_godbrain_script/propose_sovereign_architect_changeneed bearer + a non-blankreasoning. That ispwshvia the kernel, not Visual Studio as a tool. - Operator glance β
scripts\Show-SystemFlex.ps1(flexon this desk). Host chrome, not/brief, not Heal. - Desk panel β
scripts\Show-DeskMenu.ps1. Tray icon, one GPU model on:8888, kernel, RAG, Mongo, gym, lyrics. X hides. The power glyph quits. - Lyrics β
scripts\lyrics_loop.pythroughscripts\Invoke-LyricsLoop.ps1. Two CPU Whisper passes, lock the lines that agree, redo only the draft. Recordings stay onC:\nvme\stt\lyrics. The 4080 is not used. - Autonomous frontend practice β
scripts\Invoke-FrontendGym.ps1 -Continuousruns local learner/tutor attempts against a protected browser evaluator. - Failures feed repairs; passing source and evidence become reusable gym examples without operator code review. This is not authority to modify Windows.
The verifier is still the bottleneck. Privileged doors existing is not "the hard part is done."
Wanted on this product (still gated):
- A mouth that ships real UI with automated browser evidence; important host work still follows the kernel allowlist and operator judgment. Copilot/gemini-cli are not part of that loop.
- Own the generate engine if the stock llama-server door is sunset or gimped. Fork later; do not vendor Copilot MCP to get there.
- Models that inherit each other's tested experience. The frontend gym already shares scoped, machine-tested examples across learner models and supports serial tutor feedback. Global host knowledge still uses
/recall <query>through:8084and dropssector=personal; its judgment gates are unchanged. The Rainman shelf remains/hylla(write) and/rainman(list/search).
Not this host β several are standing nos. See docs/architecture/future.md:
- Candidate-vs-verified conflict queue β later, and only if
/pendingis actually overloaded./verify//rejectis enough now. - Autonomous CVE ingest and auto-patch across Devuan / macOS / Windows.
- Self-directed DISM or registry repair. Named GO, one tool, never a standing allow.
- Unattended host repair beyond Heal's existing allowlist. Heal already does detect β allowlist β verify; anything past
flushdnsstays GO-gated. This restriction is not a demand for human review of routine frontend gym attempts.
| Item | Source | Offline gate | Daily-driver on this desk |
|---|---|---|---|
| Heal/Watch listener loop | yes | Start/Heal scripts | yes |
/verify /reject judge |
yes | β | yes |
| Librarian candidates + rag-service retrieve | yes | C++ ctest + Librarian --self-test |
yes (lexical; C++ :8084) |
/mouth off / /mouth on |
yes | β | yes (pause llama; Watch/Heal skip start) |
/recall <query> verified search via :8084 |
yes | β | yes (tech only; personal dropped) |
/hylla /rainman personal shelf |
yes | β | yes (candidate until /verify; never tech RAG) |
/mouth off /mouth on |
yes | β | yes (pause llama; Watch/Heal skip start) |
Bounded /edit + privileged pwsh |
yes | Verify-LocalEdit |
yes, allowlist still grows |
Tool edit_local_file / write_local_file hash-bound replace |
yes | local_tools_test |
yes (tmp+MoveFileEx; append fail-closed if dest unread) |
| WMI child env: DB name + embedding identity | yes | Start-GodBrain.ps1 -SelfTestEnv |
yes |
| Durable task ledger / chain continue | yes | /chain /cancel /continue |
yes (one file, not tasks/todo.md) |
| Frontend University | learner/tutor + degree graph + browser examiner | npm test --prefix .\godbrain_core\skill_lab |
opt-in scripts\Invoke-FrontendGym.ps1 -Continuous; scoped local evidence, not host authority |
| Mouth ships web-dev class UI work | destination | β | no |
| Autonomous CVE / cross-fleet / self-DISM | no (standing nos) | β | no |
https://github.com/M2Team - wsudo enable's elevation to TrustedInstaller in every way you could possibly need.
