Version: 0.5 (Bicameral Mind) Status: Operational Prototype Architecture: Hybrid Deterministic/Semantic
Logos is a Semantic Operating System overlay for Windows. It introduces a "Meaning Layer" between the user and the file system. Instead of managing files based solely on their location or extension, Logos manages them based on their Context and Intent.
The system now operates with a Bicameral Mind:
- Reflex (Left Hemisphere): Instant, rule-based execution (e.g., "If file contains 'invoice', move to Finance").
- Intuition (Right Hemisphere): Vector-based conceptual matching (e.g., "If file feels like a payment confirmation, move to Finance").
/logos-core
│
├── /cortex (The Brain)
│ ├── interpreter.py # Parses .logos manifests
│ ├── rules_engine.py # Strict Logic (Reflex)
│ ├── semantic_engine.py # Fuzzy Logic (Intuition/Vectors)
│ └── actuator.py # The Hands (File Ops, Logging)
│
├── /sensory (The Senses)
│ └── watcher.py # File System Monitor (Watchdog)
│
├── /memory (The Hippocampus)
│ └── vector_memory.py # Local Vector Store (all-MiniLM-L6-v2)
│
├── /workspace (The Membrane)
│ └── project.logos # The Configuration Manifest
│
├── main.py # Entry Point
└── requirements.txt # Dependencies
- Python 3.10+
- Windows OS (tested on win32)
-
Clone the repository:
git clone https://github.com/BruinGrowly/Logos-Core cd Logos-Core -
Install dependencies:
pip install -r requirements.txt
Note: This includes
sentence-transformers(~80MB model download on first run). -
Run the System:
python main.py
-
Interact:
- The system monitors the
./workspacefolder. - Drop files into this folder to trigger rules defined in
project.logos.
- The system monitors the
The system is controlled by project.logos files placed in monitored directories.
Manifest: Project_Alpha
Type: Entity
Rules:
# --- REFLEX RULES (Strict/Fast) ---
# Rule 1: Organization by Keyword
- Trigger:
Type: "File_Event"
Condition: "Filename"
Contains: ["invoice", "receipt", "bill"]
Action:
Type: "Move_File"
Destination: "./Financial_Docs"
# Rule 2: Security by Extension
- Trigger:
Type: "File_Event"
Condition: "Extension"
Is: [".secret", ".key"]
Action:
Type: "Log_Event"
Message: "Secure file detected. Verify encryption."
# --- INTUITION RULES (Fuzzy/Smart) ---
# Rule 3: Semantic Matching
# Matches files like "payment_doc_001.txt" even if they don't say "invoice"
- Trigger:
Type: "Semantic_Match"
Concept: "Payment Confirmation" # The system calculates the vector for this
Threshold: 0.4 # 0.0 to 1.0 similarity score
Action:
Type: "Move_File"
Destination: "./Financial_Docs"When a file enters the workspace:
- Sensation:
watcher.pydetects the file creation/modification. - Interpretation:
interpreter.pyreads the localproject.logosto understand the rules. - Reflex Check:
rules_engine.pychecks for strict matches (Filename/Extension).- If Match: The Actuator executes the action immediately.
- Intuition Check: If no reflex matches,
semantic_engine.pyactivates.- It encodes the filename into a vector.
- It compares it against the "Concepts" defined in your rules.
- If Similarity > Threshold: The Actuator executes the action.
- Phase 1: Interpreter (YAML Parsing)
- Phase 2: Watcher (File System Events)
- Phase 3: Reflex Engine (Strict Logic)
- Phase 4: Actuator (File Operations)
- Phase 5: Semantic Brain (Local Vector Embeddings)
- Phase 6: Deep Content Reading (OCR/PDF Parsing)
- Phase 7: Feedback Loop (Reinforcement Learning)
Logos Core — Code with Meaning.