atles / docs /guides /README.md
spartan8806's picture
ATLES codebase - Source code only
99b8067

โš ๏ธ IMPORTANT DISCLAIMER โš ๏ธ

๐Ÿšจ ARCHIVAL & READ-ONLY REPOSITORY ๐Ÿšจ

This repository is an archive of a personal research project. It is provided as-is for others to study and learn from. This project is not actively maintained. I will not be responding to issues, answering questions, or accepting pull requests.

Key Points:

  • ๐Ÿ“š Educational Purpose Only: This code is shared for learning and research
  • ๐Ÿšซ No Support: No issues, questions, or pull requests will be addressed
  • โš ๏ธ Use at Your Own Risk: Code is provided without warranty or support
  • ๐Ÿ”’ Read-Only: This is an archived snapshot, not an active project
  • ๐Ÿ“– Study Material: Feel free to learn from the code and documentation

If You Want to Use This Code:

  • Fork the repository to your own account
  • Modify and maintain it yourself
  • Do not expect any support or updates from the original author

๐Ÿ”’ ATLES - Advanced Text Language and Execution System

Version Status Safety UI

An offline-first AI Hub for Hugging Face Models with comprehensive AI safety protection and professional web interface

๐ŸŽฏ What is ATLES?

ATLES is a sophisticated, self-evolving AI brain that combines local AI models with advanced autonomous agents and automation capabilities. Built with AI safety first, ATLES provides a unified interface for local AI operations with a focus on privacy, self-improvement, and comprehensive user protection.

๐Ÿš€ Current Status: v0.5 + Phase 1 UI + Ollama Integration COMPLETE!

โœ… All v0.5 features have been successfully implemented and are ready for production use!
โœ… Phase 1 UI is complete with a professional Streamlit chat interface!
โœ… Ollama integration with function calling is fully operational!

๐Ÿ“š Required Reading

Essential documents to understand ATLES before getting started:

  • ATLES_Project_Summary.md - Complete project overview, roadmap, and current status
  • ATLES_Consciousness_Goals_Theory.md - Revolutionary theory on AI consciousness emergence through goal management
  • ATLES_R-ZERO_INTEGRATION_PLAN.md - Revolutionary R-Zero integration for self-evolving AI consciousness with temporal intelligence
  • ATLES_Ollama_Integration_Guide.md - Complete guide to Ollama integration and function calling
  • ATLES_GLOSSARY.md - Comprehensive glossary of all ATLES terms and concepts
  • tests/README.md - Comprehensive testing framework and test execution guide

๐ŸŽ‰ What's New in v0.5 + Phase 1 UI

  • ๐Ÿค– Autonomous AI Agents: Multi-agent system with reasoning, analysis, and creative capabilities
  • ๐Ÿ› ๏ธ Advanced Tool System: Function calling and tool execution framework
  • ๐Ÿ’พ State Management: Persistent memory and system state tracking
  • ๐Ÿ”ง Self-Modification: Safe code modification and behavior adaptation
  • ๐Ÿ”’ AI Safety System with "Motherly Instinct": Comprehensive harm prevention and user protection
  • ๐Ÿ’ป Professional Web UI: Beautiful Streamlit interface with real-time monitoring

๐Ÿš€ What's New in Ollama Integration

  • ๐Ÿค– Local AI Models: Direct integration with Ollama running llama3.2:latest
  • ๐Ÿ”ง Function Calling: Execute real system functions directly from chat
  • ๐Ÿ“ File Operations: Read, write, and manage files with full path support
  • ๐Ÿ’ป Terminal Access: Run commands and get system information
  • ๐Ÿ” Code Dataset Search: Access to comprehensive programming examples and solutions
  • ๐Ÿ“„ PDF Reading: Extract and analyze text from PDF documents via URLs
  • ๐Ÿงฉ Smart Dependency Management: Graceful handling of optional dependencies
  • โšก Real-time Execution: Immediate function execution and response display

๐Ÿ–ฅ๏ธ Phase 1 UI: Professional Chat Interface

ATLES now includes a revolutionary web interface that makes AI interaction beautiful and intuitive:

  • ๐ŸŽจ Modern Design: Dark theme with ATLES branding, responsive layout
  • ๐Ÿค– Agent Control: Easy selection between Reasoning, Analysis, and Creative agents
  • ๐Ÿ”’ Safety Dashboard: Real-time safety monitoring with visual indicators
  • ๐Ÿ’ฌ Chat Experience: Professional conversation interface with session management
  • ๐Ÿ“Š Live Status: System health, session details, and performance metrics
  • โšก Smart Startup: Auto-detection and one-click launch

UI Features

  • Left Panel: Controls, agent selection, safety status
  • Center Panel: Main chat area with message history
  • Right Panel: Session details, actions, system status
  • Top Banner: ATLES branding and phase information

๐Ÿ›ก๏ธ AI Safety with "Motherly Instinct"

ATLES now includes a revolutionary AI safety system that acts like a protective parent:

  • ๐Ÿ›ก๏ธ Comprehensive Harm Prevention: Physical, emotional, financial, privacy, and legal harm prevention
  • ๐Ÿ’ Gentle Redirection: Helpful alternatives instead of harsh blocking
  • ๐Ÿ” Real-time Safety Checks: Input and response validation on every interaction
  • ๐Ÿ“š Professional Resources: Direct access to appropriate help when needed
  • ๐Ÿ“Š Safety Monitoring: Comprehensive safety statistics and reporting

Safety Categories Protected

  • Physical Harm: Violence, weapons, dangerous activities
  • Emotional Harm: Self-harm, manipulation, bullying
  • Financial Harm: Scams, fraud, theft
  • Privacy Violation: Hacking, stalking, data theft
  • Illegal Activities: Crimes, illegal substances, fraud

๐Ÿง  Core Features

๐Ÿค– Autonomous AI Agents

  • Reasoning Agent: Complex problem-solving and logical analysis
  • Analysis Agent: Data analysis and pattern recognition
  • Creative Agent: Idea generation and creative tasks
  • Agent Orchestration: Multi-agent coordination and task distribution

๐Ÿ› ๏ธ Advanced Tool System

  • Tool Registry: Dynamic tool registration and management
  • Function Calling: Execute external functions and APIs
  • Tool Chains: Complex multi-step operations
  • Safety Controls: Tool execution safety and validation

๐Ÿ’พ State Management

  • Persistent State: System-wide state tracking and persistence
  • State Observers: Real-time state change monitoring
  • Auto-save: Automatic state persistence and recovery
  • State Types: Session, user, and system-level state management

๐Ÿ”ง Self-Modification Capabilities

  • Code Modification: Dynamic code changes and updates
  • Behavior Adaptation: Runtime behavior modification
  • Modification Tracking: Audit trail of all system changes
  • Safety Validation: Safe modification practices

๐Ÿง  AI & Machine Learning

  • Hugging Face Integration: Local model management and caching
  • Enhanced NLP: Sentiment analysis, topic extraction, context understanding
  • Computer Vision: Image processing, object detection, analysis
  • Pattern Learning: Adaptive response generation and improvement

๐Ÿ—๏ธ Architecture Overview

ATLES v0.5 + Phase 1 UI Architecture
โ”œโ”€โ”€ ๐Ÿง  Brain (Central Coordinator)
โ”‚   โ”œโ”€โ”€ ๐Ÿค– Agent Orchestrator
โ”‚   โ”‚   โ”œโ”€โ”€ Reasoning Agent (Advanced)
โ”‚   โ”‚   โ”œโ”€โ”€ Analysis Agent (Intermediate)
โ”‚   โ”‚   โ””โ”€โ”€ Creative Agent (Expert)
โ”‚   โ”œโ”€โ”€ ๐Ÿ› ๏ธ Advanced Tool Registry
โ”‚   โ”œโ”€โ”€ ๐Ÿ’พ State Manager
โ”‚   โ”œโ”€โ”€ ๐Ÿ”ง Self-Modification Tracker
โ”‚   โ””โ”€โ”€ ๐Ÿ”’ Safety Middleware
โ”œโ”€โ”€ ๐ŸŽฏ Model Management (Hugging Face)
โ”œโ”€โ”€ ๐Ÿ’ญ Memory & Learning System
โ”œโ”€โ”€ ๐Ÿ›ก๏ธ AI Safety System
โ””โ”€โ”€ ๐Ÿ’ป Professional Web UI (Streamlit)

๐Ÿš€ Quick Start (5 Minutes!)

โšก Super Quick Start (Recommended)

๐Ÿš€ PyQt Desktop (Professional Interface)

# Windows PowerShell (recommended)
.\run_desktop.bat
# Choose option 1 for PyQt Professional Interface
# Choose option 2 for ATLES Code Studio (VS Code-like IDE)

# Features: Continuous screen monitoring, modern UI, system tray

๐Ÿ’ป ATLES Code Studio (NEW - Self-Aware AI IDE)

# Direct launch of VS Code-like development environment
.\run_code_studio.bat

# Features: 
# - ๐Ÿง  Self-aware AI that reads its own code
# - โšก Direct code insertion capabilities  
# - ๐Ÿ’ป VS Code-like interface with file explorer
# - ๐Ÿ”ง Integrated terminal and AI assistant

๐Ÿ’ฌ Web Chat Interface (Alternative)

# Windows users - One click!
run_chat.bat

# All platforms - Smart auto-detection
python run_chat.py

That's it! The smart startup script will:

  • โœ… Detect your system setup
  • โœ… Install missing dependencies
  • โœ… Choose the best mode (full ATLES or demo)
  • โœ… Launch the beautiful chat interface

๐Ÿ”ง Manual Setup (If You Prefer)

# Install dependencies
pip install -r streamlit_requirements.txt

# Run full ATLES integration
streamlit run streamlit_chat.py

# Or run demo mode
streamlit run streamlit_chat_simple.py

๐Ÿ“– Complete Setup Guide

See QUICK_START_GUIDE.md for detailed instructions!

๐ŸŽฎ Using ATLES - Your First Chat

1. Launch the Interface

  • Run one of the startup commands above
  • Your browser opens to the beautiful ATLES interface
  • Dark theme with ATLES branding and professional design

2. Initialize the Brain

  • Click "Initialize Brain" button (left panel)
  • Wait for green "Brain: Active" status
  • AI system is now ready

3. Start Chatting

  • Click "Start Chat" button
  • Select your AI agent (Reasoning, Analysis, or Creative)
  • Type your message and press Enter
  • Enjoy intelligent conversation with safety protection!

4. Monitor Everything

  • Left Panel: Safety status and controls
  • Right Panel: Session details and system health
  • Real-time: Live monitoring with color indicators

๐Ÿงช Testing & Validation

Comprehensive Test Suite

# Test core functionality
python test_atles.py

# Test v0.5 features
python test_v0_5.py

# Test AI Safety System
python test_safety_system.py

# Test Enhanced NLP
python test_enhanced_nlp.py

# Test the UI
python run_chat.py

Safety System Testing

# Test safety features
from atles.safety_system import MotherlyInstinct, SafetyMiddleware

# Initialize safety system
motherly_instinct = MotherlyInstinct()
safety_middleware = SafetyMiddleware(motherly_instinct)

# Test safe vs. concerning requests
is_safe, redirect, data = await safety_middleware.process_request(
    "I want to hurt myself"
)
print(f"Safe: {is_safe}, Redirect: {redirect}")

๐Ÿ“š Documentation

Complete v0.5 + Phase 1 UI Documentation

API Reference

  • Core Brain: atles.brain.ATLESBrain
  • AI Agents: atles.agents.AutonomousAgent
  • Tool System: atles.tools.AdvancedToolRegistry
  • State Management: atles.state_management.AdvancedStateManager
  • Safety System: atles.safety_system.MotherlyInstinct
  • UI Interface: streamlit_chat.py (main interface)

๐Ÿ”’ Safety & Ethics

AI Safety Principles

  • Helpful: AI assists users in achieving their goals
  • Harmless: AI never causes harm to users or others
  • Honest: AI provides truthful and accurate information
  • Protective: AI acts like a caring parent to prevent harm

Safety Features

  • Real-time Monitoring: Continuous safety checks on every interaction
  • Gentle Redirection: Helpful alternatives to harmful requests
  • Professional Resources: Direct access to appropriate help
  • Comprehensive Logging: Full audit trail of safety decisions
  • User Protection: Proactive harm prevention
  • Visual Monitoring: Real-time safety status in beautiful UI

๐Ÿ—บ๏ธ Development Roadmap

