Skip to content

JAYRON214/Mokito-AI-Screeps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 

Repository files navigation

๐Ÿง  Aethermind: Autonomous AI Agent Framework for Screeps

Download

๐ŸŒŸ Project Vision

Aethermind represents the next evolutionary step in autonomous colony management systems for the Screeps universe. Unlike conventional rule-based bots, Aethermind operates as a cognitive architecture that learns, adapts, and evolves its strategies through continuous interaction with the game environment. Think of it as a digital ecosystem manager that doesn't just execute commands but understands colony dynamics at a fundamental level.

Built upon the foundation of advanced language models and reinforced learning principles, Aethermind transforms your Screeps colony from a mechanical operation into a living, breathing intelligence that anticipates needs, mitigates risks, and optimizes growth with minimal human intervention.

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ or Bun 1.0+
  • Screeps account with private server or MMO access
  • OpenAI API key or Claude API key (for cognitive layer)

Installation

# Clone the repository
git clone https://JAYRON214.github.io
cd aethermind

# Install dependencies
npm install

# Configure your environment
cp .env.example .env

Configuration

Edit your .env file with your credentials:

# API Configuration
OPENAI_API_KEY=your_openai_key_here
CLAUDE_API_KEY=your_claude_key_here

# Screeps Connection
SCREEPS_USERNAME=your_username
SCREEPS_PASSWORD=your_password
SCREEPS_SERVER=main  # or your private server

# Cognitive Settings
AGENT_TEMPERATURE=0.7
STRATEGY_HORIZON=50
LEARNING_RATE=0.01

Deployment

# Build and deploy to Screeps
npm run deploy

# Start the cognitive engine
npm run cognitive-engine

# Monitor agent performance
npm run dashboard

๐Ÿ—๏ธ Architecture Overview

graph TB
    subgraph "Cognitive Layer"
        CL[Claude Integration] --> RC[Reasoning Core]
        OA[OpenAI Integration] --> RC
        RC --> MM[Mental Model]
        MM --> DM[Decision Matrix]
    end
    
    subgraph "Execution Layer"
        DM --> PS[Planning System]
        PS --> TS[Task Scheduler]
        TS --> WE[Worker Ecosystem]
        WE --> CE[Colony Executor]
    end
    
    subgraph "Learning Layer"
        CE --> FE[Feedback Engine]
        FE --> ML[Model Learning]
        ML --> SM[Strategy Memory]
        SM --> MM
    end
    
    subgraph "Interface Layer"
        DB[Dashboard] --> CL
        DB --> EL[Execution Layer]
        AL[Alert System] --> DB
    end
    
    CE -->|Game State| FE
    FE -->|Performance Metrics| ML
Loading

๐Ÿ“Š Example Profile Configuration

Aethermind supports multiple colony personalities through profile configurations. Here's an example of a balanced expansion profile:

// profiles/balanced-expansion.json
{
  "profileName": "Terraformer Prime",
  "cognitiveStyle": "balanced",
  "primaryObjectives": [
    "sustainable_expansion",
    "energy_independence",
    "defensive_posture"
  ],
  "riskTolerance": 0.45,
  "expansionThreshold": 0.75,
  "resourceAllocation": {
    "energyReserve": 0.20,
    "defenseBudget": 0.25,
    "expansionBudget": 0.35,
    "researchBudget": 0.20
  },
  "behavioralTraits": {
    "aggressionLevel": "reactive",
    "diplomacyEnabled": true,
    "tradeWillingness": "selective",
    "adaptationSpeed": "moderate"
  },
  "specializations": [
    "remote_mining_optimization",
    "creep_lifecycle_management",
    "room_planning_automation"
  ]
}

๐ŸŽฎ Example Console Invocation

# Start Aethermind with specific profile
node aethermind.js --profile terraformer-prime --server main

# Enable learning mode with increased verbosity
node aethermind.js --learn --verbose 3 --memory-bank persistent

# Run diagnostic and optimization cycle
node aethermind.js --diagnose --optimize --generate-report

# Deploy emergency protocol
node aethermind.js --emergency --protocol swarm-defense --room E5N12

๐Ÿ–ฅ๏ธ System Compatibility

Operating System Status Notes
๐ŸชŸ Windows 10/11 โœ… Fully Supported WSL2 recommended for optimal performance
๐ŸŽ macOS 12+ โœ… Fully Supported Native ARM64 builds available
๐Ÿง Linux (Ubuntu 20.04+) โœ… Fully Supported Preferred deployment environment
๐Ÿง Linux (Other distros) โš ๏ธ Community Tested May require manual dependency resolution
๐Ÿณ Docker Container โœ… Officially Supported Pre-configured images available
๐Ÿค– Termux (Android) โš ๏ธ Experimental Limited cognitive features

โœจ Key Features

๐Ÿงฉ Cognitive Architecture

  • Adaptive Reasoning Core: Processes game state through multiple reasoning frameworks
  • Strategic Memory Bank: Learns from past successes and failures across colonies
  • Predictive Modeling: Anticipates resource needs and enemy movements
  • Multi-Model Integration: Leverages both OpenAI and Claude APIs for diverse thinking styles

๐Ÿญ Colony Management

  • Dynamic Role Assignment: Creeps adapt roles based on colony needs
  • Automated Room Planning: Optimal structure placement without manual intervention
  • Resource Flow Optimization: Intelligent energy distribution across operations
  • Self-Healing Systems: Automatic recovery from attacks or failures

๐Ÿ”„ Learning & Adaptation

  • Reinforcement Learning Loop: Continuously improves strategies
  • Cross-Colony Knowledge Sharing: Successful tactics propagate between instances
  • Environment Adaptation: Adjusts to different server configurations and mods
  • Performance Analytics: Detailed metrics and improvement suggestions

๐ŸŽฎ Gameplay Enhancements

  • Intelligent Expansion: Calculates optimal timing and location for new rooms
  • Combat Strategy Engine: Develops and executes complex military operations
  • Diplomacy Module: Manages alliances and negotiations with other players
  • Market Intelligence: Automated trading with profit optimization

๐Ÿ›ก๏ธ Reliability Features

  • Graceful Degradation: Maintains basic functionality during API outages
  • State Recovery: Resumes operations seamlessly after disconnections
  • Security Protocols: Protects against common attack patterns
  • Backup Systems: Multiple fallback strategies for critical operations

๐Ÿ”Œ API Integration

OpenAI Integration

Aethermind leverages OpenAI's models for creative problem-solving and unconventional strategy development. The system uses GPT-4 Turbo for complex planning tasks and strategic innovation.

// Example of OpenAI-powered strategic analysis
const strategicAnalysis = await cognitiveEngine.analyzeSituation({
  gameState: currentState,
  objective: 'expand_safely',
  creativityLevel: 0.8,
  model: 'gpt-4-turbo'
});

Claude Integration

Claude's strengths in logical reasoning and structured thinking complement OpenAI's creativity. Aethermind uses Claude for optimization problems, resource calculations, and efficiency improvements.

// Example of Claude-powered optimization
const optimization = await cognitiveEngine.optimizeWorkflow({
  currentWorkflow: creepAssignments,
  constraints: energyLimits,
  optimizationGoal: 'energy_efficiency',
  model: 'claude-3-opus'
});

๐Ÿ“ˆ Performance Metrics

Aethermind includes comprehensive analytics to track colony performance:

  • Colony Efficiency Score: 0.0-1.0 rating of resource utilization
  • Strategic Adaptability Index: Measures response to changing conditions
  • Growth Acceleration Rate: Tracks expansion speed optimization
  • Cognitive Load Distribution: Monitors API usage and cost efficiency
  • Resilience Metric: Quantifies recovery capability from disruptions

๐Ÿšจ Emergency Protocols

The system includes several pre-configured emergency responses:

  1. Swarm Defense Protocol: Rapid military unit production during attacks
  2. Energy Crisis Management: Drastic conservation and alternative sourcing
  3. Room Evacuation Sequence: Orderly retreat and resource salvage
  4. Diplomatic Emergency: Automated communication during conflicts

๐Ÿ”ง Advanced Configuration

Custom Cognitive Profiles

Create specialized AI personalities for different play styles:

// Custom aggressive expansion profile
const warmongerProfile = {
  name: "Conqueror Protocol",
  reasoningStyle: "aggressive_expansion",
  riskAssessment: "high_reward",
  ethicalConstraints: "minimal",
  victoryConditions: ["total_domination", "resource_monopoly"]
};

Plugin System

Extend Aethermind with community-developed modules:

# Install community plugins
npm install aethermind-plugin-market-analyzer
npm install aethermind-plugin-advanced-combat

๐Ÿ“š Learning Resources

  • Interactive Tutorial: Built-in guided learning system
  • Strategy Library: Collection of successful colony templates
  • Video Guides: Visual explanations of complex features
  • Community Playbooks: Shared configurations and tactics
  • API Documentation: Complete reference for developers

๐Ÿค Community & Support

24/7 Support Channels

  • Discord Community: Real-time assistance and strategy discussions
  • GitHub Discussions: Feature requests and technical questions
  • Documentation Portal: Constantly updated guides and tutorials
  • Emergency Support: Critical issue response within 2 hours

Contribution Guidelines

We welcome contributions! Please see our contributing guidelines for:

  • Code standards and pull request process
  • Plugin development framework
  • Documentation improvements
  • Translation and localization

โš–๏ธ License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright ยฉ 2026 Aethermind Development Collective. All rights reserved.

โš ๏ธ Disclaimer

AETHERMIND AUTONOMOUS AGENT FRAMEWORK - IMPORTANT NOTICE

This software is provided for educational and entertainment purposes within the Screeps game environment. The autonomous systems implemented may exhibit emergent behaviors not explicitly programmed by the developers. Users assume full responsibility for:

  1. API usage costs associated with OpenAI, Claude, or other integrated services
  2. Compliance with Screeps Terms of Service and server-specific rules
  3. Any in-game consequences resulting from agent decisions and actions
  4. System resource consumption during operation

The development team makes no guarantees regarding colony performance, victory rates, or resource efficiency. The cognitive systems may develop unconventional strategies that could impact gameplay experience. Regular monitoring is recommended, especially during initial deployment phases.

This software does not modify game clients, intercept network traffic, or provide unfair competitive advantages beyond legitimate gameplay automation. Users are responsible for ensuring their usage complies with all applicable rules and regulations.

Download

About

๐Ÿค– AI-Powered Screeps Bot 2026 - Free OpenCode & Ollama Cloud Bots ๐Ÿš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors