Skip to content

ConcordDev/concord-cognitive-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,866 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🜂 Concord Cognitive Engine

A verifying knowledge substrate that wears 260 faces.

One developer · ~2.16M lines of source · 326 catalogued novelties · 0 critical findings

🌐 Live at concord-os.org  ·  Why it's different →  ·  The 326 novelties →  ·  Verified snapshot →

source lenses macros brains tests board dev


TL;DR

Most AI tools generate. Concord generates and verifies, attributes, and remembers — then audits and repairs itself. It's a single knowledge substrate (the DTU) expressed through 260 domain "lenses," welded to a creator economy, a 3D civilization simulator, and a mesh network that works without the internet. In a market where the bottleneck has shifted from generating to trusting, verification is the product.

Not "ChatGPT with more features." A verifying substrate that happens to wear 260 faces — and the moat isn't any one face, it's that they're all the same fabric, the fabric audits and repairs itself, and the whole thing refuses what it can't prove.


The architecture, from altitude

Concord is best read as concentric rings — inner rings are the substrate, outer rings are Concord acting on itself and the world.

flowchart TD
    subgraph R1["🧬 Substrate"]
        DTU["DTU — 4-layer self-compressing<br/>knowledge unit · auto MEGA→HYPER 33:1"]
    end
    subgraph R2["🧠 Cognition"]
        BRAINS["5-brain router + custom model<br/>HLR 7-mode reasoning · 5-voice council"]
    end
    subgraph R3["💰 Economy"]
        ECON["Citation→royalty cascade<br/>perpetual, depth-halving"]
    end
    subgraph R4["🌍 World"]
        WORLD["Concordia sim · embodied layers 7–13<br/>NPC schemes · real-physics combat"]
    end
    subgraph R5["🛰️ Reach"]
        MESH["7-transport mesh · cnet federation<br/>works without the internet"]
    end
    subgraph R6["🔍 Self-aware meta-layer"]
        META["Cartographer · 34 detectors · drift monitor<br/>repair cortex → governance-gated self-surgery"]
    end
    subgraph R7["🚀 Outer layer"]
        OUTER["ConKay builder · CaMeL safety<br/>real Gmail/Calendar · MCP verified-compute wedge"]
    end
    DTU --> BRAINS --> ECON --> WORLD --> MESH
    META -.audits + repairs.-> DTU & BRAINS & ECON & WORLD & MESH
    OUTER --> DTU
Loading

By the numbers (reproduce every one)

Metric Value Reproduce
Authored source ~2.16M LOC (3.01M incl. content) npm run count-loc
Frontend lenses 260 ls -d concord-frontend/app/lenses/*/
Backend domains 366 ls server/domains/*.js
Macro domains · pairs 492 · ~9,600 node scripts/verify-lens-backends.mjs
DB tables · migrations 690 · 333 npm run cartograph:static
Heartbeats (live sim) 127 cartographer
AI brains 5 (4 cognitive + vision) server/lib/brain-config.js
Catalogued novelties 326 / 34 groups docs/NOVELTY_INVENTORY.md
Tests passing 27,912 cd server && npm test
Code-health board 122 findings · 0 critical cd server && node scripts/run-detectors.js

Everything here is falsifiable by design. npm run check-doc-claims re-runs the reproduction command behind every numeric claim in the docs and fails on drift.


Why it's different — the white space

Every incumbent owns exactly one vector. None ship the intersection. (full argument: docs/WHY_CONCORD_IS_DIFFERENT.md)

Vector Who owns it Concord
Grounded / verified Perplexity, Wolfram reason.verify + citation floors + drift monitor
General capability ChatGPT ✅ 5-brain router + ~9,600 macros
Private / local Ollama ✅ local brains + consent gates + no-leak invariant
Controllable memory Notion ✅ DTU substrate + scope/consent gates
Owned / no-subscription (unowned) ✅ free + local + 95%-to-creator economy

The closest one-liner: Wolfram × Roblox, built by one person — a verified-compute knowledge engine fused with a creator-economy world platform, plus a self-auditing layer neither has.


The moat is the couplings

The 326 novelties matter less than how they're wired to each other. Anyone can copy a primitive; copying the web is the years-long part.

flowchart LR
    DRIFT["corpus contradiction<br/>(drift monitor)"] -->|spawns| QUEST["playable quest /<br/>haunted game-zone"]
    PAIN["combat damage"] -->|somatic ledger| XP["skill XP"] -->|grants| BUFF["resist buff"]
    CITE["cite a DTU"] -->|pays ancestry forever| ROYALTY["depth-halving royalty"]
    ACT["what you actually did"] -->|stitched, never invented| DREAM["offline dream"]
    BUG["a bug"] -->|AI-generated VERIFIED fix| GATE["governance proposal<br/>(never auto-applied)"]
Loading

The knowledge graph, the economy, the game, and the codebase's own self-repair are the same fabric. No incumbent has that.


The rarest property: self-aware by construction

Concord carries a running model of itself and acts on it — the part that's genuinely hard to find anywhere:

  • Cartographer auto-maps its own anatomy (690 tables, 127 heartbeats, ~9,600 macros) every pass.
  • 34 detectors + a baseline-ratchet audit its own honesty — CI fails on any new high/critical. (It's why this repo's docs are falsifiable.)
  • Drift monitor watches the corpus for 6 ways the system can lie to itself.
  • Repair cortex proposes its own surgery but can't perform it unsupervised — every code fix routes through a governance gate.

A system engineered to distrust itself is the right architecture for the one thing the AI market actually lacks.


Under-appreciated strengths

Real deterministic compute — not LLM-guessed. A symbolic CAS, direct-stiffness FEA, a gate-based quantum statevector simulator, stoichiometry, orbital mechanics, causal-closure analysis, NEC electrical code, aircraft weight & balance, k-anonymity, double-entry accounting, an epidemiology sim. (Inventory groups O · U · AH.) This is the R&D wedge: an agent that computes the answer instead of hallucinating it.

Real connectors. Gmail + Google Calendar are real two-way (send/push + read/inbox/pull) on an SSRF-guarded chokepoint with encrypted per-user tokens.


How a request flows

sequenceDiagram
    participant U as User / Agent / MCP client
    participant G as 3-gate permission
    participant M as runMacro (~9,600)
    participant B as 5-brain router
    participant D as DTU substrate
    participant E as Citation→royalty economy
    U->>G: POST /api/lens/run {domain, name, input}
    G->>M: authMW · publicReadDomains · Chicken2
    M->>B: route by reasoning class (or deterministic compute)
    B->>D: read / mint DTUs (4-layer, self-compressing)
    D->>E: citation fires the royalty cascade
    E-->>U: { ok, result } — verified, attributed, remembered
Loading

Screenshots

Concord landing

A lens — Finance (left), Code (right). Each lens reads as the app it replaces (a trading dashboard, a VS Code shell) while sharing one substrate, one macro spine, one economy:

Finance Code
Finance lens Code lens

Captured from a live local instance via scripts/capture-screenshots.mjs (Playwright, against the cached chromium). A UI density/hierarchy pass is in progress for the busier lenses; point the script at any running instance to regenerate docs/images/*.png:

CONCORD_URL=https://your-instance CONCORD_USER=you@example.com CONCORD_PASS=… \
  node scripts/capture-screenshots.mjs

Maturity — honest

Code-complete and prod-config-correct, sitting at the deploy line. What's left is operational (secrets, a public URL, a GPU host, provider accounts), not engineering — plus the normal first-contact-with-reality pass (it has never met a real user, real Google traffic, or real load). A handful of systems (the Foundation signal-layer, some emergent-civilization systems) are research-grade — built and wired, not battle-tested. (Full caveats: docs/WHY_CONCORD_IS_DIFFERENT.md · docs/STATE_OF_CONCORD.md.)


Quickstart

# Backend
cd server && npm install && npm run migrate && npm start      # :5050
# Frontend
cd concord-frontend && npm install && npm run dev             # :3000
# Full stack (backend + frontend + 5 Ollama brains + nginx/redis/qdrant/prometheus)
docker-compose up

Requires JWT_SECRET in production. Five Ollama instances are tuned for an RTX PRO 4500 Blackwell (override any model via env). See docs/CONNECTORS_GO_LIVE.md for connector setup.


Repo map

Path What's there
server/server.js The 76k-line monolith — all routes, the macro dispatcher, the tick loop
server/domains/ 366 domain engines (the lens backends)
server/emergent/ 214 simulation modules (the living layer)
server/lib/ 580+ subsystem libs (brains, DTUs, embodied, repair cortex, detectors)
server/migrations/ 333 numbered migrations (690 tables)
concord-frontend/ Next.js 15 — 260 lenses, the lens-runtime framework, Concordia 3D
concord-mobile/ React Native — real BLE/WiFi-P2P/NFC, mesh-aware, offline-first
docs/ The strategic + verified docs (below)

Docs worth reading

Doc Purpose
WHY_CONCORD_IS_DIFFERENT.md The strategic thesis — why the combination is defensible
NOVELTY_INVENTORY.md All 326 novelties / 34 groups, each → a source file (the build-reference map)
STATE_OF_CONCORD.md Verified snapshot — every number reproduced from a command
SCIFI_FEASIBILITY_MAP.md Code-grounded audit — what's real vs aspirational
CONNECTORS_GO_LIVE.md Operator runbook for the Gmail/Calendar connectors

The artifact is the pitch. Clone it, run the commands, read the receipts.

In an AI market where the bottleneck shifted from generating to trusting — that's the bet, and it's already built.

About

2million+ LOC. Lens Architecture . 5 LLM brains. A self-compressing knowledge substrate, a creator economy, a 3D civilization sim. Solo project, live at <concord-os.org>.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors