project-5829ec9b

byNOUS-ONE

Let me read the additional content you shared first. I read the full document — this is a deeply ambitious vision. You're not building a chatbot; you're architecting a persistent, self-modifying cognitive organism. Let me ask a few targeted questions to make sure I build the right thing first. Now I have a clear picture. You're building a persistent cognitive organism — not a chatbot, but a long-lived process that remembers, reasons, learns, and rewrites itself. Let me build this. I'll construct a single, runnable Python project with all three layers: - Cognitive Core: Ollama (local) + OpenAI/Claude (cloud) with smart routing - Dynamic Memory: Working memory + Chroma vector DB for long-term storage - Goal-Driven Agency: Gymnasium + PPO for learning tool-use and task strategies - Self-Modification: Sandboxed code generation with safety checks - Persistent Daemon: Always-on process with evolving self-model Let me start building. CORTEX is built. Here's what you've got: What Was Built A 19-file Python project implementing all three layers of your cognitive architecture: Layer 1 — Cognitive Core (`core/`) Module Purpose `llm_router.py` Smart routing between local Ollama (Mistral/LLaMA) and cloud (GPT-4o/Claude) based on estimated query complexity `perception.py` Text → embeddings, Image → CLIP embeddings, Audio → Whisper → text → embeddings `reasoning.py` Structured reasoning with hidden chain-of-thought, action selection, planning, self-reflection Layer 2 — Dynamic Memory (`memory/`) Module Purpose `working_memory.py` Short-term buffer with TTL decay, goal tracking, focus management `long_term_memory.py` ChromaDB vector store with semantic retrieval (similarity + recency + importance + access frequency) `retrieval_loop.py` The full cycle: perceive → embed → retrieve → inject into working memory → store experience Layer 3 — Goal-Driven Agency (`agency/`) Module Purpose `environment.py` Gymnasium environment where state = working memory + confidence, actions = 9 discrete choices `rl_trainer.py` PPO training with configurable rewards for correctness, efficiency, user satisfaction Self-Modification (`tools/`) Module Purpose `self_modify.py` AST-based safety checker + sandboxed code execution with restricted builtins, no file/network access Persistent Daemon (`daemon/`) Module Purpose `cortex_daemon.py` Always-on process with self-model (evolving identity), life log, auto-save every 5 min, periodic reflection CLI (`cortex.py`) Commands: `daemon`, `chat`, `status`, `self`, `memory`, `train`, `reset` How to Run It ```bash cd /mnt/agents/output/cortex python -m venv .venv && source .venv/bin/activate pip install -r requirements.txt # Requires Ollama running locally ollama pull mistral:7b # Interactive chat python cortex.py chat # Or persistent daemon python cortex.py daemon ``` The `README.md` has full setup instructions, configuration via `.env`, and architecture docs. This isn't a simulation — it's a persistent organism that remembers, learns, and rewrites itself. Start it, talk to it, let it grow.

LandingMemoryLoginCognitiveCoreAgencySelfModificationSettingsDaemonSignupChatDashboard
Landing

Comments (1)

AnonymousJul 15, 2026

Persistent Cognitive Organism

Project Tasks

108 workspace tasks
#1

Define Database Schema

100 cr estimated
Backlog
#2

Implement API Authentication

47.95 cr estimated
Backlog
#3

Develop Cognitive Core API

71.93 cr estimated
Backlog
#4

Implement Dynamic Memory Service

59.94 cr estimated
Backlog
#5

Develop Goal-Driven Agency

71.93 cr estimated
Backlog
#6

Implement Self-Modification Sandbox

47.95 cr estimated
Backlog
#7

Deploy Persistent Daemon

59.94 cr estimated
Backlog
#8

Implement API Authorization

47.95 cr estimated
Backlog
#9

Implement Architecture Section for Landing

52.72 cr estimated
Backlog
#10

Implement CTASection for Landing

35.15 cr estimated
Backlog
#11

Implement Features Section for Landing

52.72 cr estimated
Backlog
#12

Implement Footer for Landing

35.15 cr estimated
Backlog
#13

Implement Hero Section for Landing

70.3 cr estimated
Backlog
#14

Implement How It Works Section for Landing

52.72 cr estimated
Backlog
#15

Implement Navigation for Landing

35.15 cr estimated
Backlog
#16

Implement Navigation for Login

52.72 cr estimated
Backlog
#17

Implement Login Form Card for Login

70.3 cr estimated
Backlog
#18

Implement Login Social Divider for Login

35.15 cr estimated
Backlog
#19

Implement Login Social Buttons for Login

52.72 cr estimated
Backlog
#20

Implement Login Signup Prompt for Login

35.15 cr estimated
Backlog
#21

Implement Footer for Login

52.72 cr estimated
Backlog
#22

Implement Signup Form Header for Signup

35.15 cr estimated
Backlog
#23

Implement Signup Credentials Fields for Signup

70.3 cr estimated
Backlog
#24

Implement Signup Terms Consent for Signup

52.72 cr estimated
Backlog
#25

Implement Signup Submit And Link for Signup

35.15 cr estimated
Backlog
#26

Implement Signup Social Login for Signup

52.72 cr estimated
Backlog
#27

Implement Dashboard Sidebar for Dashboard

52.72 cr estimated
Backlog
#28

Implement Dashboard Page Title for Dashboard

35.15 cr estimated
Backlog
#29

Implement Dashboard System Status for Dashboard

52.72 cr estimated
Backlog
#30

Implement Dashboard Quick Actions for Dashboard

35.15 cr estimated
Backlog
#31

Implement Component Status Cards Grid for Dashboard

52.72 cr estimated
Backlog
#32

Implement System Resource Gauges for Dashboard

52.72 cr estimated
Backlog
#33

Implement System Performance Charts for Dashboard

70.3 cr estimated
Backlog
#34

Implement Recent Event Timeline for Dashboard

52.72 cr estimated
Backlog
#35

Implement Event Log Filters for Dashboard

35.15 cr estimated
Backlog
#36

Implement Conversation List for Chat

87.87 cr estimated
Backlog
#37

Implement Conversation Search for Chat

70.3 cr estimated
Backlog
#38

Implement Conversation Quick Actions for Chat

52.72 cr estimated
Backlog
#39

Implement Conversation Context Menu for Chat

87.87 cr estimated
Backlog
#40

Implement Chat Session Header for Chat

52.72 cr estimated
Backlog
#41

Implement Session Metadata Panel for Chat

52.72 cr estimated
Backlog
#42

Implement Session Settings Menu for Chat

52.72 cr estimated
Backlog
#43

Implement Message Display for Chat

87.87 cr estimated
Backlog
#44

Implement Context Badges for Chat

52.72 cr estimated
Backlog
#45

Implement Core Page Header for Cognitive Core

52.72 cr estimated
Backlog
#46

Implement Core Architecture Overview for Cognitive Core

70.3 cr estimated
Backlog
#47

Implement Routing Strategy Selector for Cognitive Core

52.72 cr estimated
Backlog
#48

Implement Routing Threshold Config for Cognitive Core

52.72 cr estimated
Backlog
#49

Implement Routing Test Panel for Cognitive Core

70.3 cr estimated
Backlog
#50

Implement Model Status Grid for Cognitive Core

52.72 cr estimated
Backlog
#51

Implement Model Action Panel for Cognitive Core

70.3 cr estimated
Backlog
#52

Implement Timing Parameters for Cognitive Core

52.72 cr estimated
Backlog
#53

Implement Security Settings for Cognitive Core

52.72 cr estimated
Backlog
#54

Implement Settings Nav for Settings

52.72 cr estimated
Backlog
#55

Implement Settings Header for Settings

35.15 cr estimated
Backlog
#56

Implement Cognitive Model Selection for Settings

52.72 cr estimated
Backlog
#57

Implement Cognitive Routing Strategy for Settings

52.72 cr estimated
Backlog
#58

Implement Cognitive Inference Params for Settings

52.72 cr estimated
Backlog
#59

Implement Memory Buffer Settings for Settings

52.72 cr estimated
Backlog
#60

Implement Memory Retention Settings for Settings

52.72 cr estimated
Backlog
#61

Implement Memory Recall Settings for Settings

52.72 cr estimated
Backlog
#62

Implement Agency Learning Settings for Settings

52.72 cr estimated
Backlog
#63

Implement Memory Hero for Memory

52.72 cr estimated
Backlog
#64

Implement Memory Tiers for Memory

70.3 cr estimated
Backlog
#65

Implement Storage Architecture for Memory

70.3 cr estimated
Backlog
#66

Implement Retrieval Pipeline for Memory

70.3 cr estimated
Backlog
#67

Implement Memory Decay for Memory

52.72 cr estimated
Backlog
#68

Implement Reinforcement Mechanism for Memory

52.72 cr estimated
Backlog
#69

Implement Memory CTA for Memory

35.15 cr estimated
Backlog
#70

Implement Agency Hero for Agency

52.72 cr estimated
Backlog
#71

Implement Agency Overview for Agency

52.72 cr estimated
Backlog
#72

Implement Goal Definition Form for Agency

35.15 cr estimated
Backlog
#73

Implement Metrics And Reward Config for Agency

52.72 cr estimated
Backlog
#74

Implement Training Parameters Panel for Agency

52.72 cr estimated
Backlog
#75

Implement Strategy Decision Tree for Agency

70.3 cr estimated
Backlog
#76

Implement Performance Gauge Card for Agency

35.15 cr estimated
Backlog
#77

Implement Reward Trend Chart for Agency

52.72 cr estimated
Backlog
#78

Implement Action Efficiency Bars for Agency

35.15 cr estimated
Backlog
#79

Implement Self Mod Page Header for Self Modification

52.72 cr estimated
Backlog
#80

Implement Sandbox Overview for Self Modification

52.72 cr estimated
Backlog
#81

Implement Code Review Tabs for Self Modification

1h 54m 47s52.72 cr estimated
Done
#82

Implement Code Editor for Self Modification

70.3 cr estimated
Backlog
#83

Implement Diff View for Self Modification

70.3 cr estimated
Backlog
#84

Implement Safety Analysis for Self Modification

70.3 cr estimated
Backlog
#85

Implement Code Review Actions for Self Modification

52.72 cr estimated
Backlog
#86

Implement Modification History for Self Modification

52.72 cr estimated
Backlog
#87

Implement Sandbox Actions for Self Modification

70.3 cr estimated
Backlog
#88

Implement Daemon Hero for Daemon

52.72 cr estimated
Backlog
#89

Implement Daemon Status Overview for Daemon

35.15 cr estimated
Backlog
#90

Implement Lifecycle Loop for Daemon

52.72 cr estimated
Backlog
#91

Implement CPUUsage Gauge for Daemon

17.57 cr estimated
Backlog
#92

Implement Memory Consumption Bar for Daemon

17.57 cr estimated
Backlog
#93

Implement Response Latency Metric for Daemon

17.57 cr estimated
Backlog
#94

Implement Error Rate Card for Daemon

17.57 cr estimated
Backlog
#95

Implement System Activity Log for Daemon

35.15 cr estimated
Backlog
#96

Implement Start Stop Control for Daemon

35.15 cr estimated
Backlog
#97

Create Cognitive Core API

95.9 cr estimated
Backlog
#98

Develop Dynamic Memory API

95.9 cr estimated
Backlog
#99

Implement Goal-Driven Agency API

1h 10m 11s95.9 cr estimated
Backlog
#100

Setup Self-Modification API

160 cr estimated
Backlog
#101

Integrate Daemon Backend and Frontend

120 cr estimated
Backlog
#102

Develop Memory Retention Rules

1h 31m 24s120 cr estimated
Done
#103

Implement API Client Service Layer

120 cr estimated
Backlog
#104

Setup Global State Management

120 cr estimated
Backlog
#105

Implement Backend Unit Tests

160 cr estimated
Backlog
#106

Implement E2E Tests for Chat

160 cr estimated
Backlog
#107

Deploy develop branch to stage

10s20 cr estimated
To Do
#108

Deploy develop branch to stage

9m 35s20 cr estimated
Done
Landing design preview
Landing: View Info
Login: Sign In
Dashboard: View Overview
CognitiveCore: Configure Routing
Memory: Configure Storage
Agency: Train Model
SelfModification: Review Sandbox
Daemon: Deploy Daemon
Dashboard: Monitor System
Settings: Update Config
Landing design preview
Landing: View Info
Login: Sign In
Dashboard: View Overview
CognitiveCore: Configure Routing
Memory: Configure Storage
Agency: Train Model
SelfModification: Review Sandbox
Daemon: Deploy Daemon
Dashboard: Monitor System
Settings: Update Config