Artificial SuperIntelligence GO type
A simplified implementation of the ASI-ARCH architecture for general problem-solving tasks. This is the upgraded version according to chapters 3-7 in the book.
ASI-GO-3 adapts the four-component architecture from ASI-ARCH:
- Cognition Base: Stores problem-solving strategies and patterns
- Researcher: Proposes solutions based on goals
- Engineer: Implements and tests solutions
- Analyst: Analyzes results and extracts insights
- Install Dependencies:
pip install -r requirements.txt
Copy .env.example to .env Add your API key for your chosen provider:
OpenAI (ChatGPT) Google (Gemini) Anthropic (Claude)
Edit .env and set LLM_PROVIDER to one of:
openai (default) google anthropic
Interactive Mode bashpython main.py Command Line Mode python main.py "Find the first 100 prime numbers" Features
Iterative Refinement: Automatically improves solutions based on feedback Knowledge Persistence: Learns from each problem-solving session
- Install dependencies:
pip install -r requirements.txt - Set up your
.envfile with appropriate API keys - Run:
python main.py
The system will guide you through solving any computational problem you provide!
Comprehensive Logging: Detailed logs for debugging Windows Optimized: Colored output and Windows-friendly paths
"Find the first 40 prime numbers" "Generate the Fibonacci sequence up to 1000" "Create a function to check if a string is a palindrome" "Solve the Tower of Hanoi problem with 4 disks" "Find all perfect numbers less than 10000"
"Create an efficient function to check if a number is prime"
"Implement the most efficient sorting algorithm you know"
"Solve a string manipulation problem using the best approach you've learned"
The system follows a cyclic process:
Researcher proposes a solution Engineer tests the implementation Analyst evaluates results Cognition Base stores insights Loop continues until success or max iterations
Edit .env to customize:
MAX_ITERATIONS: Maximum solving attempts (default: 5) TEMPERATURE: LLM creativity level (default: 0.7) LOG_LEVEL: Logging detail (INFO/DEBUG)
API Key Errors: Ensure your API key is correctly set in .env Import Errors: Run pip install -r requirements.txt Execution Timeouts: Complex problems may need increased timeout in engineer.py
When installing ASI-GO, you may encounter a TypeError: Client.__init__() got an unexpected keyword argument 'proxies' error. This occurs due to version conflicts between the OpenAI, Anthropic, and httpx libraries. The issue arises because different LLM providers require different versions of the shared httpx dependency. To resolve this, uninstall all LLM-related packages first (pip uninstall openai anthropic google-generativeai httpx httpcore anyio -y), then install httpx version 0.24.1 specifically (pip install httpx==0.24.1), followed by the OpenAI library (pip install openai==1.12.0). If you need multiple LLM providers, install them in this specific order to maintain compatibility. Alternatively, consider using separate conda environments for different LLM providers to avoid conflicts entirely.
MIT License - Feel free to modify and extend!
This implementation provides:
- Modular Architecture: Each component (Cognition Base, Researcher, Engineer, Analyst) is separate and focused
- Multi-LLM Support: Works with ChatGPT, Gemini, or Claude (Grok uses OpenAI's API)
- Robust Error Handling: Comprehensive try-catch blocks and logging
- Checkpoint System: Saves progress at each step
- Interactive Interface: Easy-to-use command line interface with colored output
- Knowledge Persistence: Learns from each session
- Windows Optimization: Uses appropriate paths and libraries for Windows
