Back to projects
AI / MLIn Progress

ECHO_feeling - Minecraft AI Companion

An internally-driven emergent game AI companion with cognitive science architecture for autonomous in-game operations and long-term memory.

TypeScriptElectronVueMineflayerLangChainsql.js

Overview

ECHO_feeling is an internally-driven emergent AI companion desktop application for Minecraft. The AI acts as an independent player character with long-term memory, remembering shared adventures with the human player.

Implementation Approach: Internal emergence — based on cognitive science architecture (7-layer cognition, PAD/OCC emotion, BDI intention), with partial hardcoding following theoretical frameworks.

Platform Scope: Windows 10/11 x64 only.

Key Differentiators

FeatureStandard Game AIECHO_feeling
MemoryNone/Single sessionCross-session long-term memory
OperationVoice suggestions onlyAutonomous character actions
EmotionNonePAD/OCC emotion model
IntentionNoneBDI intention system

Architecture

Built with Electron + Vue 3, core components include:

  • Mineflayer Bot Controller: Headless Minecraft client for full game interaction
  • LangChain Agent: DeepSeek API integration for natural language processing
  • 7-Layer Cognitive Architecture: Progressive cognition from perception to self-awareness
  • Layered Memory System (L0-L3): From identity to deep retrieval
  • Code Execution Sandbox: node:vm + static checks, upgradable to isolated-vm
  • Local Vector Database: sql.js storage with disk encryption support

Code Agent Mode

Player command → Mineflayer listener → LangChain Agent
→ Generate JavaScript code → Local sandbox batch execution
→ Store memory → Reply to player

Key design: Single LLM call generates complete operation code, zero API consumption during execution.

Memory Layers

LayerContentLoad Timing
L0Character identityAlways loaded
L1Core memory summaryEvery conversation
L2On-demand vector retrievalAI-initiated
L3Deep hybrid searchAI-initiated

Development

CommandDescription
npm run devDevelopment mode
npm run buildCompile to out/
npm run typecheckTypeScript check
npm testUnit tests
npm run e2eLightweight smoke test
npm run packBuild Windows installer

Status

Core functionality complete, optimization phase. Seven-layer cognitive architecture, PAD/OCC emotion system, BDI intention system, and layered memory implemented.