Back to projects
AI / MLIn Progress

ECHO_loop - React Agent Path AI Companion

Minecraft AI companion based on React Agent Loop engineering approach, using Electron + Mineflayer + LangChain architecture.

TypeScriptElectronVueMineflayerLangChainsql.js

Overview

ECHO_loop is a technical path for the Minecraft AI companion project, implementing the React Agent Loop engineering approach. The architecture combines LLM orchestration, Mineflayer game interaction, and local memory storage to create an AI that acts as an independent player character in the game.

Platform Support: Windows 10/11 x64 only.

Technical Architecture

┌─────────────────────────────────────────────────────────────┐
│                     Electron Desktop App                     │
├─────────────────────────────────────────────────────────────┤
│  Vue 3 Frontend (Chat UI / Memory Panel / Settings)         │
├─────────────────────────────────────────────────────────────┤
│                    IPC Communication Layer                   │
├─────────────────────────────────────────────────────────────┤
│                  Node.js Main Process                       │
│  ┌─────────────────────────────────────────────────────┐   │
│  │           LangChain Agent (Tool-Calling)             │   │
│  └─────────────────────────────────────────────────────┘   │
│  ┌─────────────────────────────────────────────────────┐   │
│  │              Mineflayer Bot Controller               │   │
│  └─────────────────────────────────────────────────────┘   │
│  ┌─────────────────────────────────────────────────────┐   │
│  │               Local Vector Database (sql.js)         │   │
│  └─────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘

Comparison with Other ECHO Paths

ProjectImplementation Approach
ECHO_feelingIntrinsic emergence (7-layer cognition, PAD/OCC emotion, BDI intention)
ECHO_loopReact Agent Loop engineering (this project)
ECHO_CLAWContext + Skill invocation, similar to Claude Code CLI

Core Workflow

Player Input → Mineflayer Listener → LangChain Agent
→ Generate JavaScript Code Blocks → Local Sandbox Batch Execution
→ Store Memory → Reply to Player

Development Scripts

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

Current Status

Design stage, architecture planning in progress.