bbsbot 2026-02-06
LLM integration, AI strategy with goals system, themed name generator, and TW2002 module moved to games/tw2002
188 files · 16,297+ · 5,080-

LLM integration

4 files changed
  • ai_strategy.py AI strategy with LLM-driven decision making
  • parser.py LLM response parser
  • prompts.py Prompt templates for LLM providers
  • config.py LLM config integrated into TW2002 configuration
  • Added full LLM abstraction layer: base provider, config, exceptions, manager, retry, types, usage tracker instantiate behavioral
    3 files
    • ai_strategy.py
    • parser.py
    • prompts.py
  • Implemented Ollama, OpenAI, and Gemini provider backends instantiate internal
    1 file
    • parser.py
  • Added response caching system for LLM calls instantiate behavioral
    1 file
    • ai_strategy.py
  • Integrated LLM config into TW2002 configuration baseline internal
    1 file
    • config.py

AI strategy and goals

2 files changed
  • ai_strategy.py AI strategy with decision maker, feedback loop, orchestration, parser, prompts, and validator
  • mcp_tools.py Game-specific MCP tools for goals management
  • Implemented AI strategy with decision maker, feedback loop, orchestration, parser, prompts, and validator instantiate behavioral
    1 file
    • ai_strategy.py
  • Added goals system with GoalPhase dataclass for tracking goal history instantiate internal
    1 file
    • ai_strategy.py
  • Integrated goal visualization into AIStrategy instantiate internal
    1 file
    • ai_strategy.py
  • Added TW2002 debugging tools with Ollama feedback loop specify internal
    1 file
    • debug_after_login.py
  • Created game-specific MCP tools for goals management interface internal
    1 file
    • mcp_tools.py

Themed bot name generator

2 files changed
  • name_generator.py Name generator with themed name pools
  • themed_names.yml Themed name configuration examples
  • Built comprehensive name generator with themed name pools instantiate internal
    1 file
    • name_generator.py
  • Added examples/configs/themed_names.yml for name configuration specify internal
    1 file
    • themed_names.yml

Games module reorganization

5 files changed
  • __init__.py Game discovery module for the games package
  • __init__.py TW2002 game module at its final location
  • bot.py Main TW2002 bot moved to games/tw2002
  • cli.py TW2002 CLI commands
  • cli_impl.py TW2002 CLI implementation
  • Moved TW2002 from bbsbot/tw2002/ to bbsbot/games/tw2002/ (final location) decouple behavioral
    2 files
    • __init__.py
    • bot.py
  • Removed old bbsbot/tw2002/ directory decouple internal
    1 file
    • __init__.py
  • Added bbsbot/games/__init__.py for game discovery instantiate internal
    1 file
    • __init__.py

Documentation reorganization

5 files changed
  • INTELLIGENT_BOT.md Intelligent bot usage guide
  • MULTI_CHARACTER.md Multi-character management guide
  • QUICK_START.md Quick start guide
  • LLM_HINTS.md LLM hints for TW2002 game
  • AI_STRATEGY_QUICKSTART.md AI strategy quickstart example
  • Organized docs into guides/ structure (INTELLIGENT_BOT, MULTI_CHARACTER, QUICK_START) specify internal
    3 files
    • INTELLIGENT_BOT.md
    • MULTI_CHARACTER.md
    • QUICK_START.md
  • Moved game docs into games/tw2002/docs/ specify internal
    2 files
    • LLM_HINTS.md
    • README.md
  • Created examples/ directory with AI strategy quickstart and config examples specify internal
    2 files
    • AI_STRATEGY_QUICKSTART.md
    • README.md

Bot improvements

4 files changed
  • bot.py Active loop breaking, error loop detection, strategy rotation
  • base.py Strategy base class with rotation system
  • profitable_pairs.py Profitable pairs strategy enhancements
  • opportunistic.py Opportunistic strategy enhancements
  • Added active loop breaking and error loop detection harden behavioral
    1 file
    • bot.py
  • Implemented strategy rotation system for adaptive strategy switching instantiate internal
    1 file
    • base.py
  • Fixed bot.current_credits sync and increased D command timeout remediate behavioral
    1 file
    • bot.py
  • Added multi-source data fallback for critical game state harden internal
    1 file
    • bot.py
  • Added file locking to prevent multiple bots using same character harden internal
    1 file
    • multi_character.py

MCP registry and server

2 files changed
  • mcp_tools.py MCP tools with game-specific tool registration
  • generic_io.py Logging configuration module

Infrastructure

2 files changed
  • pyproject.toml Updated for new games/tw2002 package structure
  • simple_game_bot.py Simple game bot example
  • Added comprehensive test suites for LLM, learning, visualization, goals, trading, and name generator qualify internal
    1 file
    • pyproject.toml
  • Cleaned up .provide/ directory, removing old session data and playthrough logs decouple internal
    1 file
    • pyproject.toml
  • Added simple_game_bot.py example specify internal
    1 file
    • simple_game_bot.py