Skip to content

SufZen/RealizeOS-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RealizeOS

RealizeOS V5

The AI operations system for your business.
Coordinated AI agents that understand your venture, remember your preferences,
and execute multi-step workflows β€” not just another chatbot.

CI License: BSL 1.1 Python 3.11+ Stars

⚑ Quickstart Β· πŸ—οΈ Architecture Β· ✨ Features Β· πŸš€ Self-Host Β· 🀝 Contribute


What is RealizeOS?

RealizeOS is a self-hosted AI operations system that gives your business a coordinated team of AI agents. Unlike generic chatbots, RealizeOS agents:

  • 🧠 Know your venture β€” identity, voice, audience, domain expertise
  • πŸ”„ Run multi-step workflows β€” not just single-shot Q&A
  • πŸ€– Route to the right model β€” Flash for speed, Sonnet for content, Opus for strategy
  • πŸ›‘οΈ Respect governance β€” approval gates, audit logs, human-in-the-loop
  • πŸ“ˆ Self-improve β€” gap detection, skill suggestion, prompt refinement

Quick Start

From Source (recommended first install)

οΏ½ash git clone https://github.com/SufZen/RealizeOS-5.git cd RealizeOS-5 cp .env.example .env # Add your API key(s) docker compose up --build # Dashboard at http://localhost:8080

No Docker? Use the Python-native method below.

pip (Python-native, no Docker)

`οΏ½ash pip install realize-os realize-os init --template consulting realize-os serve

`

Requires Python 3.11+. Works on Windows, macOS, and Linux.

Linux / macOS (one-liner)

οΏ½ash curl -fsSL https://raw.githubusercontent.com/SufZen/RealizeOS-5/main/scripts/install.sh | bash

Windows (PowerShell, one-liner)

powershell irm https://raw.githubusercontent.com/SufZen/RealizeOS-5/main/scripts/install.ps1 | iex

NPX (scaffolds a new project)

`οΏ½ash npx @realize-os/cli init my-business cd my-business

Edit .env to add your API key(s)

npx @realize-os/cli start

`

Requires Node.js 18+ and Docker.

Docker (standalone container)

`οΏ½ash docker run -d -p 8080:8080 -v realizeos-data:/app/data ghcr.io/sufzen/realizeos:latest

`

Method Requires Best For
Source Git + Docker (or Python 3.11+) Contributing, customization, first-time users
pip Python 3.11+ Python devs, local development without Docker
curl/PS1 bash/PowerShell + Docker Server deployment, CI/CD scripting
NPX Node.js 18+ & Docker Quickest scaffolding of a new project
Docker Docker Isolated, reproducible, production-ready

πŸ“– Full setup guide: QUICKSTART.md Β· Self-hosting: docs/self-hosting-guide.md

Features

πŸ—οΈ The FABRIC Knowledge System

Every venture's AI knowledge is organized into six layers:

Layer Purpose
Foundations Venture identity, voice, core standards
Agents AI team definitions and routing guide
Brain Domain knowledge, market data, expertise
Routines Skills, workflows, state maps, SOPs
Insights Memory: learning log, feedback, decisions
Creations Output: deliverables, drafts, final assets

πŸ€– Multi-LLM Routing

The engine classifies every task and selects the optimal model:

Task Type Model Examples
Simple Gemini Flash Status checks, formatting, lookups
Content Claude Sonnet Writing, analysis, summarization
Complex Claude Opus Strategy, multi-step reasoning

Providers auto-discovered at startup. Supports Claude, Gemini, OpenAI, and Ollama (local).

πŸ”§ Agent System (V2)

  • Composable agents with scope, inputs, outputs, guardrails, and tools
  • Pipelines β€” sequential execution with Dev-QA retry loops and circular dependency detection
  • 7 handoff types β€” standard, QA-pass, QA-fail, escalation, phase-gate, sprint, incident
  • Hot-reload β€” filesystem-watched agent registry
  • Tool gating β€” per-agent allowlists/denylists for tool access

🧬 Agent Intelligence (V5)

  • Per-Agent Persona (SOUL) β€” Each agent has persistent identity: role, personality, expertise, communication style, defined in YAML
  • Workspace Goal Injection β€” Venture-level goals auto-injected into every agent session via GOAL.md or config
  • Session Startup Brief β€” Auto-generated situational briefs at session start with pending tasks, recent activity, and open approvals
  • Brand Profile System β€” Venture-level brand voice, tone, and guidelines injected into content-focused sessions
  • Per-Agent Tool Gating β€” Agents only see tools for their role via tools_allowlist / tools_denylist in persona config

🀝 Coordination & Messaging (V5)

  • Operator Approval Primitive β€” Agents pause and request human approval, credentials, or input (request_decision, request_credential, request_input)
  • Agent-to-Agent Messaging Bus β€” Direct messaging (agent:<slug>), human notifications (human:default), channel broadcasts (channel:<name>), and offline queuing
  • Eval Harness β€” YAML-based behavioral test suites with scoring (pattern matching, tool accuracy, custom dimensions)
  • Template Marketplace β€” Install pre-built venture templates: agency, saas, consulting β€” each with agents, goals, brand profiles, and skills

🧩 Extension System

Type Purpose Example
tool New capabilities Stripe, Twilio, custom APIs
channel Communication Slack, Discord, WhatsApp
integration Backend sync CRM, analytics
hook Event reactions Notifications, logging

πŸ› οΈ Tool Ecosystem

Category Tools Capabilities
Gmail 8 Search, read, send, draft, reply, forward, triage, label
Calendar 4 List, create, update, find free time
Drive 9 Search, list, read, create, append, upload, download, permissions, move
Sheets 3 Read, append, create
Stripe Financial Charges, subscriptions, invoices with safety guards
Browser Web automation Headless Chromium page interaction
Web Search + fetch Brave API search, page scraping with SSRF protection
MCP Protocol Connect to any MCP-compatible tool server
Messaging Agent bus Agent-to-agent, human notifications, channel broadcasts
Social Publishing Social media content posting
Telephony Voice Twilio-powered voice/SMS
PM Project mgmt Task tracking, status reporting
Docs Generation Document and report generation
Approval Governance Human-in-the-loop approval workflows

πŸ“‹ Business Templates

Pre-built configurations for common ventures:

consulting Β· agency Β· portfolio Β· saas Β· ecommerce Β· accounting Β· coaching Β· freelance

python cli.py init --template consulting

πŸ›‘οΈ Security & Governance

  • 5-layer security middleware: Security headers β†’ Audit logging β†’ Rate limiting β†’ Injection guard β†’ JWT auth
  • JWT authentication with HMAC-SHA256 tokens and refresh flow
  • RBAC with 6 roles: owner, admin, operator, user, viewer, guest (+ custom YAML roles)
  • Prompt injection scanner β€” pattern + heuristic + Unicode normalization defense
  • Human-in-the-loop approval gates for consequential actions
  • Audit logging β€” JSONL persistent logs with SSE streaming
  • Secret redaction in error responses and logs
  • Built-in security scanner β€” automated posture checks at startup

Architecture

User β†’ Channel (API/Telegram/WhatsApp/Webhooks)
  β†’ Security (Headers β†’ Audit β†’ Rate Limit β†’ Injection Guard β†’ JWT)
  β†’ Base Handler β†’ LLM Router (Flash/Sonnet/Opus)
  β†’ Prompt Builder (FABRIC context) β†’ Tool Execution
  β†’ Extensions β†’ Governance β†’ Evolution Engine β†’ Response

πŸ“– Deep dive: docs/architecture.md

CLI

python cli.py init --template NAME           # Initialize from template
python cli.py init --setup setup.yaml        # Initialize from setup file
python cli.py serve [--port PORT] [--reload] # Start API + dashboard
python cli.py bot                            # Start Telegram bot
python cli.py status                         # Show system status
python cli.py audit [--quick]               # Run the structured audit playbook
python cli.py index                          # Rebuild KB search index
python cli.py venture create --key KEY       # Create new venture
python cli.py venture delete --key KEY       # Delete a venture
python cli.py venture list                   # List ventures
python cli.py setup                          # Interactive setup wizard
python cli.py doctor                         # Diagnose installation issues
python cli.py devmode setup                  # Generate AI tool context files
python cli.py devmode check                  # Run system health check
python cli.py devmode scaffold --name NAME   # Scaffold a new extension
python cli.py devmode snapshot               # Create a git safety snapshot
python cli.py devmode rollback --tag TAG     # Rollback to a snapshot

API

Method Endpoint Description
POST /api/chat Send message, get AI response
GET /api/systems List all systems
GET /api/systems/{key} System details
GET /api/systems/{key}/agents List agents
GET /api/systems/{key}/skills List skills
POST /api/systems/reload Hot-reload configuration
GET /api/activity/stream SSE activity feed
POST /api/auth/token Generate JWT access + refresh tokens
POST /api/auth/refresh Refresh an expired access token
CRUD /api/ventures/* Venture management
CRUD /api/ventures/{key}/agents/* Per-venture agent management
CRUD /api/ventures/{key}/kb/* Per-venture knowledge base
CRUD /api/workflows/* Workflow management
CRUD /api/approvals/* Approval request management
CRUD /api/extensions/* Extension management
CRUD /api/webhooks/* Webhook management
GET /api/settings/* System settings (LLM, security, tools, memory, etc.)
GET /api/security/scan Run security posture scan
GET /api/evolution/* Self-improvement suggestions
GET /api/devmode/* Developer mode status
GET /api/health Health check
GET /status Detailed system status

Documentation

Guide Description
⚑ Quickstart Zero to running in 10 minutes
πŸ—οΈ Architecture FABRIC, message flow, modules
🩺 Audit Playbook Risk-first audit workflow and session template
πŸ“– Getting Started First steps after setup
πŸ”§ Configuration Customize your deployment
πŸš€ Self-Hosting Production deployment
✍️ Skill Authoring Create custom skills
πŸ“‘ API Reference REST API documentation
🀝 Contributing Developer guide

Requirements

  • Python 3.11+ (3.12+ recommended)
  • At least one LLM API key (Anthropic, Google, OpenAI, or Ollama)
  • Docker 24.0+ (optional, for containerized deployment)
  • Node.js 20+ (optional, for dashboard development)

Community

License

RealizeOS V5 is licensed under the Business Source License 1.1.

What this means:

  • βœ… Free to use, modify, and self-host
  • βœ… Free for internal business operations
  • βœ… Converts to Apache 2.0 on March 26, 2030
  • ❌ Cannot offer as a hosted/managed service to third parties without a commercial license

For commercial licensing inquiries, contact realizeos@realization.co.il.

About

RealizeOS 5 - Full

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors