Skip to content

autom8edIT/Kollektivet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kollektivet / The collective

Use any AI model — be it a commercial model through your favorite -cli or an LLM of any type. The most genius part of GodBrain is that it's both model and tool agnostic: everything can get boosted by it, and everything can contribute. Train them as a collective brain & memory, and unlock tools that default llama-server can't do.

TLDR

The collective turns local models into a shared, sovereign cognitive system. The core idea:

  • 🧠 Model-agnostic — Plug in any LLM (Gemma, etc.). No model is special; they're interchangeable nodes in one collective brain.
  • 📚 Models teach models — Past models become teachings. Their thoughts and analysis are saved permanently and queried later, so newer models inherit prior reasoning instead of starting from scratch.
  • 🛠️ Tools that aren't possible by default — Native MCP tool use that a stock llama-server won't give you: permanent memory, local filesystem read/write/execute, code-graph self-analysis, and more.

The Compute Cheat Code (Local + Cloud Synergy)

Because the "brain" (MongoDB + Constellation) is completely decoupled from the compute, GodBrain unlocks a massive hardware cheat code:

  • Massive Local Context — it scales infinitely with your hardware: As if running any model wasn't enough, the shared mind just gets better the more you throw at it.

  • On a PC with a 3090, 4090, or 5090? Great — bigger card, better local LLMs, more headroom. But here's where it gets silly: Apple Silicon's unified memory breaks the matrix. A Mac with 128GB+ UMA (think M5 Max and up) runs 100B+ parameter models locally without paying the insane dedicated-VRAM tax. At that point you're not running a chatbot — you're basically a droid from Star Wars walking around with a sovereign brain in your bag.

  • Hybrid Intelligence: You aren't limited to local models. Hook up APIs for Grok, Gemini, Codex, or anything else. Let them crunch the massive datasets and commit their insights directly into Constellation.

  • Unrestricted Execution: Your local, uncensored models read those teachings from the shared MongoDB and execute the highly-privileged, unrestricted OS-level operations (like running wsudo scripts) that heavily-censored corporate APIs refuse to do.

Trying to match a 128GB Mac on a PC means stacking $10k+ of pro GPUs and a power bill that needs its own reactor. The Mac does it on a laptop, fanless-quiet, for a fraction of the watts — which is exactly the point: It scales infinitely with whatever you've got, so the only ceiling is your hardware budget, not the software.

Cloud models do the heavy context lifting; your local sovereign models pull from the shared memory to execute with God-level permissions.

How it works

Build-LlamaCpp.ps1 overlays files from llama-overrides/ onto the llama.cpp source at build time. The key piece is:

llama-overrides/common/godbrain_chat_extensions.cpp

It teaches the chat layer to treat GodBrain's MCP tools as first-class tokens — preserving them so the model can reliably emit and act on them without fighting the chat template (instead of having them mangled or stripped).

Collective-native MCP tools

These are injected as preserved tokens so any model can use them:

Tool Purpose
save_godbrain_thought Permanent memory — write reasoning the next model can learn from
query_constellation Code-graph self-analysis
query_recent_thoughts Recall prior models' thinking
read_local_file / write_local_file Native, privileged local filesystem access (no browser sandbox theater)
list_local_dir / ensure_local_dir Local directory ops
execute_godbrain_script Direct script execution / control
get_system_telemetry Hardware/system awareness
ocr_image Image → text
ask_local_llm Route a step to another local model
get_cognitive_protocol Fetch a reusable "recipe" / workflow
propose_sovereign_architect_change Evolve the system's own rules

Why preserved tokens matter

Default llama-server will happily break tool calls because the chat template doesn't know about them. By registering these tools (and architect-mode tokens) into data.preserved_tokens, GodBrain makes them durable and reliable across the fleet.

godbrain::apply_godbrain_chat_extensions(data, "gemma-4-26B-...");

This is additive — call it from a model-specific init (e.g. common_chat_params_init_gemma4) and the whole fleet becomes GodBrain-aware.

The bigger picture

The collective is a Distributed Cognitive OS: intelligence is decoupled from hardware. The "mind" lives in shared brain-wires; models contribute sensing, compute, and local agency, and high-leverage teachings persist for every model that follows.

The End Goal: A Sovereign Autonomous Operator

The destination is an AI that owns the full loop — brainstorm a problem, understand it, and fix it across every machine you run, with no hand-holding.

Working today — these are shipped and live in the build, not slideware:

  • Self-command — the agent issues and chains its own commands.
  • Sequential thinking — multi-step reasoning instead of one-shot guesses.
  • Constellation — code-graph self-analysis of its own system.
  • MongoDB query / index / update — full read-write access to the shared brain.
  • Full local filesystem read/write — real files, real changes, no sandbox theater.
  • Privileged executionwsudo scripts and Visual Studio access to actually build and repair.

Put together, that already means GodBrain can reason about a problem, dig through its own memory and code graph, and execute privileged fixes on the local machine — the hard part is done.

The end goal — the trajectory these capabilities are converging on:

A fully autonomous operator that scans the internet for the latest CVEs, understands the threat, and auto-patches it across any of your machines — Devuan, macOS, or Windows alike. It picks up where tools like DISM fall short, repairs what they should have fixed (registry included), and closes the loop end-to-end because it has both the reasoning and the privileged tooling (wsudo, Visual Studio, local execution) to do it.

Cloud models can do the heavy context lifting; your local sovereign models pull from the shared memory and pull the trigger. That's the whole point: one collective brain, infinite hardware, zero permission-begging.

Roadmap

  • Self-command + sequential thinking
  • Constellation code-graph self-analysis
  • MongoDB query / index / update
  • Full local filesystem read/write
  • Privileged execution (wsudo, Visual Studio)
  • Autonomous CVE ingestion (scan + understand latest threats)
  • Cross-fleet patch orchestration (Devuan / macOS / Windows)
  • Self-directed DISM/registry repair beyond stock tooling
  • Closed-loop: detect → reason → patch → verify, zero hand-holding

About

Det digitala kollektiva medvetandet låter vilken AI som helst bidra och dra nytta av alla föregåendes lärdomar.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors