[Agent Neo DEMO]
https://dorson.github.io/Agent-Neo/
https://github.com/Dorson/Agent-Neo/blob/main/agent-neo-whitepaper.txt
Agent Neo is a cutting-edge decentralized AI agent built as a Progressive Web App (PWA) that implements a modular "hive mind" architecture with ethics-driven task processing and peer-to-peer network connectivity. This project represents a new paradigm in decentralized AI systems, combining advanced web technologies with ethical AI principles.
- Modular Hive Mind Architecture: Self-evolving AI agent with pluggable modules
- Ethics Framework: Built-in ethical decision-making system with configurable levels
- P2P Network Integration: Decentralized connectivity using libp2p and IPFS protocols
- Progressive Web App: Installable, offline-capable web application
- Resource Management: Intelligent resource allocation and monitoring
- Real-time Chat Interface: Natural language interaction with the AI agent
- Multi-theme Support: Dark, light, high-contrast, cyberpunk, and matrix themes
- Native JavaScript: No framework dependencies, runs on any modern browser
- Event-Driven Architecture: Loosely coupled modules communicating via events
- State Management: Centralized, reactive state using Observable patterns
- Offline Functionality: Service worker implementation with smart caching
- Mobile Responsive: Touch-optimized interface for all device sizes
- Performance Optimized: Lazy loading, code splitting, and efficient rendering
Agent Neo follows a sophisticated modular architecture as outlined in the whitepaper:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Agent Neo DApp β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β UI Layer (Progressive Enhancement) β
β βββ Theme System (5 themes) β
β βββ Component System (BEM methodology) β
β βββ Responsive Design (Mobile-first) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Core Systems β
β βββ EventBus (Event-driven communication) β
β βββ StateManager (Observable state management) β
β βββ AgentNeo (Central coordinator) β
β βββ UIManager (Component rendering) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Modules (Pluggable Architecture) β
β βββ EthicsModule (Decision-making framework) β
β βββ TaskManager (Task processing and queuing) β
β βββ NetworkManager (P2P connectivity) β
β βββ ResourceMonitor (System resource tracking) β
β βββ IndexedDBManager (Local data persistence) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Web Technologies β
β βββ Service Worker (Offline capability, caching) β
β βββ IndexedDB (Local data storage) β
β βββ Web Workers (Background processing) β
β βββ WebRTC (P2P communication) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- High-performance event system using native EventTarget API
- Request-response patterns for module communication
- Event history and debugging capabilities
- Performance metrics and error handling
- Centralized state management with Observable patterns
- Nested state paths with dot notation
- Middleware support for state transformations
- State history and time-travel debugging
- Central coordinator implementing the hive mind concept
- Module lifecycle management (register, start, stop)
- Ethics framework integration
- Task processing with safety limits
- Component-based rendering system
- Progressive enhancement principles
- Efficient DOM updates with request animation frame
- Theme management and responsive behavior
- Modern web browser (Chrome 88+, Firefox 85+, Safari 14+, Edge 88+)
- Web server (for development:
python -m http.serveror similar) - No build tools or dependencies required!
-
Clone the repository
git clone https://github.com/your-org/agent-neo.git cd agent-neo -
Start a local web server
# Using Python python -m http.server 8000 # Using Node.js npx serve . # Using PHP php -S localhost:8000
-
Open in browser Navigate to
http://localhost:8000 -
Install as PWA (optional)
- Click the install button in your browser's address bar
- Or use the browser menu: "Install Agent Neo..."
- Initialize the system: The app will automatically initialize all core modules
- Start the agent: Click the "Start Node" button in the header
- Configure settings: Access settings via the gear icon
- Begin interaction: Use the chat interface to communicate with Agent Neo
- System Metrics: Monitor CPU, memory, and network usage
- Performance Stats: View tasks completed, success rate, response times
- Node Status: Check P2P connections and IPFS status
- Resource Monitor: Real-time resource usage visualization
- Text Input: Type messages and press Enter
- Voice Input: Click the microphone button (if enabled)
- Message History: Persistent conversation history
- AI Responses: Ethics-aware, context-sensitive replies
- Resource Limits: Set maximum CPU and memory usage
- Network Settings: Configure P2P connection limits
- Ethics Level: Choose from conservative, balanced, or progressive
- Voice Control: Enable/disable voice input functionality
- Theme Selection: Cycle through available themes
- P2P Connections: View active peer connections
- IPFS Status: Monitor distributed storage connectivity
- Bandwidth Usage: Track upload/download statistics
- Network Health: Real-time network diagnostics
Agent Neo includes 5 carefully crafted themes:
- Primary: Cybernetic green (#00ff9f)
- Background: Deep space blue (#0f0f1a)
- Optimal for extended use and low-light environments
- Clean, professional appearance
- High contrast for accessibility
- Optimized for daylight use
- WCAG AAA compliance
- Enhanced accessibility features
- Bold, clear visual elements
- Neon colors with animated effects
- Futuristic aesthetic
- Enhanced visual feedback
- Classic green-on-black matrix style
- Retro computing nostalgia
- Unique visual experience
DEBUG_MODE: Enable debug logging and development toolsMAX_PEERS: Maximum number of P2P connections (default: 10)CACHE_VERSION: Service worker cache version
agentneo_ui_theme: Selected theme preferenceagentneo_ui_currentView: Last active viewagentneo_debug: Debug mode toggleagentneo_saved_state: Application state backup
- Progressive Enhancement: Works without JavaScript, enhanced with it
- Mobile First: Responsive design starting from mobile devices
- Accessibility: WCAG 2.1 AA compliance throughout
- Performance: Optimized for low-power devices and slow networks
- Security: Client-side only, no server dependencies
agent-neo/
βββ index.html # Main application entry point
βββ manifest.json # PWA manifest
βββ sw.js # Service worker
βββ src/
β βββ main.js # Application initialization
β βββ core/ # Core system modules
β β βββ EventBus.js # Event system
β β βββ StateManager.js # State management
β β βββ AgentNeo.js # Main coordinator
β βββ ui/ # User interface
β β βββ UIManager.js # UI component system
β βββ styles/ # CSS architecture
β βββ reset.css # CSS reset
β βββ variables.css # Design system
β βββ main.css # Core styles
β βββ components.css # Component styles
β βββ themes.css # Theme system
βββ assets/ # Static assets
β βββ icons/ # PWA icons
β βββ screenshots/ # App store screenshots
βββ attached_assets/ # Project documentation
βββ agent-neo-whitepaper_1752631046238.txt
- Create module file in appropriate directory
- Implement module interface:
class MyModule { constructor() { this.name = 'MyModule'; this.version = '1.0.0'; } async start() { // Module initialization } async stop() { // Module cleanup } }
- Register with AgentNeo:
agentNeo.registerModule({ name: 'MyModule', module: new MyModule() });
// Emit events
eventBus.emit('my:event', { data: 'value' });
// Listen for events
eventBus.on('my:event', (eventData) => {
console.log('Received:', eventData);
});
// Request-response pattern
const response = await eventBus.request('my:request', { query: 'data' });// Set state
stateManager.setState('user.preferences.theme', 'dark');
// Get state
const theme = stateManager.getState('user.preferences.theme', 'default');
// Subscribe to changes
const unsubscribe = stateManager.subscribe('user.preferences', (newValue, oldValue) => {
console.log('Preferences changed:', newValue);
});- Client-side Only: No server-side dependencies reduce attack surface
- Content Security Policy: Strict CSP headers prevent XSS attacks
- Sandboxed Environment: Web Workers isolate potentially unsafe operations
- Ethics Framework: Built-in safeguards against harmful operations
- Resource Limits: Prevent resource exhaustion attacks
- Chrome: 88+ (2021)
- Firefox: 85+ (2021)
- Safari: 14+ (2020)
- Edge: 88+ (2021)
- Basic functionality: Works in older browsers with reduced features
- Enhanced features: Full functionality in modern browsers
- Offline support: Available in PWA-capable browsers
- Responsive Design: Optimized for all screen sizes
- Touch Gestures: Swipe navigation and touch interactions
- Viewport Optimization: Proper scaling on mobile devices
- Performance: Efficient rendering on low-power devices
- PWA Features: Add to home screen, splash screen, etc.
- β Core architecture implementation
- β Basic UI and theming system
- β PWA functionality
- β Local state management
- π AI model integration
- π Advanced ethics framework
- π Learning and adaptation
- π Context understanding
- π P2P protocol implementation
- π IPFS integration
- π Distributed consensus
- π Swarm intelligence
- π Self-modifying code
- π Module marketplace
- π Collective learning
- π Emergent behaviors
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- ES6+: Modern JavaScript features
- No build tools: Keep it simple and native
- Documentation: Comment complex logic
- Testing: Manual testing in multiple browsers
This project is licensed under the MIT License - see the LICENSE file for details.
- WebRTC Community: For P2P communication protocols
- IPFS Team: For distributed storage inspiration
- Progressive Web App Community: For PWA best practices
- Ethics in AI Researchers: For ethical framework guidance
- Project Lead: Your Name
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Agent Neo - Evolving the future of decentralized AI, one decision at a time.