An autonomous AI agent that combines personal assistance, long-term learning, coding, email, voice, phone, messaging, MCP servers, browser automation, robotics APIs, and smart-home control into a single continuously running agent. 100% free to use with local Cerebras proxy. π
- Claude Code-style UI with sidebar, chat pane, and tabbed right panel
- Fable 5 Agentic Engine with ultrathinking (Explore β Plan β Execute β Verify)
- Mythos 5 Security Scanner with 10 vulnerability categories and auto-fix
- Hermes 3-Layer Memory (durable memory, skills, session DB with FTS5)
- Persistent long-term goals injected into every conversation
- Cognitive engine with soul, personality, reflections, and self-improvement
- Model selector (GPT-OSS 120B, Llama 3.3 70B, Qwen 3 32B)
- Command palette (Ctrl+K) and keyboard shortcuts
- AI's own email inbox via AgentMail.to API
- Send, receive, reply, forward, delete emails
- Thread and draft management
- LLM-powered auto-reply with conversation context
- Webhook server for real-time incoming email processing
- Make and receive phone calls via Twilio
- SMS sending with validation
- TwiML voice response generation
- Call recording and transcription
- Webhook handling with signature verification
- Full Telegram Bot API client
- Long polling and webhook modes
- Message sending (text, photo, document, location)
- Inline keyboards and callback queries
- Command registration and handling
- Chat management (ban, unban, title, admins)
- Rate limiting and retry with exponential backoff
- Model Context Protocol client for external services
- Stdio and SSE transports
- Dynamic server discovery and registration
- Tool discovery, invocation, and auto-discovery
- Resource reading and prompt templates
- Rate limiting per server with health monitoring and auto-reconnect
- Connects to Gmail, Outlook, calendars, banking APIs, trading APIs, and more
- Headless and headed browser sessions
- Multi-tab management
- Page navigation, screenshots, PDF generation
- Element interaction (click, type, select, hover, scroll)
- Form filling and submission
- Cookie and localStorage management
- Network request interception
- JavaScript execution in page context
- Session persistence and proxy configuration
- ROS bridge via rosbridge_suite WebSocket
- Serial port communication (Arduino, Raspberry Pi Pico, etc.)
- TCP socket for custom robot protocols
- Joint and Cartesian motion commands
- Safety limits and emergency stop
- Gripper/end-effector control
- Sensor data streaming and telemetry
- Task sequencing and execution queue
- Home Assistant integration (REST API)
- Philips Hue bridge integration
- Generic HTTP/Webhook device support
- Lighting control (dimming, color, color temperature, scenes)
- Climate/thermostat control
- Lock and cover (blinds/garage) control
- Media player control
- Security/alarm system integration
- Automation rules (trigger β action with conditions)
- Scene activation and script execution
- Multi-phase planning: Explore β Plan β Execute β Verify
- Always uses maximum reasoning effort (ultrathinking)
- 8192 thinking tokens per phase, up to 30 execution steps
- Sub-agent dispatch for parallel work
- Context compaction when approaching token limits
- Self-verification of results
- Tool calling (file read/write, shell commands, session search)
- Core directive: No scaffolding or placeholder implementations β fully production-quality code always
- Codebase mapping (entry points, routes, data flow)
- Framework detection (React, Next.js, Express, Django, Flask, Spring, Go)
- 10 security rule categories:
- SQL Injection
- XSS (Reflected)
- Hardcoded Secrets
- Path Traversal
- Command Injection
- Insecure Deserialization
- Weak Crypto
- CORS Misconfiguration
- Missing Authentication
- Open Redirect
- Auto-fix suggestions for each finding
- Risk surface identification
- Layer 1 β Durable Memory: SOUL.md (persona), MEMORY.md (facts), USER.md (user profile)
- Always loaded into system prompt
- Auto-write from "remember that..." triggers
- Hand-editable markdown
- Layer 2 β Skills: Procedural memory in
~/.cursescode/skills/- Auto-created after 3+ successful similar tasks
- Loaded on-demand when task matches
- User-lockable to prevent auto-regeneration
- Layer 3 β Session DB: SQLite with FTS5 full-text search
- Every message stored and searchable
session_searchtool for recalling past conversations- Zero token cost unless queried
- Long-Term Persistent Goals: GOALS.md in memory directory
- Goals persist across all sessions and are injected into every system prompt
- Add, remove, update status (active/completed/paused), toggle steps
- Priority levels (high/medium/low) with visual indicators
- The agent works toward these goals in every conversation
singularity-email/
βββ main.js # Electron main process, IPC handlers
βββ preload.js # Context bridge API
βββ renderer.js # UI logic
βββ index.html # App layout
βββ assets/ # Icons
βββ src/
β βββ logger.js # Structured logging
β βββ session-db.js # SQLite FTS5 session search
β βββ memory-manager.js # Durable memory (SOUL.md, MEMORY.md, USER.md)
β βββ skill-manager.js # Procedural skills
β βββ llm-client.js # Cerebras proxy client with streaming
β βββ agentic-engine.js # Fable 5 multi-phase ultrathinking engine
β βββ security-scanner.js # Mythos 5 security analysis
β βββ cognitive-engine.js # Cognitive engine with self-improvement
β βββ goal-manager.js # Persistent long-term goals
β βββ agent-mail.js # AgentMail email API client
β βββ hermes-bridge.js # OpenClaw + Hermes inter-agent bridge
β βββ voice-plugin.js # Twilio voice/SMS plugin
β βββ telegram-bot.js # Telegram Bot API client
β βββ mcp-connector.js # MCP protocol client (Gmail, Outlook, etc.)
β βββ browser-automation.js # Puppeteer browser automation
β βββ robotics-api.js # ROS + serial robotics control
β βββ smart-home.js # Home Assistant, Hue, smart devices
βββ tests/ # Module test suites
βββ test/ # Core component tests
All data stored in ~/.singularity-email/:
sessions/β JSON files per chat sessionmemory/β SOUL.md, MEMORY.md, USER.md, GOALS.mdskills/β Skill folders with SKILL.mdstate.dbβ SQLite session database with FTS5
npm install
npm startRequires a Cerebras proxy running on 127.0.0.1:8090.
Set AGENTMAIL_API_KEY in .env or via the Email tab in the UI.
Set TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER in .env or via the Voice tab.
Set TELEGRAM_BOT_TOKEN in .env or via the Telegram tab.
Register MCP servers via the MCP tab. Supports stdio (command-based) and SSE (URL-based) transports.
Sessions are created on-demand via the Browser tab. Requires Puppeteer.
Create connections via the Robotics tab. Supports ROS (WebSocket), Serial, and TCP.
Add platforms via the Home tab. Supports Home Assistant, Philips Hue, and generic HTTP devices.
npm testRuns all test suites including core components, AgentMail, HermesBridge, VoicePlugin, TelegramBot, MCP Connector, Browser Automation, Robotics API, and Smart Home.
Uses free Cerebras models via local proxy:
- GPT-OSS 120B (default, supports effort levels)
- Llama 3.3 70B
- Qwen 3 32B
MIT