Skip to content

Latest commit

Β 

History

History
364 lines (288 loc) Β· 19.1 KB

File metadata and controls

364 lines (288 loc) Β· 19.1 KB

RAGIX Documentation Index

Retrieval-Augmented Generative Interactive eXecution Agent

Author: Olivier Vitrac, PhD, HDR | [email protected] | Adservio Version: 0.67.0 Updated: 2026-02-16


Overview

RAGIX is a sovereign AI development assistant that combines local LLM reasoning with deterministic computation kernels. This documentation covers all aspects of the system, from high-level architecture to specific tool references.


Documentation Map

                           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                           β”‚    INDEX.md         β”‚
                           β”‚   (You are here)    β”‚
                           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                      β”‚
            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
            β”‚                         β”‚                         β”‚
            β–Ό                         β–Ό                         β–Ό
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ Architecture  β”‚         β”‚   Protocols   β”‚         β”‚   Reasoning   β”‚
    β”‚               β”‚         β”‚               β”‚         β”‚               β”‚
    β”‚ ARCHITECTURE  β”‚         β”‚     MCP       β”‚         β”‚  REASONING    β”‚
    β”‚ KOAS ─────────┼─┐       β”‚               β”‚         β”‚               β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚       β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
            β”‚         β”‚               β”‚                         β”‚
            β–Ό         β”‚               β–Ό                         β–Ό
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚   Guides      β”‚ β”‚       β”‚  References   β”‚         β”‚   Advanced    β”‚
    β”‚               β”‚ β”‚       β”‚               β”‚         β”‚               β”‚
    β”‚ CLI_GUIDE     β”‚ β”‚       β”‚ API_REFERENCE β”‚         β”‚ SOVEREIGN_LLM β”‚
    β”‚ AST_GUIDE     β”‚ β”‚       β”‚ TOOLS_INV     β”‚         β”‚ WASP_GUIDE    β”‚
    β”‚               β”‚ β”‚       β”‚ KOAS_MCP_REF  β”‚         β”‚ PLAYBOOK      β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚              KOAS Kernel Families                   β”‚
    β”‚                                                    β”‚
    β”‚  KOAS_DOCS       (17 kernels β€” document analysis)   β”‚
    β”‚  KOAS_PRESENTER  (8 kernels β€” slide generation)    β”‚
    β”‚  KOAS_REVIEW     (13 kernels β€” Markdown review)    β”‚
    β”‚  KOAS_SUMMARY    (12 kernels β€” summarization)      β”‚
    β”‚  KOAS_ACTIVITY   (centralized activity logging)    β”‚
    β”‚  KOAS_MEMORY_MCP (17 tools β€” episodic memory)      β”‚
    β”‚  KOAS_MEMORY_ARCHITECTURE (core memory design)     β”‚
    β”‚  + audit (27) and security (10) in KOAS.md         β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Quick Navigation

Getting Started

Document Description Audience
ARCHITECTURE.md Overall system architecture Everyone
MCP.md Model Context Protocol explained Developers, Architects
CLI_GUIDE.md Command-line usage Users

Core Concepts

Document Description Audience
REASONING.md Reasoning engines deep dive Researchers, Developers
KOAS.md Kernel-Orchestrated Audit System Auditors, Developers
AST_GUIDE.md Abstract Syntax Tree tools Developers

Reference

Document Description Audience
API_REFERENCE.md Complete API documentation Developers
KOAS_MCP_REFERENCE.md KOAS MCP tool reference Developers
RAGIX_TOOLS_INVENTORY.md Tool component reference Developers

Advanced Topics

Document Description Audience
SOVEREIGN_LLM_OPERATIONS.md Confidential AI operations Auditors, Compliance
PLAYBOOK_GUIDE.md Workflow playbooks Power Users
WASP_GUIDE.md WASP integration Specialists

Documentation by Topic

Model Context Protocol (MCP)

Start here to understand RAGIX's tool exposure mechanism.

  • MCP.md β€” Comprehensive MCP guide

    • What MCP really is (protocol, not system)
    • Common misconceptions addressed
    • 55 tools reference
    • Deployment topologies
    • Hybrid backends (stochastic/deterministic)
    • Collective intelligence patterns
    • FAQ
  • KOAS_MCP_REFERENCE.md β€” Detailed KOAS tools

Reasoning Systems

Understand how RAGIX transforms local LLMs into deep reasoners.

  • REASONING.md β€” Reasoning engines guide

    • ContractiveReasoner (tree-based decomposition)
    • Reasoning v30 (graph-based state machine)
    • Mathematical foundations
    • Integration with MCP tools
    • Multi-agent patterns
    • Configuration reference
  • Source Documentation:

    • ragix_core/reasoning_slim/README.md β€” ContractiveReasoner (1200+ lines)
    • ragix_core/reasoning_v30/__init__.py β€” Reasoning v30 API

Kernel System (KOAS)

Learn about deterministic computation kernels β€” 87 kernels across 6 families.

  • KOAS.md β€” KOAS philosophy and architecture

    • Three-stage pipeline, 6 kernel families
    • Kernel development patterns
    • Deterministic guarantee: kernels compute, LLMs reason
  • KOAS_DOCS.md β€” Document summarization (17 kernels)

    • Hierarchical analysis, dual clustering (Pyramidal + Leiden)
    • Worker + Tutor LLM pattern
  • KOAS_SUMMARY.md β€” Multi-document summarization (12 kernels)

    • Graph-RAG: entity extraction β†’ graph store β†’ community detection
    • Secrecy tiers (S0/S2/S3) for redaction before LLM exposure
  • KOAS_PRESENTER.md β€” Slide deck generation (8 kernels)

    • MARP output, 3 compression modes (full/compressed/executive)
    • Deterministic default, optional LLM normalization
  • KOAS_REVIEW.md β€” Traceable Markdown review (13 kernels)

    • Chunk-level edits, selective revert, preflight pipeline
    • Append-only ledger with RVW-NNNN change IDs
  • KOAS_ACTIVITY.md β€” Centralized activity logging

    • Event schema (koas.event/1.0), actor model, hash chain
    • Sovereignty attestation per event
  • KOAS_MEMORY_MCP.md β€” Episodic memory MCP tools (17 tools)

    • Policy-driven storage, FTS5+BM25, Q*-search, Memory Palace
    • Workspace router, metrics, rate limiting
  • KOAS_MEMORY_ARCHITECTURE.md β€” Memory architecture

    • 12 core modules, STMβ†’MTMβ†’LTM promotion, consolidation
    • SHA-256 corpus dedup, spatial metaphor (Memory Palace)
  • Source Documentation:

    • ragix_kernels/README.md β€” Kernel developer reference (v1.4.0, all 87 kernels)

Sovereignty and Compliance

Understanding data sovereignty and confidential operations.

  • SOVEREIGN_LLM_OPERATIONS.md β€” Confidential AI guide
    • Gray environment deployment
    • Policy enforcement mechanisms
    • Audit trail and attestation
    • Air-gapped operation
    • Sovereignty verification

Tools and APIs


Document Relationships

Conceptual Flow

User Goal
    β”‚
    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      ARCHITECTURE                           β”‚
β”‚            (How RAGIX is structured)                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚                                                         β”‚
    β–Ό                                                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        MCP          β”‚                         β”‚     REASONING       β”‚
β”‚   (Tool Protocol)   β”‚                         β”‚  (Thinking Engines) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚                                                         β”‚
    β”‚    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚    β”‚
    β–Ό    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                         KOAS                                β”‚
β”‚          (Deterministic Kernel Execution)                   β”‚
β”‚    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚    β”‚ audit  β”‚  docs  β”‚presenter β”‚reviewerβ”‚summary β”‚securityβ”‚  β”‚
β”‚    β”‚  (27)  β”‚  (17)  β”‚   (8)    β”‚  (13)  β”‚  (12)  β”‚  (10)  β”‚  β”‚
β”‚    β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚                                                         β”‚
    β–Ό                                                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      Tool Execution         β”‚         β”‚      Activity Logging       β”‚
β”‚  Security β”‚ Audits β”‚ Docs   β”‚         β”‚  Events β”‚ Sovereignty β”‚ ACL β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Reading Order by Goal

"I want to audit a codebase"

  1. ARCHITECTURE.md β†’ Overview
  2. KOAS.md β†’ Kernel system
  3. KOAS_MCP_REFERENCE.md β†’ Audit tools
  4. CLI_GUIDE.md β†’ Command usage

"I want to understand MCP integration"

  1. MCP.md β†’ Protocol concepts
  2. KOAS_MCP_REFERENCE.md β†’ Tool reference
  3. API_REFERENCE.md β†’ API details

"I want to build custom reasoning"

  1. REASONING.md β†’ Engine concepts
  2. ragix_core/reasoning_slim/README.md β†’ ContractiveReasoner
  3. ragix_core/reasoning_v30/__init__.py β†’ Reasoning v30
  4. MCP.md β†’ Tool integration

"I want to perform security scans"

  1. KOAS.md β†’ Overview
  2. MCP.md Β§ Security Tools β†’ Tool reference
  3. KOAS_MCP_REFERENCE.md β†’ Detailed parameters

"I want to summarize large documents"

  1. KOAS_DOCS.md β†’ 17-kernel pipeline
  2. KOAS.md β†’ Three-stage architecture
  3. KOAS_MCP_REFERENCE.md β†’ MCP tool interface

"I want to generate slide decks from documents"

  1. KOAS_PRESENTER.md β†’ 8-kernel pipeline, presenterctl CLI
  2. KOAS_DOCS.md β†’ Upstream document analysis (required input)
  3. KOAS.md β†’ Kernel orchestration

"I want to review and edit Markdown documents"

  1. KOAS_REVIEW.md β†’ 13-kernel pipeline, selective revert
  2. KOAS.md β†’ KOAS philosophy
  3. KOAS_MCP_REFERENCE.md β†’ MCP tool interface

"I want to understand activity logging and compliance"

  1. KOAS_ACTIVITY.md β†’ Event schema, actor model, hash chain
  2. SOVEREIGN_LLM_OPERATIONS.md β†’ Sovereignty architecture
  3. KOAS.md β†’ Audit trail mechanisms

