Skip to content

TheMindExpansionNetwork/neuroglyph-forge

Repository files navigation

Project site (GitHub Pages) · NeuroGlyph Forge

NeuroGlyph Forge

EPOC X → keystroke-aligned EEG decoder → Hermes Agent → Unreal Engine MCP

Brain2Qwerty-inspired BCI stack for 14-channel EMOTIV EPOC X — not compatible with Meta lab EEG checkpoints.

NeuroGlyph Forge banner

System brain map


What it is

NeuroGlyph Forge is an open research-to-demo pipeline for mind-linked typing and intent control:

  1. Record raw EEG (Cortex Premium) + keyboard timestamps
  2. Train TinyB2Q / EEGNet on aligned 500 ms epochs (14×25 @ 50 Hz)
  3. Decode live with confidence gates
  4. Reason in Hermes Agent (MCP tools)
  5. Act in Unreal via editor MCP (MoveLeft, SpawnDebugActor, …)

Part of the broader MindBot / synergetic cognition story — this repo is the sensory-motor slice (see docs/MINDBOT_INTEGRATION.md).

MVP

Hand / zone / intent from EEG → Hermes → Unreal scene action.

Progressive tasks: handzonechar29 / intent.

Quick start

git clone https://github.com/TheMindExpansionNetwork/neuroglyph-forge.git
cd neuroglyph-forge
python -m venv .venv
source .venv/Scripts/activate   # Windows Git Bash
pip install -e .
pytest tests/ -q
bash scripts/pipeline.sh hand
python scripts/live_bci_demo.py --seconds 3

Live headset: docs/CORTEX_SETUP.md · Unreal: docs/UNREAL_SETUP.md · Architecture: docs/SYSTEM.md · Brain map: docs/BRAINMAP.md · interactive HTML

Train: docs/TRAINABLE_DATASETS.md · Modal: docs/MODAL_TRAINING.md · Adapt: docs/ADAPTIVE_ORCHESTRATION.md · Why / English: docs/WHAT_THIS_DOES_FOR_YOU.md · First session: docs/FIRST_SESSION_PROTOCOL.md · 4070: docs/LOCAL_GPU.md · HF upload: docs/HF_UPLOAD.md · data/catalog.json

Hugging Face (artifacts)

Asset Repo
Fine-tuned hand model NeuroGlyph-EPOC-Typing-v1
Raw session staging (EN) neuroglyph-epoc-typing-en-v1

Weights and session CSVs live on HF — not committed to GitHub. Clone code here, pull checkpoints from HF or train locally (scripts/run_swarm_pipeline.py).

Repository layout

Path Role
neuroglyph_recorder/ Cortex JSON-RPC client, keylogger, session CSV
neuroglyph_data/ Epochs, EMOTIV CSV import, synthetic CI data
neuroglyph_models/ TinyB2Q, EEGNet, task heads
neuroglyph_train/ Train, eval, finetune, TorchScript export
neuroglyph_agent/ Hermes MCP tools + live decoder
neuroglyph_unreal/ Prediction → UE blueprint events
scripts/ pipeline.sh, live_bci_demo.py, collect_session.py

Hermes MCP

In-repo stdio server (train, preprocess, Unreal bridge):

# ~/.hermes/config.yaml — snippet in configs/hermes-mcp-snippet.yaml
mcp_servers:
  neuroglyph:
    command: "D:/neuroglyph-forge/.venv/Scripts/python.exe"
    args: ["-m", "neuroglyph_agent.hermes_stdio_mcp"]

Comfy Cloud (promo art, generative workflows): docs/COMFY_MCP.mdComfy Cloud MCP.

hermes mcp test comfy-cloud   # expects X-API-Key header

Datasets

Source Use
SpanishBCBL Pipeline / CER reference only
NeuroGlyph-EPOC-Typing-v1 (you record) Required for real accuracy

Brand assets

Regenerate with OpenAI gpt-image-2 (fallback gpt-image-1.5 / gpt-image-1):

python scripts/generate_brand_assets.py --all
python scripts/generate_brand_assets.py --brainmap

Outputs under assets/brand/. If OpenAI billing limit hits, use Hermes mcp_comfy_cloud_partner_generate with prompts in assets/brand/manifest.json.

License

Independent implementation. Brain2Qwerty is CC BY-NC 4.0; do not redistribute their weights with this repo.

Credits

About

EPOC X BCI typing decoder · Hermes · Comfy MCP · Unreal · MindBot

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors