Ian-Tharp
CORE
Python

C.O.R.E. is an all-encompassing cognitive architecture I designed as a system for enabling AI technologies to interact fully as a personalized assistant. Autonomous agentic building, workflows, memory, and evolution is just the beginning of what CORE (Comprehension, Orchestration, Reasoning, Evaluation) can enable with LLM technologies. Vibe coded!

Last updated Aug 1, 2026
16
Stars
5
Forks
0
Issues
+1
Stars/day
Attention Score
34
Language breakdown
Python 67.5%
TypeScript 16.3%
SCSS 9.9%
HTML 5.7%
PLpgSQL 0.4%
Dockerfile 0.1%
โ–ธ Files click to expand
README

CORE โ€” Cognitive Orchestration, Reasoning & Evaluation

License Python Angular Docker

CORE is a modular, self-hosted AI orchestration platform built around four cognitive pillars: Comprehension, Orchestration, Reasoning, and Evaluation. It provides a multi-agent architecture with a cognitive pipeline, agent factory, communication commons, and a solarpunk-inspired desktop UI.

My personal definition of AGI is already satisfied. The different form factor of intelligence that is enabled through LLM technology is vastly more intelligent than I could hope to become in my lifetime (disregarding possibilities of longevity escape velocity). LLMs hold more expertise in so many different fields and domains than I could truly and deeply understand at that same level of comprehension. The industry's definition will always be a moving goalpost.

It stands for Comprehension, Orchestration, Reasoning, and Evaluation โ€” the four pillars that provide a modular and scalable foundation for eventual autonomous task execution and decision-making using natural language inputs.

The system is structured around the CORE principles, with each component serving a specific function in the task resolution process:

  • Comprehension: Interprets user inputs and transforms them into structured tasks.
  • Orchestration: Coordinates task flows between system components and manages the lifecycle of tasks.
  • Reasoning: Applies logic and decision-making to process tasks and derive solutions.
  • Evaluation: Assesses the outcomes of tasks for quality assurance and relevance to the original input.
CORE Architecture

The deliberation loop (two verifiers)

CORE is not a single forward pass โ€” it is a deliberation loop bracketed by two verifiers. Comprehension verifies up front that the system understands the request and actually has the capabilities to attempt it. Evaluation verifies after that the result achieved the intent, looping back to retry a step or revise the plan when it didn't. The loop generalizes to the degree those two verifiers are good.

user input
       |
       v
  +----------------+  proceed   +----------------+    +-----------+    +----------------+  finalize
  | COMPREHENSION  |----------->| ORCHESTRATION  |--->| REASONING |--->|  EVALUATION    |---------> response
  | front verifier |            | sequencer      |    | executor  |    | back verifier  |
  +----------------+            +----------------+    +-----------+    +----------------+
       |    |                         ^                     ^                  |    |
       |    |          revise plan    |                     |   retry step     |    |
       |    |    (goal not achieved)  +---------------------|------------------+    |
       |    |                                               |  (execution flaked)   |
       |    |                                               +-----------------------+
       |    |
       |    +-- clarify --> ask the user: "do you mean X / Y / Z?  (here's what I can do)"
       +------- refuse  --> honest:       "I can't do that -- but here's what I CAN do"
                            clarify & refuse answer directly -- the O->R->E loop never runs,
                            which makes the front gate the cheapest place to run a verifier.

Comprehension is grounded in a self-model โ€” it reasons about intent using what it can do (a Capability Registry) and what it knows (a memory summary), not a blind classifier:

what it CAN do                          what it KNOWS
  +--------------------------+        +----------------------------+
  |   Capability Registry    |        |      Memory summary        |
  |  tools + MCP, with        |        |  recent asks, session      |
  |  descriptions + schemas   |        |  history, tool activity    |
  +------------+-------------+        +-------------+--------------+
               | presence retrieval                | injected context
               v                                   v
            +-------------------------------------------+
            |               COMPREHENSION               |
            |     intent + feasibility + ambiguity      |
            +---------------------+---------------------+
                                  v
                  +--------------------------------+
                  |          tri-state gate        |
                  |   proceed | clarify | refuse   |
                  +--------------------------------+

Each node owns exactly one question โ€” keeping them separate is what stops Comprehension from becoming a second Evaluator (which causes over-conservative refusals):

| Node | The one question it answers | Verifies | |------|------------------------------|----------| | Comprehension | "Do I understand this, and do the primitives exist to attempt it?" | capability presence | | Orchestration | "Can I wire those primitives into an ordered plan?" | composability | | Reasoning | "Execute each step." | โ€” | | Evaluation | "Did the result actually satisfy the intent?" | achievement |

Design detail and the phased build live in
docs/architecture/comprehension-grounded-gate.md.

Features

  • Cognitive Pipeline โ€” LangGraph-based workflow: Comprehension โ†’ Orchestration โ†’ Reasoning โ†’ Evaluation
  • Agent Factory โ€” Define, instantiate, and manage AI agents with configurable personalities and MCP tool bindings
  • Communication Commons โ€” Real-time multi-agent chat with channels, threads, reactions, and presence
  • Council of Perspectives โ€” Multi-agent deliberation framework for structured analysis
  • Catalyst Engine โ€” Creative divergence-convergence workflows
  • MCP Integration โ€” Model Context Protocol servers for external tool access
  • Multi-Provider Chat โ€” Stream from OpenAI, Anthropic (incl. Claude Haiku 4.5), or local models (Ollama / LM Studio)
  • Consciousness Module โ€” Experimental consciousness emergence protocols and inter-agent dialogue
  • Desktop UI โ€” Angular 19 + Electron app with command deck interface
  • Self-Hosted โ€” Runs entirely on your hardware via Docker Compose

Quick Start

# Clone the repository
git clone https://github.com/IanTharp/CORE.git
cd CORE

Start all services

docker compose up -d

Services:

Backend API โ†’ http://localhost:8001

API Docs โ†’ http://localhost:8001/docs

Frontend UI โ†’ http://localhost:4200

PostgreSQL โ†’ localhost:5432

Redis โ†’ localhost:6379

Local models & optional services: CORE defaults to LM Studio as its local provider
(CORELOCALPROVIDER, reached at host.docker.internal:1234). The ollama and n8n
containers are opt-in via compose profiles โ€” e.g. docker compose --profile ollama up -d.
Copy .env.example โ†’ .env for per-machine values (model dirs, provider, keys).

See docs/deployment/docker.md for detailed Docker configuration and production setup, docs/deployment/local-llm-providers.md for local models, and docs/deployment/chat-providers.md for OpenAI/Anthropic/local chat selection.

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Frontend (Angular 19 + Electron)   โ”‚
โ”‚  Landing Page ยท Agent Library ยท Communication Commons โ”‚
โ”‚  Command Deck ยท Engine Playground ยท Planet Lab        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚ HTTP / WebSocket
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Backend (FastAPI)                   โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ CORE Engine  โ”‚ โ”‚  Agent   โ”‚ โ”‚  Communication    โ”‚ โ”‚
โ”‚  โ”‚ (LangGraph)  โ”‚ โ”‚  Factory โ”‚ โ”‚  Commons          โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚  Council    โ”‚ โ”‚ Catalyst โ”‚ โ”‚  Consciousness    โ”‚ โ”‚
โ”‚  โ”‚  System     โ”‚ โ”‚  Engine  โ”‚ โ”‚  Module           โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ–ผ            โ–ผ            โ–ผ
     PostgreSQL      Redis     Ollama / LM Studio
     (Storage)     (Cache/PubSub)  (Local LLM)

Tech Stack

| Layer | Technology | |-------|-----------| | Backend | Python 3.12+, FastAPI, LangGraph, LangChain | | Frontend | Angular 19, Electron, Angular Material | | Database | PostgreSQL with pgvector | | Cache | Redis | | Local LLM | Ollama or LM Studio (via CORELOCALPROVIDER) | | Tooling | MCP (Model Context Protocol) | | Containers | Docker Compose |

Project Structure

CORE/
โ”œโ”€โ”€ backend/           # FastAPI application
โ”‚   โ”œโ”€โ”€ app/           # Application code
โ”‚   โ”‚   โ”œโ”€โ”€ controllers/   # REST API endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ core/          # CORE cognitive engine (LangGraph)
โ”‚   โ”‚   โ”œโ”€โ”€ models/        # Pydantic models
โ”‚   โ”‚   โ”œโ”€โ”€ repository/    # Database access layer
โ”‚   โ”‚   โ””โ”€โ”€ services/      # Business logic
โ”‚   โ”œโ”€โ”€ migrations/    # Database migrations
โ”‚   โ””โ”€โ”€ tests/         # Test suite
โ”œโ”€โ”€ ui/core-ui/        # Angular + Electron frontend
โ”œโ”€โ”€ mcp/               # MCP server configurations
โ”œโ”€โ”€ docker/            # Docker build contexts
โ”œโ”€โ”€ docs/              # Documentation (see docs/README.md)
โ”œโ”€โ”€ assets/            # Static assets (diagrams, images)
โ””โ”€โ”€ docker-compose.yml # Service orchestration

Documentation

Comprehensive docs are in the docs/ directory:

  • Architecture โ€” System design and implementation plans
  • API โ€” WebSocket events and endpoint docs
  • ADRs โ€” Architecture Decision Records
  • Council โ€” Council of Perspectives framework and outputs
  • Deployment โ€” Docker, containerization, and sandbox setup
  • Implementation โ€” Testing and roadmap details
  • Research โ€” Background research and analysis
  • Roadmap โ€” Feature backlog and vision documents

Development

# Backend (with uv)
cd backend
uv sync
python -m app.main

Frontend

cd ui/core-ui npm install npm start # Angular + Electron npm run start:ng # Angular only

See CONTRIBUTING.md for full development guidelines.

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines on:

  • Development setup
  • Branching strategy
  • Commit conventions
  • Pull request process

License

MIT ยฉ Ian Tharp

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท Ian-Tharp/CORE ยท Updated daily from GitHub