Skip to content

About

Local-first AI knowledge engine — hybrid RAG, interactive knowledge graph, PII redaction, and multi-turn chat over Markdown, PDF, and DOCX vaults.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

168 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REALM Knowledge Engine

Your local-first desktop workspace for organizing files, thinking with AI, and turning knowledge into verified work — with zero cloud lock-in.

Download REALM v0.12.1 (macOS · Windows · Linux) · All Releases & Checksums · User Guide · Security

Local-First by Default · Apple Notarized macOS App · Built-In Offline AI + 10 Providers · MIT Licensed


REALM Knowledge Engine workspace showing the file explorer, Markdown preview, and Copilot Agent Options

REALM Engine running Saga (REALM Cyan) with the Files Explorer, Markdown preview, and Copilot Agent Options (Workspace File Tools, Auto-Verify, and Independent Spec Check).

Compare Dark & Light themes side by side
REALM Engine Dark Theme
Dark Workspace (Saga · REALM Cyan) — 4-Zone IDE workbench with Copilot & Agent Mode controls.
REALM Engine Light Theme
Light (Clear) Theme — Clean, high-contrast daylight reading & editing layout.

Downloads

Platform Signing / Status Direct Download (v0.12.1) Verification
macOS Apple Silicon (arm64) Developer ID Signed & Apple-Notarized REALM-Engine-0.12.1-macos-apple-silicon.dmg SHA256SUMS.txt · SBOM
macOS Intel (x86_64) Developer ID Signed & Apple-Notarized REALM-Engine-0.12.1-macos-intel.dmg SHA256SUMS.txt · SBOM
Linux (x86_64) Attested Standalone Bundle REALM-Engine-0.12.1-linux-x86_64.tar.gz SHA256SUMS.txt
Windows (x64) Unsigned Preview (SmartScreen: More info → Run anyway) setup.exe · portable.zip SHA256SUMS.txt

Install notes:

  • macOS (Apple Silicon & Intel): Open the .dmg, drag REALM Engine into Applications, and launch with Gatekeeper enabled.
  • Linux: Extract the .tar.gz and run ./"REALM Engine"/start-realm.sh (or double-click REALM Engine).
  • Windows: Run setup.exe (or extract portable.zip). Because this preview is not yet Authenticode-signed, Windows SmartScreen will show "Unknown publisher" — click More info → Run anyway after verifying its SHA-256 against SHA256SUMS.txt.

Why REALM?

Most AI tools force you to upload your private notes to a cloud service, mix everything into one noisy chat, and hope prompts alone keep tools from making mistakes. REALM works differently:

Private on Your Machine Starts Calm, Grows With You Real Guardrails — Not Just Prompts
Your files, chats, memories, and 0600 keys stay on your device. Strict Local-Only Lock starts ON, with built-in offline AI (llama-server), local Whisper voice, and Apple Vision / Tesseract OCR. Open a clean, distraction-free workspace first. Turn on only the studios you want from Modules Hub (or pick a 1-click Starter Pack). Turning a studio off hides its clutter while keeping your data safe on disk. Every file edit saves a crash-safe Pre-Tool Undo Checkpoint (↺ Rewind), external/shell actions pause for explicit Tier 3 Approval, API keys lock to one exact site ({{secret:<slug>}}), and checks can run inside a --network=none sandbox.

Living Agent Themes & Visual Tour

REALM ships with 6 editable specialist agents built on the 5 REALM Framework v2.0 Operating Classes (Warrior, Mage, Hunter, Cleric, Bard) plus Saga as your everyday generalist.

Each agent has its own analytical lens, visual palette, and subtle ambient aura — switching agents mid-workflow transforms the workspace atmosphere automatically (or toggle Fix Global Theme in Settings to keep one look everywhere).

Mikael Bard Resonant Tide Hero Canvas
Calm Hero Canvas — Mikael (Bard · Resonant Tide)
Zero toolbar clutter: one clean prompt pill, instant starter prompts from your real documents, voice dictation, and glowing per-agent auras.
3D Knowledge Brain in Lisbeth Mage Astral Violet theme
3D Knowledge Brain — Lisbeth (Mage · Astral Violet)
Explore how your notes, specs, and ADRs connect in interactive 3D or 2D, paired with hybrid BM25 + Vector Retrieval X-Ray (⌘I).
Agent Team and 5 REALM Classes in Lisbeth Mage theme
Agent Team & 5 Operating Classes — Lisbeth (Mage)
Switch analytical lenses anytime (@Lisbeth, @Salander, @Wasp), tune answer size, clone/create custom agents, or set per-agent models and voices.
Modules Hub and Role Starter Packs in Wasp Hunter Emerald theme
Modules Hub & Starter Packs — Wasp (Hunter · Shadow Hunt)
Apply 1-click starter packs (Everyday & Study, Solo Creator, Builder & Dev) or toggle individual studios on and off cleanly.
Programming Studio API Lab and Destination-Bound Secrets in Salander Warrior Crimson theme
API Lab & Destination-Bound Secrets — Salander (Warrior · Crimson Forge)
Test APIs with saved servers, test users, and {{secret:<slug>}} placeholders locked to one exact origin — real tokens never leak into curl exports, logs, or other domains.
Requirements Studio with Gherkin acceptance criteria in Erika Cleric Solar Gold theme
Requirements Studio & Spec Check — Erika (Cleric · Solar Aegis)
Author REQ-* specs with MoSCoW priorities, Hunter ambiguity scoring, and Gherkin Given/When/Then criteria — then verify AI code edits independently against them.

How REALM Protects Your Privacy & Data

flowchart LR
    Vault["Your Local Files & Vault"] --> Lock{"Strict Local-Only Lock (Default ON)"}
    Lock -->|Offline Default| LocalAI["Built-In Private AI / Ollama / Local OCR & Whisper"]
    Lock -->|Explicitly Unlocked| Cloud["Cloud LLMs / Built-In Browser / HTTP MCP"]
    Vault --> Tiers["REALM Autonomy Tiers"]
    Tiers --> T1["Tier 1: Read & Inspect (Instant)"]
    Tiers --> T2["Tier 2: Local Edits (Pre-Tool 0600 Checkpoint + Rewind)"]
    Tiers --> T3["Tier 3: Shell / External Actions (Human Approval + Idempotency)"]
    Cloud --> Secrets["Bound Secrets ({{secret:slug}}) — Exact Origin Check + Redaction"]
    T2 --> Verify["Auto-Verify + Opt-In --network=none Sandbox + Independent Spec Check"]
Loading
  • On your device by default: Your vault, chats, Person Card memories, settings, and 0600 credentials stay strictly local. Strict Local-Only Lock blocks external AI APIs, cloud embeddings, live web fetches, remote HTTP MCP servers, and Telegram polling (403) until you explicitly unlock it.
  • Destination-Bound Secrets ({{secret:<slug>}}): Store API tokens locked to one exact https:// (or localhost loopback) origin in Programming Studio → API Lab → Bound Secrets. REALM injects the secret only at egress if the target matches — otherwise it fails closed and logs the denial, and scrubs any echoed secret from responses and errors.
  • Crash-Safe Rewind & Idempotency: Before Copilot Agent Mode modifies a file, REALM writes an atomic pre-tool undo snapshot (↺ Rewind). Approved external MCP and workflow actions carry durable idempotency keys so retries never accidentally run twice.
  • Opt-In No-Internet Sandbox & Independent Spec Check: When Docker (or sbx) is running, turn on Sandbox (No Egress) in Copilot Options to run verification presets inside a read-only --network=none container (failing closed if unavailable). When your workspace has Requirements Studio specs, turn on Independent Spec Check to verify edits in an isolated read-only pass that never saw the coding agent's reasoning.
  • When data leaves: Unlocking external connections lets your chosen cloud provider receive the active conversation and relevant excerpts, or lets Built-In Browser / remote MCP tools contact permitted destinations. Connected tools have per-tool allow, ask, or block permissions — keep unfamiliar tools blocked.