"I want to use episodic memory with MCP"

  1. KOAS_MEMORY_ARCHITECTURE.md β†’ Core design, tier model
  2. KOAS_MEMORY_MCP.md β†’ 17 MCP tools, workspace router
  3. KOAS.md β†’ Kernel orchestration patterns

"I want to summarize documents with Graph-RAG"

  1. KOAS_SUMMARY.md β†’ 12-kernel pipeline, secrecy tiers
  2. KOAS_DOCS.md β†’ Upstream document analysis
  3. KOAS.md β†’ Three-stage architecture

"I need to ensure data sovereignty/compliance"

  1. SOVEREIGN_LLM_OPERATIONS.md β†’ Complete guide
  2. KOAS_ACTIVITY.md β†’ Sovereignty attestation per event
  3. ARCHITECTURE.md β†’ System topology
  4. KOAS.md β†’ Audit trail mechanisms

Key Concepts Glossary

Term Definition Documentation
MCP Model Context Protocol β€” standardized tool communication MCP.md
KOAS Kernel-Orchestrated Audit System β€” deterministic computation KOAS.md
Kernel Deterministic computation unit (no LLM inside) KOAS.md
Kernel Family Group of kernels sharing a scope (audit, docs, presenter, reviewer, security) KOAS.md
Three-Stage Pipeline Data collection β†’ Analysis β†’ Reporting architecture KOAS.md
Worker + Tutor Dual-LLM pattern: small model generates, larger model refines KOAS_DOCS.md
Broker Gateway Core-Shell access layer mediating external orchestrator requests KOAS_ACTIVITY.md
Activity Logging Centralized append-only event stream (koas.event/1.0) KOAS_ACTIVITY.md
Hash Chain SHA256 chain across kernel executions for tamper evidence KOAS_ACTIVITY.md
Merkle Root Cryptographic root hash for pyramidal provenance KOAS_DOCS.md
Episodic Memory Policy-driven storage with STM→MTM→LTM tier promotion KOAS_MEMORY_ARCHITECTURE.md
Memory Palace Spatial metaphor for memory organization (rooms, loci, tours) KOAS_MEMORY_MCP.md
Q*-Search Iterative deepening search with relevance feedback KOAS_MEMORY_MCP.md
Graph-RAG Entity extraction β†’ graph store β†’ community detection β†’ recall KOAS_SUMMARY.md
Secrecy Tier S0/S2/S3 redaction levels before LLM exposure KOAS_SUMMARY.md
ContractiveReasoner Tree-based reasoning with entropy decomposition REASONING.md
Reasoning v30 Graph-based state machine reasoning REASONING.md
Unix-RAG Unix tools for retrieval, LLM for generation ARCHITECTURE.md
Workspace Isolated .KOAS/ directory for pipeline results and audit trail KOAS.md
Entropy Uncertainty measure for decomposition decisions REASONING.md
Peer Review External LLM validation of reasoning REASONING.md
Sovereignty Data processing within controlled perimeter SOVEREIGN_LLM_OPERATIONS.md
Gray Environment Networked but untrusted context SOVEREIGN_LLM_OPERATIONS.md
Attestation Cryptographic proof of sovereignty (sovereignty.local_only: true) SOVEREIGN_LLM_OPERATIONS.md
Output Sanitizer 4-level isolation (Internal/External/Orchestrator/Compliance) SOVEREIGN_LLM_OPERATIONS.md

External Resources

Resource URL Purpose
RAGIX Repository https://github.com/ovitrac/RAGIX Source code
Ollama https://ollama.ai/ Local LLM runtime
MCP Specification https://modelcontextprotocol.io/ Protocol standard
FastMCP Anthropic SDK MCP server framework

Contributing to Documentation

Documentation follows these principles:

  1. Academic rigor β€” Cite sources, include mathematical foundations
  2. Practical examples β€” Show real usage, not just theory
  3. Clear structure β€” Use consistent headings and formatting
  4. Cross-references β€” Link related documents
  5. Version tracking β€” Include version and date

Author: Olivier Vitrac, PhD, HDR | [email protected] | Adservio


Version History

Version Date Changes
0.67.0 2026-02-16 Added KOAS_SUMMARY, KOAS_MEMORY_MCP, KOAS_MEMORY_ARCHITECTURE; 6-family kernel map (87 kernels); Memory/Summary reading paths and glossary entries
0.66.0 2026-02-13 Added KOAS_PRESENTER, KOAS_REVIEW, KOAS_ACTIVITY; 5-family kernel map; new glossary entries and reading paths
0.64.2 2026-01-29 Added SOVEREIGN_LLM_OPERATIONS.md
0.62.0 2025-12-20 Added MCP.md, REASONING.md, INDEX.md
0.61.0 2025-12-19 KOAS security kernels
0.60.0 2025-12-18 Initial documentation structure

Document Version: 3.0.0 Last Updated: 2026-02-16 Author: Olivier Vitrac, PhD, HDR | [email protected] | Adservio