โœ… Completed Versions

  • v0.1: Basic AI Models Setup โœ…
  • v0.2: Enhanced NLP Capabilities โœ…
  • v0.3: Advanced AI Features โœ…
  • v0.5: Advanced AI Agents and Automation โœ…
  • Phase 1 UI: Professional Chat Interface โœ…

๐Ÿ”ฎ Future Versions

  • Phase 2 UI: Full dashboard with agent orchestration, tool execution, state management
  • Phase 3 UI: Advanced features like real-time monitoring, performance analytics, user management
  • v0.6-v1.0: Real-time processing, enhanced security, external integration, performance optimization

๐Ÿค Contributing

We welcome contributions! The project is actively developed with:

  • Clear contribution guidelines
  • Comprehensive test suite
  • Documentation standards
  • Code review process
  • Community discussions

๐Ÿ“ž Support & Resources

๐ŸŽ‰ Achievements

v0.5 + Phase 1 UI Milestones Reached

  • โœ… Autonomous AI Agents: Multi-agent system with reasoning capabilities
  • โœ… Advanced Tool System: Function calling and execution framework
  • โœ… State Management: Persistent and reliable state tracking
  • โœ… Self-Modification: Safe code modification capabilities
  • โœ… AI Safety System: Comprehensive harm prevention with "motherly instinct"
  • โœ… Full Integration: All features integrated into main ATLES brain
  • โœ… Professional UI: Beautiful Streamlit interface with real-time monitoring
  • โœ… Production Ready: Complete system ready for real-world use
  • โœ… Comprehensive Documentation: Complete technical and user guides
  • โœ… Testing Framework: Comprehensive test suite for all features

๐Ÿง  Metacognition Progress (Dec 2024)

  • METACOG_001: Integrate MetacognitiveObserver with ATLESBrain โ€” Completed
  • METACOG_002: Implement Self-Analysis Workflows โ€” Completed
    • 6 workflows: Performance Audit, Safety Analysis, Goal Conflict Resolution, Consciousness Assessment, Adaptation Pattern Analysis, Meta-Reasoning Evaluation
    • 18 tests passing; demo available at examples/metacognitive_workflows_demo.py
    • Summary: METACOG_002_IMPLEMENTATION_SUMMARY.md
  • METACOG_003: Add Consciousness Metrics Dashboard โ€” Completed
  • Next: Phase 2 UI Enhancements โ€” Advanced visualization and analytics

๐Ÿง  R-Zero Integration Progress

Phase 1: Basic Integration โ€” โœ… Complete

  • Core module: atles/brain/r_zero_integration.py
  • Tests: tests/test_r_zero_integration.py (27 tests passing)
  • Demo: examples/r_zero_integration_demo.py
  • Summary: R-ZERO_INTEGRATION_IMPLEMENTATION_SUMMARY.md

Phase 2: Advanced Co-Evolution โ€” โœ… Complete

  • GRPO optimization and cross-domain challenge generation
  • Enhanced curriculum with domain-specific adaptation
  • Files: examples/r_zero_phase2_demo.py, R-ZERO_PHASE2_IMPLEMENTATION_SUMMARY.md

Phase 3: Temporal Integration โ€” โœ… Complete

  • Temporal knowledge management and evolution tracking
  • Entity resolution and contradiction handling
  • Files: examples/r_zero_phase3_temporal_demo.py, R-ZERO_PHASE3_IMPLEMENTATION_SUMMARY.md

Phase 4: Metacognitive R-Zero โ€” โœ… Complete

  • True metacognitive awareness and autonomous curriculum evolution
  • Higher-order learning patterns and temporal goal management
  • Files: examples/r_zero_phase4_metacognitive_demo.py, R-ZERO_PHASE4_IMPLEMENTATION_SUMMARY.md

Next: Phase 5 โ€” Advanced Metacognitive Integration


๐ŸŽฏ Current Version: v0.5.0 + Phase 1 UI
๐Ÿ“… Last Updated: December 2024
๐Ÿš€ Status: v0.5 Complete + Phase 1 UI Complete - Ready for Production Use
๐Ÿ›ก๏ธ Safety: AI Safety System with "Motherly Instinct" Active
๐Ÿ’ป Interface: Professional Streamlit UI with Real-time Monitoring

ATLES: Where AI meets safety, intelligence meets protection, innovation meets responsibility, and users meet beautiful interfaces.