13 Opt-In Studios (Modules Hub)

Fresh workspaces start lean with core Chat, Files, Search, Knowledge Brain, Agents, and Copilot. Enable only what you need:

Category Studios Included
Everyday & Study Work OS & Project Management (Kanban Board, Local + read-only .ics Calendar, Focus & Goals, Time/Impact Ledger) · Study & Presentations (Active Recall Flashcards, Socratic Quiz, Anki .tsv, .pptx/.pdf Slide Decks, Offline Solo/Duo Audio Briefings) · Messaging Channels Bridge (Offline Apple Shortcuts webhook + allowlisted Telegram capture parser)
Builder & Developer Programming Studio (Git status/diff + Tier 3 commit, shell=False test/lint runner, Postman-style API Lab + Bound Secrets, DECISIONS/ ADRs, Spec-to-Code, Autonomy Tiers & Lifecycle Hooks) · Requirements Studio (REQ-* catalog, MoSCoW, Gherkin Given/When/Then, Hunter ambiguity linter, Traceability Matrix & Baselines) · AI Engineering & Creator Forge (SKILL.md skills, outbound MCP Client Hub with Creator Presets, A2A Agent Cards & .realm-pack.zip Blueprint Packs) · Workflows & Automation (Visual node-graph multi-agent pipelines & calendar schedules) · Integrated Terminal (Built-in PTY/ANSI shell Ctrl+`)
Research & Creator Built-In Browser & Autonomous Web Pilot (Isolated Chromium profile, native AI browser tool calling, Tier 3 step-in approval before clicks/typing, 1-click Clip to Codex) · SEO, AEO & GEO Growth Studio (Offline & live-DOM audit scoring, Schema JSON-LD, llms.txt & robots.txt) · Social, Media & Reels Studio (Multi-platform Content Atomizer, Hunter Hook Linter, 4:5 PDF Carousels, PNG graphics, .srt captions & optional ffmpeg 9:16 Quick Reels)
Private Personal (Strict Local-Only) Health & Vitality (Weight, hydration, posture, sleep, workouts, symptoms, appointments, opt-in cycle log, Apple Health XML/ZIP/CSV local import) · Solo Finance, Receipts & Invoices (Local 0600 bookkeeping helper, OCR receipt parser, subscription burn rate, branded PDF invoices & tax CSV)

Plus: 100% Offline Whisper STT + Apple Vision/Tesseract OCR, Person Card & Living Memory (with hard cloud guards on Health/Personal facets), Desktop Menu Bar / System Tray, Opt-In HTTPS Mobile Companion PWA (/companion), English / Deutsch / Español, WCAG 2.1 AA Accessibility (Hyperlegible/Dyslexia fonts, S–XL scaling, Eco Mode), and 10 AI Providers (Built-in llama-server, Ollama, Custom OpenAI-Compatible Gateways, OpenAI, Gemini, Anthropic, Kimi, DeepSeek, xAI, Mistral).


Quickstart

Run From Source (macOS, Windows & Linux)

Install uv, clone the repository, and launch directly:

  • macOS: Double-click start.command (or run ./start.command)
  • Windows: Double-click start.bat (or run start.bat)
  • Linux: Run ./start.sh

All launchers start uv run python main.py --desktop on http://127.0.0.1:8000. To launch the native desktop window from source, run uv run --group desktop python desktop_app.py.

CLI, Python Package & MCP Server

# Local web server (open http://127.0.0.1:8000)
uv run python main.py

# Or via the installed console script (pip / uv tool install)
realm-engine --port 8080 --data-dir /path/to/my-vaults

# One-shot grounded CLI query (optional --json, --area, --model)
realm-engine ask "Summarize our deployment checklist"

# Start stdio Model Context Protocol (MCP) server for Claude Desktop / Cursor / VS Code
realm-engine mcp

# Pre-build index.json embeddings offline (ollama | openai | mistral | gemini)
uv run python main.py --build-index --embed-provider ollama

# Print application version
realm-engine --version

Docker / Docker Compose

docker compose up

Open http://127.0.0.1:8000 (override host port with REALM_PORT). Runs as an unprivileged user (uid 1000, HOME=/data) and persists vaults and settings in the realm-data volume.


Documentation

Guide What It Covers
User Guide Workspaces, 45+ doc/code/OCR/audio formats, Modules Hub & all 13 studios, API Lab & Bound Secrets, Copilot Agent Mode (Workspace File Tools, Pre-Tool Rewind, Sandbox, Independent Spec Check), Living Memory, Shortcuts (⌘K/⌘P/⌘J/⌘I), and Backups.
Agents, REALM Classes & Answer Formats Authentic REALM Framework v2.0 5 Operating Classes, Character Files, Platform Autonomy Tiers 1–3 & Evidence-Backed Patches, @mention summons, per-agent model pinning & RAM safety, and 13 structured Answer Formats.
Integrations, Protocols & Public API SKILL.md Skills, outbound MCP Client Hub + Bound Secrets, A2A Agent Cards & party delegation, .realm-pack.zip Blueprint Packs, Built-In Browser provider table, Mobile Companion PWA, /v1 API, realm-engine ask, realm-engine mcp, and REALM_MODE=public.
Privacy, Security & Compliance Threat model, Strict Local-Only Lock, optional IT policy.json, audit.jsonl export, localhost CSRF/SSRF/CSP perimeter, Autonomy Tiers, isolated browser security, secret exclusions, GDPR/DSGVO redaction, and EU AI Act audit reports.
Building Custom Modules 6-step developer guide for authoring private or open-source vertical-slice REALM modules and deploying read-only policy.json organization policies.
Packaging & Releasing Building signed/notarized macOS .dmg, Windows .exe/.zip, Linux launchers, Python wheels, and Docker images.
Security Policy Trust boundaries, supported versions, security gates, and private vulnerability reporting.
Contributing Architectural rules, local verification gate, and pull request workflow.
Changelog Release history and notable changes.

Architecture & Development

Every run enforces strict architectural boundaries in core/test_architecture.py:

  • Strict Vertical Slices: Feature slices live under features/ with zero cross-slice imports (features/ui/app.py is the composition root).
  • Contract-First: Shared Pydantic v2 models live in core/ with ConfigDict(strict=True).
  • Single Provider & Wire Boundary: Provider endpoints and model capability rules live in core/provider_caps.py; wire encoding and SSE/tool-call parsing live in 4 polymorphic adapters (core/provider_adapters.py + core/provider_parsers.py).
  • Line Ceilings: Backend Python files stay <= 150 lines; frontend template/script modules in features/ui/ and static .js/.css assets stay <= 350 lines.

Verification Gate

uv run ruff check . && uv run pyright && uv run pyright --pythonplatform Windows && uv run pytest

License, Attribution & Disclaimers

  • Code License: MIT License.
  • Framework Attribution: Workflow concepts, operating class roles, Autonomy Tiers, and DECISIONS/ conventions are inspired by REALM Framework v2.0 (CC BY-SA 4.0). See NOTICE for full attribution details.
  • Disclaimers: Health & Vitality is a local personal wellness log only (not medical advice or a regulated medical device). Solo Finance Studio is a local personal bookkeeping helper only (not certified tax, legal, or accounting software). Privacy & GDPR/EU AI Act audit exports are technical engineering aids, not formal legal certification.

About

Local-first AI knowledge engine — hybrid RAG, interactive knowledge graph, PII redaction, and multi-turn chat over Markdown, PDF, and DOCX vaults.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages