๐ Hypnos is a daemonized workflow automation system that transforms your vague ideas into complete projects using AI-powered generation. Control everything through Telegram bot with secure workspace isolation and AI persona collaboration.
- ๐ค AI-Powered Project Generation - Transform vague ideas into complete projects
- ๐ฑ Telegram Bot Control - Manage workflows from anywhere via Telegram
- ๐ญ AI Personas & Teams - Work with AI personalities (Alex, Sarah, Marcus, etc.)
- ๐ Security-First Design - Complete workspace isolation with path traversal protection
- ๐ฅ Multi-User Support - User-based access control and workspace management
- ๐ค Multi-LLM Support - Claude, Zlaude, GPT-4, and local models
- ๐๏ธ Intelligent Architecture - Natural language to complete project generation
graph TB
%% User Interface Layer
User[๐ค User] --> Telegram[๐ฑ Telegram Bot]
%% Command Processing
Telegram --> CommandHandler[๐ฎ Command Handler]
%% Authentication & Security
CommandHandler --> Auth[๐ Authentication Layer]
Auth --> |User ID Validation| UserContext[๐ฅ User Context]
%% Core Management Systems
CommandHandler --> WorkspaceManager[๐ Workspace Manager]
CommandHandler --> PersonaManager[๐ญ Persona Manager]
CommandHandler --> LLMManager[๐ค LLM Manager]
%% Workspace System
WorkspaceManager --> WorkspaceContext[๐๏ธ Workspace Context]
WorkspaceManager --> IsolatedStorage[๐ Isolated Storage<br/>~/.hypnos/workspaces/]
%% Security Features
IsolatedStorage --> PathTraversal[๐ก๏ธ Path Traversal Protection]
IsolatedStorage --> FileTypeFilter[๐ File Type Filtering]
IsolatedStorage --> UserIsolation[๐ User-based Isolation]
%% Persona System
PersonaManager --> Personas[๐ญ Global Personas<br/>Alex, Sarah, Marcus, Evelyn, Jamie]
PersonaManager --> Teams[๐ฅ Teams<br/>Full-Stack, Mobile, Enterprise]
PersonaManager --> PersonaStorage[๐พ Persona Config<br/>~/.hypnos/personas.json]
%% AI/LLM Integration
LLMManager --> Providers[๐ LLM Providers<br/>Claude, Zlaude, GPT-4, Local Models]
LLMManager --> CostOptimization[๐ฐ Cost Optimization]
LLMManager --> Failover[๐ Failover System]
%% Project Generation Workflow
CommandHandler --> WorkspaceGenerator[๐๏ธ Workspace Generator]
WorkspaceGenerator --> ProjectSpec[๐ Project Specification]
WorkspaceGenerator --> CodeGeneration[๐ป Code Generation]
WorkspaceGenerator --> DependencySetup[๐ฆ Dependency Setup]
%% AI Integration in Generation
ProjectSpec --> LLMManager
CodeGeneration --> PersonaPrompts[๐ญ Persona System Prompts]
PersonaPrompts --> LLMManager
%% Output & Storage
CodeGeneration --> GeneratedFiles[๐ Generated Project Files]
GeneratedFiles --> ProjectStructure[๐๏ธ Project Structure]
ProjectStructure --> Documentation[๐ Documentation]
%% State Management
UserContext --> WorkspaceContext
PersonaManager --> ProjectGenerationContext[๐ฏ Generation Context]
%% Styling
classDef userLayer fill:#e1f5fe
classDef securityLayer fill:#fff3e0
classDef coreLayer fill:#f3e5f5
classDef aiLayer fill:#e8f5e8
classDef storageLayer fill:#fce4ec
class User,Telegram userLayer
class Auth,PathTraversal,FileTypeFilter,UserIsolation securityLayer
class WorkspaceManager,PersonaManager,LLMManager,WorkspaceGenerator coreLayer
class LLMManager,Providers,CostOptimization,Failover,PersonaPrompts aiLayer
class IsolatedStorage,PersonaStorage,GeneratedFiles storageLayer
- Node.js 18+
- npm or yarn
- Telegram Bot Token
git clone https://github.com/karolswdev/hypnos.git
cd hypnos
npm install- Create a Telegram bot via @BotFather
- Set environment variables:
export HYPNOS_BOT_TOKEN="your_bot_token_here"
export HYPNOS_ADMIN_USER_ID="your_telegram_user_id"npm run hypnos:test/start- Welcome message and status/help- Show all available commands/status- Check daemon status/ping- Test bot response time
/ws- Show workspace overview/ws use <workspace>- Switch active workspace/ws create <name>- Create new workspace/ws delete <workspace>- Delete workspace
/personas- Show available AI personas/persona use <name>- Set active persona/teams- Show available teams/team use <name>- Set active team
/create "project idea"- Create project from vague idea/enhance <workspace> <feature>- Add features to existing project
- ๐งโ๐ป Alex Chen - Senior Full-Stack Developer (React, TypeScript, Node.js)
- ๐จ Sarah Miller - UI/UX Designer (Figma, CSS, Accessibility)
- โ๏ธ Marcus Johnson - DevOps Engineer (Docker, CI/CD, AWS)
- ๐๏ธ Dr. Evelyn Reed - System Architect (Microservices, Security)
- ๐ฑ Jamie Park - Mobile Developer (React Native, iOS, Android)
- Complete workspace isolation in
~/.hypnos/workspaces/ - Path traversal protection and file type filtering
- User-based authentication via Telegram user IDs
- Secure AI provider integration
Hypnos integrates with multiple LLM providers:
- Claude (Anthropic) - Advanced reasoning and code generation
- Zlaude - Specialized development tasks
- GPT-4 (OpenAI) - Versatile general-purpose AI
- Local Models - Privacy-focused offline generation
hypnos/
โโโ src/
โ โโโ hypnos/
โ โ โโโ core/ # Core management systems
โ โ โโโ integrations/ # External integrations
โ โ โโโ utils/ # Utility functions
โ โโโ cli/ # CLI interface
โโโ docs/ # Documentation
โโโ templates/ # Project templates
Phase 1 - Complete โ
- โ Telegram bot integration
- โ Secure workspace management
- โ Persona & team system
- โ Multi-user support
Phase 2 - In Progress ๐ง
- ๐ง AI-powered project generation
- ๐ง Multi-LLM integration
- ๐ง Intelligent code generation
Contributions are welcome! Please read our contributing guidelines and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with โค๏ธ using:
- node-telegram-bot-api
- TypeScript
- The open-source community
๐ Hypnos - Transform your ideas into reality, one command at a time.