Autonomous Desktop Agent with Octopus-Inspired Tentacle Architecture
Aideon AI is a cross-platform desktop agent that combines 121+ specialized tentacles, multi-LLM orchestration across 7 providers, hierarchical task planning, zero-trust security, and three-tier memory to autonomously perform complex workflows on your desktop.
Built on Electron with a Node.js backend, Python bridge, and React UI, it runs on Windows, macOS, and Linux.
Aideon uses a six-layer architecture inspired by the distributed neural organization of an octopus, where each tentacle operates semi-autonomously while coordinated by a central brain.
┌──────────────────────────────────────────────────────────────────────┐
│ Aideon AI │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 6: User Interface │
│ ┌──────────────┬──────────────┬──────────────┬────────────────┐ │
│ │ Electron UI │ Ghost Mode │ Voice │ Browser Ext. │ │
│ └──────────────┴──────────────┴──────────────┴────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 5: Domain Tentacles (121+ Tentacles, 8 Categories) │
│ ┌─────────┬──────────┬─────────┬──────────┬──────────┬─────────┐ │
│ │ Comms │ Prod │ Dev │ Finance │ Intel │ Special │ │
│ │ (16+) │ (14+) │ (5+) │ (3+) │ (25+) │ (12+) │ │
│ └─────────┴──────────┴─────────┴──────────┴──────────┴─────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 4: Cognitive Engine │
│ ┌──────────────┬──────────────┬──────────────┬────────────────┐ │
│ │ HTN Planner │ Plan Critics │ ARPSM │ World Model │ │
│ │ (40 files) │ (5 critics) │ │ │ │
│ ├──────────────┼──────────────┼──────────────┼────────────────┤ │
│ │ LTM/Memory │ Knowledge │ Intelligence │ Metacognition │ │
│ │ (3-tier) │ Graph │ (25 files) │ │ │
│ └──────────────┴──────────────┴──────────────┴────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 3: Core Services │
│ ┌──────────┬──────────┬──────────┬──────────┬──────────────────┐ │
│ │ DI/IoC │ EventBus │ Logging │ Security │ Self-Healing │ │
│ │ │ │ Winston │Zero-Trust│ Circuit Breaker │ │
│ └──────────┴──────────┴──────────┴──────────┴──────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 2: Tentacle Integration │
│ ┌──────────────┬──────────────────┬──────────────┬─────────────┐ │
│ │ Registry │ Communication │ Resources │ MCP Bus │ │
│ │ │ Bus (ZT-Sec) │ Manager │ │ │
│ └──────────────┴──────────────────┴──────────────┴─────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 1: Platform Foundation │
│ ┌──────────────┬──────────┬──────────────────┬─────────────────┐ │
│ │ Electron │ Node.js │ Python Bridge │ Native Binds │ │
│ │ v40+ │ │ (ARPSM/LTM/KG) │ (robotjs) │ │
│ └──────────────┴──────────┴──────────────────┴─────────────────┘ │
└──────────────────────────────────────────────────────────────────────┘
Architecture Score: 9.2/10 — evaluated across security, resilience, extensibility, performance, and modularity dimensions.
Each tentacle is a self-contained module inheriting from TentacleBase with its own lifecycle, capability registration, and error handling. Tentacles communicate through a zero-trust communication bus.
| Category | Tentacles | Key Capabilities |
|---|---|---|
| Communication | Email (IMAP/SMTP/Gmail/Outlook), Social (Discord, Slack, LinkedIn, Twitter), Meeting, VideoCall, Chat, Voice, Notification, Collaboration, P2P | Multi-protocol email sync, social platform integration, real-time collaboration |
| Productivity | Bookmark, Contact, Goal, GoogleCalendar, Gmail, GoogleDrive, Habit, Journal, Note, Pomodoro, Project, Reminder, Task, Timer | Full productivity suite with Google Workspace integration |
| Development | DevMaster, Terminal subsystem | Code generation, terminal automation, development workflow management |
| Finance | Investment, financial analysis | Portfolio management, market analysis |
| Intelligence | IntelligenceTentacle, 25+ reasoning/learning modules | AI reasoning, metacognition, curiosity-driven learning |
| Security | Password management, threat detection | Credential management, security monitoring |
| Specialized | Education (LearningAnalytics, ProfileManager), CrossDevice, Model Adapters, Workforce, Lifecycle | Domain-specific operations |
| GUI | ElementCache, OCRService | GUI element detection, screen text extraction |
Tentacle Framework Components:
TentacleBase / EnhancedTentacle — base classes with lifecycle managementNeuralRingArchitecture — inter-tentacle neural coordinationOrchestrationTentacle — workflow orchestration across tentaclesAGITentacleIntegrationBridge — AGI-level tentacle coordinationTentacleRegistry — discovery and registrationTentacleCommunicationBus — secure inter-tentacle messagingTentacleResourceManager — shared resource allocationThe LLMOrchestrator routes tasks to the optimal provider based on task type, cost, latency, and capability requirements.
| Provider | Models | Use Cases |
|---|---|---|
| OpenAI | GPT-4, GPT-4o | Primary reasoning, code generation |
| Anthropic | Claude 3/3.5 | Complex analysis, safety-critical tasks |
| Gemini Pro/Ultra | Multi-modal understanding, long context | |
| TogetherAI | Open-source models | Cost-efficient batch processing |
| XAI | Grok | Real-time information, conversational |
| AIML | Various | Specialized ML tasks |
| Local | Ollama/llama.cpp | Privacy-focused offline operations |
Key components: LLMOrchestrator, ModelRouter, LocalLlmManager, LLMBenchmarkingService (15 files total)
A 40-file Hierarchical Task Network planning system that decomposes high-level goals into executable action sequences.
User Goal → HTN Planner → Task Decomposition → Plan Critics → Execution
↑ │
└──── Replanning ←── Failure Detection ─┘
Three-tier memory architecture with vector database integration for semantic search.
| Tier | Purpose | Implementation |
|---|---|---|
| Episodic | Stores experiences and interaction history | EpisodicMemorySystem |
| Semantic | Knowledge base and factual information | SemanticKnowledgeBase |
| Procedural | Learned skills and action patterns | ProceduralMemorySystem |
25 files implementing reasoning, learning, and metacognitive capabilities.
Zero-Trust security architecture (33 files) where every operation is verified regardless of source.
┌─────────────────────────────────────────────────┐
│ Zero-Trust Security Layer │
│ ┌─────────────────────────────────────────────┐ │
│ │ Cryptographic Identity Verification │ │
│ │ ┌─────────┐ ┌──────────┐ ┌──────────────┐│ │
│ │ │ ECDH │ │ AES-256 │ │ Ed25519 ││ │
│ │ │ Key │ │ GCM │ │ Signatures ││ │
│ │ │Exchange │ │Encryption│ │ ││ │
│ │ └─────────┘ └──────────┘ └──────────────┘│ │
│ └─────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────┐ │
│ │ Runtime Protection │ │
│ │ Permission System │ Threat Detection │ │
│ │ Anomaly Detection │ Audit Logging │ │
│ │ Privacy Manager │ Encryption Manager │ │
│ └─────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘
13 files enabling multi-node distributed operations.
Stealth operation mode (13 files) for privacy-sensitive scenarios.
Automatic fault detection and recovery.
11 files for screen understanding and visual automation.
97+ React/TypeScript components providing a full desktop interface.
Key surfaces:
Accessibility: Custom hooks for keyboard navigation, screen reader support, and WCAG compliance.
Theming: Dark/light mode with customizable color schemes.
Chrome extension (8 files) that bridges web browsing with the Aideon desktop agent.
manifest.json — Chrome extension manifest (Manifest V3)popup/ — extension popup UIbackground/ — service worker for persistent operationscontent/ — content scripts injected into web pagesEnables web page analysis, form automation, data extraction, and browser-to-agent communication.
build-essential, libx11-dev, libxkbfile-dev# Clone the repository
git clone https://github.com/kimhons/Aideon-Final1.git
cd Aideon-Final1/packages/aideon-main
# Install Node.js dependencies
npm install
# Install Python dependencies (optional)
npm run python:install
# Start in development mode
npm run dev
# Or start the Electron app
npm start
Some features require optional native modules:
# SQLite for local storage (better-sqlite3)
# Canvas for image processing (canvas)
# RobotJS for desktop automation (robotjs)
# These install automatically if build tools are available
Create a .env file in the project root:
# LLM API Keys (configure the providers you want to use)
OPENAI_API_KEY=your-openai-key
ANTHROPIC_API_KEY=your-anthropic-key
GOOGLE_API_KEY=your-google-key
TOGETHER_API_KEY=your-together-key
XAI_API_KEY=your-xai-key
AIML_API_KEY=your-aiml-key
# Local Model Settings
OLLAMA_HOST=http://localhost:11434
LOCAL_MODEL=llama2
# Feature Flags
ENABLE_GHOST_MODE=true
ENABLE_LOCAL_MODELS=true
ENABLE_DISTRIBUTED=false
# Security
ENCRYPTION_KEY_ROTATION_HOURS=24
AUDIT_LOG_RETENTION_DAYS=90
const securityConfig = {
zeroTrust: {
verifyAllMessages: true,
encryptionAlgorithm: 'aes-256-gcm',
keyExchange: 'ecdh',
signatureAlgorithm: 'ed25519',
},
permissions: {
defaultPolicy: 'deny',
requireExplicitGrant: true,
},
anomalyDetection: {
enabled: true,
sensitivityLevel: 'medium',
},
};
const selfHealingConfig = {
circuitBreaker: {
failureThreshold: 5,
resetTimeout: 30000,
halfOpenRequests: 3,
},
healthCheck: {
interval: 10000,
timeout: 5000,
},
hotSwap: {
enabled: true,
maxRetries: 3,
},
};
const response = await aideonAPI.llm.chat('Help me write a Python script');
const result = await aideonAPI.tentacles.executeTask({
type: 'code-generate',
parameters: {
prompt: 'Create a REST API in Node.js',
language: 'javascript',
},
});
const planner = new AdaptiveHTNPlanner({ domain: 'development' });
const plan = await planner.plan({
goal: 'deploy-web-application',
context: { stack: 'node', target: 'aws' },
});
await planner.execute(plan);
// Store a memory
await aideonAPI.memory.store({
data: { learned: 'User prefers TypeScript' },
type: 'semantic',
});
// Retrieve relevant memories
const memories = await aideonAPI.memory.search('user preferences');
const framework = new DistributedProcessingFramework();
await framework.initialize();
const nodes = await framework.discoverNodes({ timeout: 5000 });
await framework.distributeTask(heavyTask, { strategy: 'load-balanced' });
// Activate stealth operation
await aideonAPI.ghostMode.activate({
concealProcess: true,
networkStealth: true,
screenBypass: true,
});
1,885 tests across 68 suites covering unit, integration, e2e, security, cross-platform, and performance.
# Run all tests
npm test
# Run with coverage report
npm run test:coverage
# Watch mode (development)
npm run test:watch
# Integration tests only
npm run test:integration
# Run a specific test file
npx jest tests/path/to/file.test.js
| Type | Count | Location |
|---|---|---|
| Unit | ~28 suites | tests/unit/ |
| Integration | ~22 suites | tests/integration/ |
| E2E | ~18 suites | tests/e2e/ |
| Security | ~12 suites | tests/security/ |
| Cross-Platform | ~8 suites | tests/cross-platform/ |
| Performance | ~6 suites | tests/performance/ |
Cross-platform builds via electron-builder.
# Build for current platform
npm run build
# Platform-specific builds
npm run build:win # Windows (NSIS installer, x64)
npm run build:mac # macOS (DMG, x64 + arm64)
npm run build:linux # Linux (AppImage + deb, x64)
| Platform | Format | Architecture |
|---|---|---|
| Windows | NSIS installer (.exe) | x64 |
| macOS | DMG (.dmg) | x64, arm64 (Apple Silicon) |
| Linux | AppImage (.AppImage), Debian (.deb) | x64 |
6 GitHub Actions workflows in .github/workflows/:
| Workflow | Trigger | Purpose |
|---|---|---|
ci.yml | Push/PR to main | Lint, test, build verification |
release.yml | Version tags | Cross-platform release builds |
security.yml | Schedule/manual | Dependency audit, vulnerability scanning |
pr-check.yml | Pull requests | PR validation and review checks |
nightly.yml | Cron (nightly) | Extended test suite, performance benchmarks |
docs.yml | Docs changes | Documentation build and publish |
packages/aideon-main/
├── src/
│ ├── main.js # Electron main process entry
│ ├── preload.js # Secure context bridge
│ ├── core/ # (63 files)
│ │ ├── AideonMainApplication.js # Application bootstrap
│ │ ├── DIContainer.js # Dependency injection container
│ │ ├── EventBus.js # Pub/sub event system
│ │ ├── CircuitBreaker.js # Fault tolerance
│ │ ├── KnowledgeGraph.js # Knowledge representation
│ │ ├── Logger.js # Structured logging
│ │ └── StateManager.js # Application state
│ ├── services/ # (33 files)
│ │ ├── mcp/ # Model Context Protocol
│ │ ├── auth/ # Authentication
│ │ ├── context/ # Context management
│ │ ├── storage/ # Data persistence
│ │ ├── notification/ # Notification system
│ │ ├── scheduling/ # Task scheduling
│ │ └── vectordb/ # Vector database service
│ ├── tentacles/ # (95+ files)
│ │ ├── base/ # TentacleBase, EnhancedTentacle
│ │ ├── registry/ # TentacleRegistry
│ │ ├── communication/ # TentacleCommunicationBus
│ │ ├── resources/ # TentacleResourceManager
│ │ ├── frameworks/ # NeuralRing, Orchestration, AGI Bridge
│ │ └── domains/
│ │ ├── communication/ # Email, Social, Meeting, Chat, Voice
│ │ ├── productivity/ # Calendar, Drive, Notes, Tasks, etc.
│ │ ├── development/ # DevMaster, Terminal
│ │ ├── finance/ # Investment
│ │ ├── intelligence/ # Intelligence tentacle
│ │ ├── security/ # Password management
│ │ ├── specialized/ # Education, CrossDevice, Workforce
│ │ └── gui/ # ElementCache, OCR
│ ├── llm/ # (15 files)
│ │ ├── LLMOrchestrator.js # Multi-LLM routing
│ │ ├── ModelRouter.js # Provider selection
│ │ ├── LocalLlmManager.js # Local model management
│ │ ├── LLMBenchmarkingService.js # Performance benchmarking
│ │ └── providers/
│ │ ├── OpenAIProvider.js
│ │ ├── AnthropicProvider.js
│ │ ├── GoogleProvider.js
│ │ ├── TogetherAIProvider.js
│ │ ├── XAIProvider.js
│ │ ├── AIMLProvider.js
│ │ └── LocalProvider.js
│ ├── planning/ # (40 files)
│ │ ├── HTNPlanner.js # Core planner
│ │ ├── AdaptiveHTNPlanner.js # ML-enhanced planner
│ │ ├── HTNOrchestrator.js # Plan orchestration
│ │ ├── PlanValidator.js # Plan validation
│ │ ├── domains/ # Domain definitions
│ │ ├── critics/ # 5 plan critics
│ │ ├── ml/ # ML integration
│ │ └── replanning/ # Replanning strategies
│ ├── intelligence/ # (25 files)
│ │ ├── AIIntelligenceCore.js
│ │ ├── SuperIntelligenceService.js
│ │ ├── TemporalReasoningEngine.js
│ │ ├── AdvancedReasoningEngine.js
│ │ ├── MetacognitionSystem.js
│ │ ├── ExplainabilityEngine.js
│ │ └── ...
│ ├── memory/ # (11 files)
│ │ ├── SemanticKnowledgeBase.js
│ │ ├── EpisodicMemorySystem.js
│ │ ├── ProceduralMemorySystem.js
│ │ └── VectorDBService.js
│ ├── security/ # (33 files)
│ │ ├── ZeroTrustSecurityManager.js
│ │ ├── SecureCommunication.js
│ │ ├── PermissionSystem.js
│ │ ├── ThreatDetection.js
│ │ ├── AnomalyDetectionService.js
│ │ └── ...
│ ├── distributed/ # (13 files)
│ │ ├── DistributedProcessingFramework.js
│ │ ├── ClusterManager.js
│ │ ├── NodeDiscoveryService.js
│ │ ├── LoadBalancer.js
│ │ └── ...
│ ├── advanced/ # (13 files)
│ │ ├── GhostMode.js
│ │ ├── ProcessConcealmentManager.js
│ │ └── ...
│ ├── vision/ # (11 files)
│ │ ├── VisionSystemManager.js
│ │ ├── PerceptionEngine.js
│ │ └── OCREngine.js
│ ├── config/ # (9 files)
│ │ ├── ConfigManager.js
│ │ ├── schema/ # Config validators
│ │ └── environments/ # Per-env configs
│ ├── ui/ # (97+ files)
│ │ ├── components/ # React components
│ │ ├── hooks/ # Custom hooks
│ │ ├── styles/ # Stylesheets
│ │ └── index.html
│ ├── desktop/ # (2 files)
│ │ ├── NativePlatformBindings.js
│ │ └── GUIInteraction.js
│ ├── overlays/ # (4 files)
│ │ ├── OverlayRenderer.js
│ │ └── OverlayManager.js
│ ├── browser-extension/ # (8 files)
│ │ ├── manifest.json
│ │ ├── popup/
│ │ ├── background/
│ │ └── content/
│ └── python/ # Python bridge
│ ├── bridge.js
│ ├── arpsm/ # Advanced reasoning
│ ├── ltm/ # Long-term memory
│ └── knowledge/ # Knowledge graph
├── tests/ # (94 files)
│ ├── setup/ # Test helpers
│ ├── unit/ # Unit tests
│ ├── integration/ # Integration tests
│ ├── e2e/ # End-to-end tests
│ ├── security/ # Security tests
│ ├── cross-platform/ # Platform-specific tests
│ ├── performance/ # Performance benchmarks
│ └── manual/ # Manual test scripts
├── docs/ # Documentation
│ ├── ARCHITECTURE.md # Detailed architecture docs
│ ├── reports/ # Analysis and audit reports
│ └── ...
├── .github/workflows/ # CI/CD pipelines
├── assets/ # Build assets (icons, images)
├── scripts/ # Build scripts
├── package.json # Dependencies and scripts
├── jest.config.js # Test configuration
├── .eslintrc.js # Linting rules
├── .prettierrc # Formatting rules
├── babel.config.js # Babel configuration
└── CHANGELOG.md # Version history
| Phase | Status | Focus |
|---|---|---|
| Phase 1: Foundation | Completed | Core architecture, tentacle framework, basic LLM integration, HTN planner |
| Phase 2: Hardening | In Progress | Zero-trust security, self-healing, distributed processing, test coverage |
| Phase 3: Intelligence | Planned | Advanced reasoning, metacognition, curiosity-driven learning, full AGI bridge |
| Phase 4: Scale | Planned | Multi-node clusters, cloud deployment, enterprise features, marketplace |
| Layer | Technology |
|---|---|
| Runtime | Electron 40+, Node.js 18+ |
| UI | React 18, TypeScript, Zustand |
| Backend | Node.js (core), Python 3.10+ (ML/knowledge) |
| LLM SDKs | openai, @anthropic-ai/sdk, @google/generative-ai |
| NLP | natural, node-nlp, @xenova/transformers |
| Vision | tesseract.js, canvas |
| Database | better-sqlite3, VectorDB |
| Realtime | socket.io, WebSocket (ws) |
| Security | Node.js crypto (AES-256-GCM, ECDH, Ed25519), bcrypt |
| Logging | winston |
| Testing | Jest 29, Babel, chai, sinon |
| Build | electron-builder, Webpack |
| CI/CD | GitHub Actions |
| Linting | ESLint, Prettier |
MIT License - See LICENSE file for details.
3 commits
JavaScript
92.3%
TypeScript
3.9%
CSS
1.8%
Python
1.0%
HTML
1.0%
Autonomous Desktop Agent with Octopus-Inspired Tentacle Architecture
Aideon AI is a cross-platform desktop agent that combines 121+ specialized tentacles, multi-LLM orchestration across 7 providers, hierarchical task planning, zero-trust security, and three-tier memory to autonomously perform complex workflows on your desktop.
Built on Electron with a Node.js backend, Python bridge, and React UI, it runs on Windows, macOS, and Linux.
Aideon uses a six-layer architecture inspired by the distributed neural organization of an octopus, where each tentacle operates semi-autonomously while coordinated by a central brain.
┌──────────────────────────────────────────────────────────────────────┐
│ Aideon AI │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 6: User Interface │
│ ┌──────────────┬──────────────┬──────────────┬────────────────┐ │
│ │ Electron UI │ Ghost Mode │ Voice │ Browser Ext. │ │
│ └──────────────┴──────────────┴──────────────┴────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 5: Domain Tentacles (121+ Tentacles, 8 Categories) │
│ ┌─────────┬──────────┬─────────┬──────────┬──────────┬─────────┐ │
│ │ Comms │ Prod │ Dev │ Finance │ Intel │ Special │ │
│ │ (16+) │ (14+) │ (5+) │ (3+) │ (25+) │ (12+) │ │
│ └─────────┴──────────┴─────────┴──────────┴──────────┴─────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 4: Cognitive Engine │
│ ┌──────────────┬──────────────┬──────────────┬────────────────┐ │
│ │ HTN Planner │ Plan Critics │ ARPSM │ World Model │ │
│ │ (40 files) │ (5 critics) │ │ │ │
│ ├──────────────┼──────────────┼──────────────┼────────────────┤ │
│ │ LTM/Memory │ Knowledge │ Intelligence │ Metacognition │ │
│ │ (3-tier) │ Graph │ (25 files) │ │ │
│ └──────────────┴──────────────┴──────────────┴────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 3: Core Services │
│ ┌──────────┬──────────┬──────────┬──────────┬──────────────────┐ │
│ │ DI/IoC │ EventBus │ Logging │ Security │ Self-Healing │ │
│ │ │ │ Winston │Zero-Trust│ Circuit Breaker │ │
│ └──────────┴──────────┴──────────┴──────────┴──────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 2: Tentacle Integration │
│ ┌──────────────┬──────────────────┬──────────────┬─────────────┐ │
│ │ Registry │ Communication │ Resources │ MCP Bus │ │
│ │ │ Bus (ZT-Sec) │ Manager │ │ │
│ └──────────────┴──────────────────┴──────────────┴─────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ Layer 1: Platform Foundation │
│ ┌──────────────┬──────────┬──────────────────┬─────────────────┐ │
│ │ Electron │ Node.js │ Python Bridge │ Native Binds │ │
│ │ v40+ │ │ (ARPSM/LTM/KG) │ (robotjs) │ │
│ └──────────────┴──────────┴──────────────────┴─────────────────┘ │
└──────────────────────────────────────────────────────────────────────┘
Architecture Score: 9.2/10 — evaluated across security, resilience, extensibility, performance, and modularity dimensions.
Each tentacle is a self-contained module inheriting from TentacleBase with its own lifecycle, capability registration, and error handling. Tentacles communicate through a zero-trust communication bus.
| Category | Tentacles | Key Capabilities |
|---|---|---|
| Communication | Email (IMAP/SMTP/Gmail/Outlook), Social (Discord, Slack, LinkedIn, Twitter), Meeting, VideoCall, Chat, Voice, Notification, Collaboration, P2P | Multi-protocol email sync, social platform integration, real-time collaboration |
| Productivity | Bookmark, Contact, Goal, GoogleCalendar, Gmail, GoogleDrive, Habit, Journal, Note, Pomodoro, Project, Reminder, Task, Timer | Full productivity suite with Google Workspace integration |
| Development | DevMaster, Terminal subsystem | Code generation, terminal automation, development workflow management |
| Finance | Investment, financial analysis | Portfolio management, market analysis |
| Intelligence | IntelligenceTentacle, 25+ reasoning/learning modules | AI reasoning, metacognition, curiosity-driven learning |
| Security | Password management, threat detection | Credential management, security monitoring |
| Specialized | Education (LearningAnalytics, ProfileManager), CrossDevice, Model Adapters, Workforce, Lifecycle | Domain-specific operations |
| GUI | ElementCache, OCRService | GUI element detection, screen text extraction |
Tentacle Framework Components:
TentacleBase / EnhancedTentacle — base classes with lifecycle managementNeuralRingArchitecture — inter-tentacle neural coordinationOrchestrationTentacle — workflow orchestration across tentaclesAGITentacleIntegrationBridge — AGI-level tentacle coordinationTentacleRegistry — discovery and registrationTentacleCommunicationBus — secure inter-tentacle messagingTentacleResourceManager — shared resource allocationThe LLMOrchestrator routes tasks to the optimal provider based on task type, cost, latency, and capability requirements.
| Provider | Models | Use Cases |
|---|---|---|
| OpenAI | GPT-4, GPT-4o | Primary reasoning, code generation |
| Anthropic | Claude 3/3.5 | Complex analysis, safety-critical tasks |
| Gemini Pro/Ultra | Multi-modal understanding, long context | |
| TogetherAI | Open-source models | Cost-efficient batch processing |
| XAI | Grok | Real-time information, conversational |
| AIML | Various | Specialized ML tasks |
| Local | Ollama/llama.cpp | Privacy-focused offline operations |
Key components: LLMOrchestrator, ModelRouter, LocalLlmManager, LLMBenchmarkingService (15 files total)
A 40-file Hierarchical Task Network planning system that decomposes high-level goals into executable action sequences.
User Goal → HTN Planner → Task Decomposition → Plan Critics → Execution
↑ │
└──── Replanning ←── Failure Detection ─┘
Three-tier memory architecture with vector database integration for semantic search.
| Tier | Purpose | Implementation |
|---|---|---|
| Episodic | Stores experiences and interaction history | EpisodicMemorySystem |
| Semantic | Knowledge base and factual information | SemanticKnowledgeBase |
| Procedural | Learned skills and action patterns | ProceduralMemorySystem |
25 files implementing reasoning, learning, and metacognitive capabilities.
Zero-Trust security architecture (33 files) where every operation is verified regardless of source.
┌─────────────────────────────────────────────────┐
│ Zero-Trust Security Layer │
│ ┌─────────────────────────────────────────────┐ │
│ │ Cryptographic Identity Verification │ │
│ │ ┌─────────┐ ┌──────────┐ ┌──────────────┐│ │
│ │ │ ECDH │ │ AES-256 │ │ Ed25519 ││ │
│ │ │ Key │ │ GCM │ │ Signatures ││ │
│ │ │Exchange │ │Encryption│ │ ││ │
│ │ └─────────┘ └──────────┘ └──────────────┘│ │
│ └─────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────┐ │
│ │ Runtime Protection │ │
│ │ Permission System │ Threat Detection │ │
│ │ Anomaly Detection │ Audit Logging │ │
│ │ Privacy Manager │ Encryption Manager │ │
│ └─────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘
13 files enabling multi-node distributed operations.
Stealth operation mode (13 files) for privacy-sensitive scenarios.
Automatic fault detection and recovery.
11 files for screen understanding and visual automation.
97+ React/TypeScript components providing a full desktop interface.
Key surfaces:
Accessibility: Custom hooks for keyboard navigation, screen reader support, and WCAG compliance.
Theming: Dark/light mode with customizable color schemes.
Chrome extension (8 files) that bridges web browsing with the Aideon desktop agent.
manifest.json — Chrome extension manifest (Manifest V3)popup/ — extension popup UIbackground/ — service worker for persistent operationscontent/ — content scripts injected into web pagesEnables web page analysis, form automation, data extraction, and browser-to-agent communication.
build-essential, libx11-dev, libxkbfile-dev# Clone the repository
git clone https://github.com/kimhons/Aideon-Final1.git
cd Aideon-Final1/packages/aideon-main
# Install Node.js dependencies
npm install
# Install Python dependencies (optional)
npm run python:install
# Start in development mode
npm run dev
# Or start the Electron app
npm start
Some features require optional native modules:
# SQLite for local storage (better-sqlite3)
# Canvas for image processing (canvas)
# RobotJS for desktop automation (robotjs)
# These install automatically if build tools are available
Create a .env file in the project root:
# LLM API Keys (configure the providers you want to use)
OPENAI_API_KEY=your-openai-key
ANTHROPIC_API_KEY=your-anthropic-key
GOOGLE_API_KEY=your-google-key
TOGETHER_API_KEY=your-together-key
XAI_API_KEY=your-xai-key
AIML_API_KEY=your-aiml-key
# Local Model Settings
OLLAMA_HOST=http://localhost:11434
LOCAL_MODEL=llama2
# Feature Flags
ENABLE_GHOST_MODE=true
ENABLE_LOCAL_MODELS=true
ENABLE_DISTRIBUTED=false
# Security
ENCRYPTION_KEY_ROTATION_HOURS=24
AUDIT_LOG_RETENTION_DAYS=90
const securityConfig = {
zeroTrust: {
verifyAllMessages: true,
encryptionAlgorithm: 'aes-256-gcm',
keyExchange: 'ecdh',
signatureAlgorithm: 'ed25519',
},
permissions: {
defaultPolicy: 'deny',
requireExplicitGrant: true,
},
anomalyDetection: {
enabled: true,
sensitivityLevel: 'medium',
},
};
const selfHealingConfig = {
circuitBreaker: {
failureThreshold: 5,
resetTimeout: 30000,
halfOpenRequests: 3,
},
healthCheck: {
interval: 10000,
timeout: 5000,
},
hotSwap: {
enabled: true,
maxRetries: 3,
},
};
const response = await aideonAPI.llm.chat('Help me write a Python script');
const result = await aideonAPI.tentacles.executeTask({
type: 'code-generate',
parameters: {
prompt: 'Create a REST API in Node.js',
language: 'javascript',
},
});
const planner = new AdaptiveHTNPlanner({ domain: 'development' });
const plan = await planner.plan({
goal: 'deploy-web-application',
context: { stack: 'node', target: 'aws' },
});
await planner.execute(plan);
// Store a memory
await aideonAPI.memory.store({
data: { learned: 'User prefers TypeScript' },
type: 'semantic',
});
// Retrieve relevant memories
const memories = await aideonAPI.memory.search('user preferences');
const framework = new DistributedProcessingFramework();
await framework.initialize();
const nodes = await framework.discoverNodes({ timeout: 5000 });
await framework.distributeTask(heavyTask, { strategy: 'load-balanced' });
// Activate stealth operation
await aideonAPI.ghostMode.activate({
concealProcess: true,
networkStealth: true,
screenBypass: true,
});
1,885 tests across 68 suites covering unit, integration, e2e, security, cross-platform, and performance.
# Run all tests
npm test
# Run with coverage report
npm run test:coverage
# Watch mode (development)
npm run test:watch
# Integration tests only
npm run test:integration
# Run a specific test file
npx jest tests/path/to/file.test.js
| Type | Count | Location |
|---|---|---|
| Unit | ~28 suites | tests/unit/ |
| Integration | ~22 suites | tests/integration/ |
| E2E | ~18 suites | tests/e2e/ |
| Security | ~12 suites | tests/security/ |
| Cross-Platform | ~8 suites | tests/cross-platform/ |
| Performance | ~6 suites | tests/performance/ |
Cross-platform builds via electron-builder.
# Build for current platform
npm run build
# Platform-specific builds
npm run build:win # Windows (NSIS installer, x64)
npm run build:mac # macOS (DMG, x64 + arm64)
npm run build:linux # Linux (AppImage + deb, x64)
| Platform | Format | Architecture |
|---|---|---|
| Windows | NSIS installer (.exe) | x64 |
| macOS | DMG (.dmg) | x64, arm64 (Apple Silicon) |
| Linux | AppImage (.AppImage), Debian (.deb) | x64 |
6 GitHub Actions workflows in .github/workflows/:
| Workflow | Trigger | Purpose |
|---|---|---|
ci.yml | Push/PR to main | Lint, test, build verification |
release.yml | Version tags | Cross-platform release builds |
security.yml | Schedule/manual | Dependency audit, vulnerability scanning |
pr-check.yml | Pull requests | PR validation and review checks |
nightly.yml | Cron (nightly) | Extended test suite, performance benchmarks |
docs.yml | Docs changes | Documentation build and publish |
packages/aideon-main/
├── src/
│ ├── main.js # Electron main process entry
│ ├── preload.js # Secure context bridge
│ ├── core/ # (63 files)
│ │ ├── AideonMainApplication.js # Application bootstrap
│ │ ├── DIContainer.js # Dependency injection container
│ │ ├── EventBus.js # Pub/sub event system
│ │ ├── CircuitBreaker.js # Fault tolerance
│ │ ├── KnowledgeGraph.js # Knowledge representation
│ │ ├── Logger.js # Structured logging
│ │ └── StateManager.js # Application state
│ ├── services/ # (33 files)
│ │ ├── mcp/ # Model Context Protocol
│ │ ├── auth/ # Authentication
│ │ ├── context/ # Context management
│ │ ├── storage/ # Data persistence
│ │ ├── notification/ # Notification system
│ │ ├── scheduling/ # Task scheduling
│ │ └── vectordb/ # Vector database service
│ ├── tentacles/ # (95+ files)
│ │ ├── base/ # TentacleBase, EnhancedTentacle
│ │ ├── registry/ # TentacleRegistry
│ │ ├── communication/ # TentacleCommunicationBus
│ │ ├── resources/ # TentacleResourceManager
│ │ ├── frameworks/ # NeuralRing, Orchestration, AGI Bridge
│ │ └── domains/
│ │ ├── communication/ # Email, Social, Meeting, Chat, Voice
│ │ ├── productivity/ # Calendar, Drive, Notes, Tasks, etc.
│ │ ├── development/ # DevMaster, Terminal
│ │ ├── finance/ # Investment
│ │ ├── intelligence/ # Intelligence tentacle
│ │ ├── security/ # Password management
│ │ ├── specialized/ # Education, CrossDevice, Workforce
│ │ └── gui/ # ElementCache, OCR
│ ├── llm/ # (15 files)
│ │ ├── LLMOrchestrator.js # Multi-LLM routing
│ │ ├── ModelRouter.js # Provider selection
│ │ ├── LocalLlmManager.js # Local model management
│ │ ├── LLMBenchmarkingService.js # Performance benchmarking
│ │ └── providers/
│ │ ├── OpenAIProvider.js
│ │ ├── AnthropicProvider.js
│ │ ├── GoogleProvider.js
│ │ ├── TogetherAIProvider.js
│ │ ├── XAIProvider.js
│ │ ├── AIMLProvider.js
│ │ └── LocalProvider.js
│ ├── planning/ # (40 files)
│ │ ├── HTNPlanner.js # Core planner
│ │ ├── AdaptiveHTNPlanner.js # ML-enhanced planner
│ │ ├── HTNOrchestrator.js # Plan orchestration
│ │ ├── PlanValidator.js # Plan validation
│ │ ├── domains/ # Domain definitions
│ │ ├── critics/ # 5 plan critics
│ │ ├── ml/ # ML integration
│ │ └── replanning/ # Replanning strategies
│ ├── intelligence/ # (25 files)
│ │ ├── AIIntelligenceCore.js
│ │ ├── SuperIntelligenceService.js
│ │ ├── TemporalReasoningEngine.js
│ │ ├── AdvancedReasoningEngine.js
│ │ ├── MetacognitionSystem.js
│ │ ├── ExplainabilityEngine.js
│ │ └── ...
│ ├── memory/ # (11 files)
│ │ ├── SemanticKnowledgeBase.js
│ │ ├── EpisodicMemorySystem.js
│ │ ├── ProceduralMemorySystem.js
│ │ └── VectorDBService.js
│ ├── security/ # (33 files)
│ │ ├── ZeroTrustSecurityManager.js
│ │ ├── SecureCommunication.js
│ │ ├── PermissionSystem.js
│ │ ├── ThreatDetection.js
│ │ ├── AnomalyDetectionService.js
│ │ └── ...
│ ├── distributed/ # (13 files)
│ │ ├── DistributedProcessingFramework.js
│ │ ├── ClusterManager.js
│ │ ├── NodeDiscoveryService.js
│ │ ├── LoadBalancer.js
│ │ └── ...
│ ├── advanced/ # (13 files)
│ │ ├── GhostMode.js
│ │ ├── ProcessConcealmentManager.js
│ │ └── ...
│ ├── vision/ # (11 files)
│ │ ├── VisionSystemManager.js
│ │ ├── PerceptionEngine.js
│ │ └── OCREngine.js
│ ├── config/ # (9 files)
│ │ ├── ConfigManager.js
│ │ ├── schema/ # Config validators
│ │ └── environments/ # Per-env configs
│ ├── ui/ # (97+ files)
│ │ ├── components/ # React components
│ │ ├── hooks/ # Custom hooks
│ │ ├── styles/ # Stylesheets
│ │ └── index.html
│ ├── desktop/ # (2 files)
│ │ ├── NativePlatformBindings.js
│ │ └── GUIInteraction.js
│ ├── overlays/ # (4 files)
│ │ ├── OverlayRenderer.js
│ │ └── OverlayManager.js
│ ├── browser-extension/ # (8 files)
│ │ ├── manifest.json
│ │ ├── popup/
│ │ ├── background/
│ │ └── content/
│ └── python/ # Python bridge
│ ├── bridge.js
│ ├── arpsm/ # Advanced reasoning
│ ├── ltm/ # Long-term memory
│ └── knowledge/ # Knowledge graph
├── tests/ # (94 files)
│ ├── setup/ # Test helpers
│ ├── unit/ # Unit tests
│ ├── integration/ # Integration tests
│ ├── e2e/ # End-to-end tests
│ ├── security/ # Security tests
│ ├── cross-platform/ # Platform-specific tests
│ ├── performance/ # Performance benchmarks
│ └── manual/ # Manual test scripts
├── docs/ # Documentation
│ ├── ARCHITECTURE.md # Detailed architecture docs
│ ├── reports/ # Analysis and audit reports
│ └── ...
├── .github/workflows/ # CI/CD pipelines
├── assets/ # Build assets (icons, images)
├── scripts/ # Build scripts
├── package.json # Dependencies and scripts
├── jest.config.js # Test configuration
├── .eslintrc.js # Linting rules
├── .prettierrc # Formatting rules
├── babel.config.js # Babel configuration
└── CHANGELOG.md # Version history
| Phase | Status | Focus |
|---|---|---|
| Phase 1: Foundation | Completed | Core architecture, tentacle framework, basic LLM integration, HTN planner |
| Phase 2: Hardening | In Progress | Zero-trust security, self-healing, distributed processing, test coverage |
| Phase 3: Intelligence | Planned | Advanced reasoning, metacognition, curiosity-driven learning, full AGI bridge |
| Phase 4: Scale | Planned | Multi-node clusters, cloud deployment, enterprise features, marketplace |
| Layer | Technology |
|---|---|
| Runtime | Electron 40+, Node.js 18+ |
| UI | React 18, TypeScript, Zustand |
| Backend | Node.js (core), Python 3.10+ (ML/knowledge) |
| LLM SDKs | openai, @anthropic-ai/sdk, @google/generative-ai |
| NLP | natural, node-nlp, @xenova/transformers |
| Vision | tesseract.js, canvas |
| Database | better-sqlite3, VectorDB |
| Realtime | socket.io, WebSocket (ws) |
| Security | Node.js crypto (AES-256-GCM, ECDH, Ed25519), bcrypt |
| Logging | winston |
| Testing | Jest 29, Babel, chai, sinon |
| Build | electron-builder, Webpack |
| CI/CD | GitHub Actions |
| Linting | ESLint, Prettier |
MIT License - See LICENSE file for details.
3 commits
JavaScript
92.3%
TypeScript
3.9%
CSS
1.8%
Python
1.0%
HTML
1.0%