How pannu2009/ai-unkown works
NeuroBrain is a from-scratch character-level transformer with local chat and a browser-based inference option. Its principal workflow trains on text, saves model artifacts, and uses them to generate replies. The repository also contains a distinct self-directed agent subsystem for mood, learning, tool use, and personal records. Relationships below are limited to README statements and shown source references/calls; some agent scripts and browser wiring were not fully sampled.
Main entry points: mood.py Mood and feelings · model Model artifacts · data Training text · train.py Model training
Components 20
Model training and chat
- Training text
data - Model training
train.py - Mixed-corpus training
train_v2.py - Model artifacts
model - Local chat
chat.py
Browser chat
- Browser chat UI
web/index.html - Browser inference
web/brain.js - Web worker
worker/worker.js - Weights KV
Agent behavior
- Mood and feelings
agent/mood.py - Learning cycle
agent/autotrain.py - Tool guard and execution
agent/harness.py - Learning support
agent/learn.py - Development wall
agent/devwall.py - Log rotation
agent/logrotate.py
Agent records
- Morning briefing
agent/briefing.py - Daily report
agent/dayreport.py - User messaging
agent/message_arzh.py - Agent vault
agent/vault.py
Other components
- User
Connections 15
- Training text → Model training: trains on
README.md - Model training → Model artifacts: saves checkpoints
README.md - Training text → Mixed-corpus training: trains on
train_v2.py - Mixed-corpus training → Model artifacts: saves checkpoints
train_v2.py - User → Local chat: sends prompt
README.md - Local chat → Model artifacts: loads checkpoint
chat.py - User → Browser chat UI: sends prompt
- Browser chat UI → Browser inference: requests reply
- Browser inference → Web worker: fetches model data
web/brain.js - Web worker → Weights KV: reads model data
worker/worker.js - Learning cycle → Mood and feelings: reads mood
agent/autotrain.py - Morning briefing → Mood and feelings: reads mood
agent/briefing.py - Daily report → Mood and feelings: reads feelings
agent/dayreport.py - User messaging → Mood and feelings: checks mood
agent/message_arzh.py - Tool guard and execution → User: enforces rules