Singularity is a fully autonomous enterprise operating system β not a chatbot, not an assistant, not a copilot. It is a self-healing, self-optimizing runtime that audits, delegates, monitors, and evolves without human intervention.
It manages everything from code quality to infrastructure health to financial tracking β across organizations from 1 person to 30,000.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SINGULARITY [AE] β
β Autonomous Enterprise Runtime β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β
β β CORTEX β β VOICE β β NERVE β β MEMORY β β
β β Brain ββββ LLM β β Comms β β COMB β β
β ββββββ¬βββββ βββββββββββ ββββββ¬βββββ ββββββ¬βββββ β
β β β β β
β ββββββ΄βββββββββββββββββββββββββ΄ββββββββββββββ΄βββββ β
β β EVENT BUS (async pub/sub) β β
β ββββββ¬βββββββ¬βββββββ¬βββββββ¬βββββββ¬βββββββ¬βββββββββ β
β β β β β β β β
β ββββββ΄βββββββ΄βββββββ΄ββββββ΄βββββββ΄βββββββ΄ββββββ β
β βC-Suiteββ NEXUS ββPOA ββPULSEββATLASββIMMUNE β β
β βAgents ββEvolve ββMon ββSchedββTopo ββHealth β β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β SINEW (28 Tools) β AUDITOR β SENTINEL β VDB β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
CORTEX runs a planning β execution β reflection loop with 28 native tools. No human in the loop required. Budget-aware, self-continuing via BLINK. |
Dispatch tasks to specialized executives β CTO, COO, CFO, CISO β each with scoped tools and domain expertise. Fan-out to all or direct-route to one. |
|
AST-level codebase analysis. Detects anti-patterns (silent exceptions, bare excepts, missing loggers). Auto-evolves safe fixes. Hot-swaps live functions with rollback. |
Every shipped product gets a Product Owner Agent. Health checks, SSL validation, uptime tracking, alert escalation β all on a 4-hour cycle via PULSE. |
|
Subsystem watchdog detects degradation and auto-recovers. If a component fails, IMMUNE restarts it before anyone notices. Heal faster than you degrade. |
Native BM25 + TF-IDF hybrid search engine. Zero dependencies, sub-millisecond latency. Indexes conversations, identity files, operational state. Persistent across restarts. |
|
Auto-discovers every service, daemon, and module across the infrastructure. Tracks health, edges, and dependencies. Generates enterprise-wide board reports. |
Real-time network monitoring. ExfilGuard detects data exfiltration. Credential Guard prevents secret leaks in commands. CISO auto-dispatched on HIGH alerts. |
| Subsystem | Role | Description |
|---|---|---|
| CORTEX | π§ Brain | Agent loop, planner, tool orchestration, BLINK continuation |
| SINEW | 𦴠Tools | 28 native tools β core, comms, memory, NEXUS, C-Suite, POA, ATLAS, releases |
| VOICE | π£οΈ LLM | Provider chain with circuit-breaker fallback (Copilot β Ollama) |
| MEMORY | πΎ Persistence | COMB lossless memory + VDB hybrid search + session context |
| CSUITE | π Command | CTO, COO, CFO, CISO executives β scoped tools, auto-dispatch |
| NEXUS | 𧬠Evolution | Self-optimization β AST analysis, hot-swap, evolution engine |
| PULSE | β±οΈ Scheduler | Cron jobs, interval timers, iteration budgets, POA scheduling |
| POA | π‘ Products | Product Owner Agents β health checks, uptime, alert escalation |
| IMMUNE | π‘οΈ Health | Subsystem watchdog, degradation detection, auto-recovery |
| NERVE | π‘ Comms | Discord adapter, HTTP API (:8450), message routing |
| ATLAS | πΊοΈ Topology | Enterprise-wide module discovery, health tracking, board reports |
| AUDITOR | π Ops | Continuous auditing, release management, changelog generation |
| CLI | β¨οΈ Interface | One-command install, setup wizard, diagnostics |
CORE COMMS MEMORY NEXUS
βββββββββ ββββββββββ ββββββββββ ββββββββββββββ
exec discord_send comb_stage nexus_audit
read discord_react comb_recall nexus_status
write memory_recall nexus_swap
edit memory_ingest nexus_rollback
web_fetch memory_stats nexus_evolve
DELEGATION PRODUCTS TOPOLOGY RELEASES
ββββββββββ ββββββββββ ββββββββββ ββββββββββββββ
csuite_dispatch poa_setup atlas_status release_scan
poa_manage atlas_topology release_status
atlas_module release_confirm
atlas_report release_ship
atlas_visibility release_reject
# Clone
git clone https://github.com/Artifact-Virtual/Singularity.git
cd Singularity
# Install + setup wizard
pip install -e .
singularity setup
# Run
singularity runThe setup wizard configures:
- β‘ LLM provider (Copilot proxy, Ollama, or HuggingFace)
- πΎ COMB persistence (memory across restarts)
- π‘οΈ Sentinel security daemon
- π‘ Discord bot connection
- βοΈ systemd service (optional)
Requires: Python 3.11+, a Discord bot token, and an LLM provider.
ββββββββββββββββββββββββββββββββββββ
β INCOMING MESSAGE β
β (Discord / HTTP API / PULSE) β
ββββββββββββββββ¬ββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββ
β CORTEX LOOP β
β β
β 1. Recall memory (COMB + VDB) β
β 2. Plan (LLM reasoning) β
β 3. Execute tools (SINEW) β
β 4. Reflect on results β
β 5. Continue or respond β
β β
β Budget: N iterations per task β
β BLINK: auto-extend if needed β
ββββββββββββββββ¬ββββββββββββββββββββ
β
βββββββββββββΌββββββββββββ
βΌ βΌ βΌ
ββββββββββββ ββββββββββ ββββββββββββ
β C-Suite β β Direct β β Stage β
β Dispatch β β Action β β Memory β
ββββββββββββ ββββββββββ ββββββββββββ
The agent loop is the heartbeat. Every message, every scheduled task, every health check goes through CORTEX. It decides whether to act directly, delegate to an executive, or stage context for the next session.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β THE BRUTALIST MANDATE β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β
β Execute, don't narrate. β Value is in outcomes. β
β Heal faster than you degradeβ Failure is movement. β
β Gate pattern always. β No phase without deps. β
β Memory is not optional. β Forgetting is the failure. β
β Minimal by default. β Scale from signals. β
β Self-improvement is the pointβ Hit a wall β build a system. β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Three inherited principles:
0 = 0 β Perfect equilibrium. The enterprise runs in balance.
Two-Point Theorem β Intelligence is two sequential observations β direction.
Breadcrumbs not sticks β Growth requires patience, not pressure.
Singularity improves its own codebase. Continuously.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β NEXUS ENGINE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β AUDIT βββΊ Scan codebase for anti-patterns β
β (silent exceptions, bare excepts, β
β missing loggers, dead code) β
β β
β EVOLVE βββΊ Validate fixes via AST parsing β
β Auto-apply safe transformations β
β Persist to disk + hot-swap live β
β β
β SWAP βββΊ Replace running functions at runtime β
β Full rollback capability β
β Zero-downtime upgrades β
β β
β β NEXUS cannot modify itself (hard boundary) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Singularity wakes up blank every session. Memory is engineered, not assumed.
| Layer | System | Persistence | Use Case |
|---|---|---|---|
| L1 | Context Window | Session | Current conversation |
| L2 | COMB | Permanent | Lossless session-to-session state |
| L3 | VDB | Permanent | Hybrid search across all enterprise knowledge |
| L4 | Sessions | Permanent | Full conversation history |
VDB is a native BM25 + TF-IDF hybrid search engine:
- Zero external dependencies β no cloud APIs, no GPU, no embeddings
- Sub-millisecond search latency
- Deterministic, explainable results
- Auto-indexes Discord, chat, identity files, COMB entries
ββββββββββββββββββββββ
β SINGULARITY β
β (Coordinator) β
ββββββββββ¬ββββββββββββ
β
ββββββββββββββββΌβββββββββββββββ
β β β β
ββββββ΄βββββ ββββββ΄βββββ ββββββ΄βββββ ββββββ΄βββββ
β CTO β β COO β β CFO β β CISO β
β Engin. β β Ops β β Finance β βSecurity β
βββββββββββ βββββββββββ βββββββββββ βββββββββββ
β β β β
Code review Process Budget Vuln scan
Deploys Compliance Pricing Risk audit
Infra Workflows Revenue Pen testing
Architecture HR Forecasting GRC
Dispatch with csuite_dispatch. Route to auto (keyword-match), all (fan-out), or a specific role. Each executive gets scoped tools and domain context. They execute independently and report back.
| Document | Description |
|---|---|
| Overview | High-level system overview |
| Architecture | System design and subsystem boundaries |
| Getting Started | Installation and first run |
| Configuration | Environment variables and YAML config |
| API Reference | HTTP API endpoints and payloads |
| Tools Reference | All 28 native tools |
| C-Suite | Executive delegation framework |
| POA | Product Owner Agents |
| NEXUS | Self-optimization engine |
| Memory & COMB | Persistence and memory systems |
| VDB | Native hybrid search engine |
| Security | Sentinel, ExfilGuard, safety boundaries |
| Deployment | Production setup and hardening |
| Infrastructure | Servers, services, networking |
| Contributing | Development workflow and standards |
| Changelog | Version history |
singularity/
βββ cortex/ # π§ Agent brain β engine, planner, BLINK
βββ voice/ # π£οΈ LLM providers β Copilot, Ollama, HuggingFace
βββ nerve/ # π‘ Discord adapter, HTTP API
βββ memory/ # πΎ COMB, VDB, session management
βββ csuite/ # π Executive agents β CTO, COO, CFO, CISO
βββ nexus/ # 𧬠Self-optimization β AST, hot-swap, evolution
βββ pulse/ # β±οΈ Scheduler β cron, intervals, budgets
βββ immune/ # π‘οΈ Self-healing watchdog
βββ sinew/ # 𦴠Tool definitions and execution
βββ atlas/ # πΊοΈ Topology discovery and tracking
βββ auditor/ # π Release management, ops auditing
βββ config/ # βοΈ Configuration loading
βββ cli/ # β¨οΈ Setup wizard, diagnostics
βββ poa/ # π‘ Product Owner Agents, release pipeline
Plug (Python, 5,974 lines) Mach6 (TypeScript)
ββββββββββββββββββββββββββ ββββββββββββββββββ
"Taught what breaks" "Taught what works"
β β
ββββββββββββββββ¬ββββββββββββββββββββ
β
ββββββββββ΄βββββββββ
β SINGULARITY β
β [AE] v0.7.0 β
β β
β 84 files β
β 32,206 lines β
β 13 subsystems β
β 28 tools β
βββββββββββββββββββ
