Retrieval-Augmented Generative Interactive eXecution Agent
Author: Olivier Vitrac, PhD, HDR | [email protected] | Adservio Version: 0.67.0 Updated: 2026-02-16
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.
βββββββββββββββββββββββ
β 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 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Document | Description | Audience |
|---|---|---|
| ARCHITECTURE.md | Overall system architecture | Everyone |
| MCP.md | Model Context Protocol explained | Developers, Architects |
| CLI_GUIDE.md | Command-line usage | Users |
| 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 |
| 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 |
| 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 |
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
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
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)
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
- API_REFERENCE.md β Complete API docs
- RAGIX_TOOLS_INVENTORY.md β Component reference
- AST_GUIDE.md β AST analysis tools
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 β
βββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
"I want to audit a codebase"
- ARCHITECTURE.md β Overview
- KOAS.md β Kernel system
- KOAS_MCP_REFERENCE.md β Audit tools
- CLI_GUIDE.md β Command usage
"I want to understand MCP integration"
- MCP.md β Protocol concepts
- KOAS_MCP_REFERENCE.md β Tool reference
- API_REFERENCE.md β API details
"I want to build custom reasoning"
- REASONING.md β Engine concepts
ragix_core/reasoning_slim/README.mdβ ContractiveReasonerragix_core/reasoning_v30/__init__.pyβ Reasoning v30- MCP.md β Tool integration
"I want to perform security scans"
- KOAS.md β Overview
- MCP.md Β§ Security Tools β Tool reference
- KOAS_MCP_REFERENCE.md β Detailed parameters
"I want to summarize large documents"
- KOAS_DOCS.md β 17-kernel pipeline
- KOAS.md β Three-stage architecture
- KOAS_MCP_REFERENCE.md β MCP tool interface
"I want to generate slide decks from documents"
- KOAS_PRESENTER.md β 8-kernel pipeline, presenterctl CLI
- KOAS_DOCS.md β Upstream document analysis (required input)
- KOAS.md β Kernel orchestration
"I want to review and edit Markdown documents"
- KOAS_REVIEW.md β 13-kernel pipeline, selective revert
- KOAS.md β KOAS philosophy
- KOAS_MCP_REFERENCE.md β MCP tool interface
"I want to understand activity logging and compliance"
- KOAS_ACTIVITY.md β Event schema, actor model, hash chain
- SOVEREIGN_LLM_OPERATIONS.md β Sovereignty architecture
- KOAS.md β Audit trail mechanisms
"I want to use episodic memory with MCP"
- KOAS_MEMORY_ARCHITECTURE.md β Core design, tier model
- KOAS_MEMORY_MCP.md β 17 MCP tools, workspace router
- KOAS.md β Kernel orchestration patterns
"I want to summarize documents with Graph-RAG"
- KOAS_SUMMARY.md β 12-kernel pipeline, secrecy tiers
- KOAS_DOCS.md β Upstream document analysis
- KOAS.md β Three-stage architecture
"I need to ensure data sovereignty/compliance"
- SOVEREIGN_LLM_OPERATIONS.md β Complete guide
- KOAS_ACTIVITY.md β Sovereignty attestation per event
- ARCHITECTURE.md β System topology
- KOAS.md β Audit trail mechanisms
| 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 |
| 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 |
Documentation follows these principles:
- Academic rigor β Cite sources, include mathematical foundations
- Practical examples β Show real usage, not just theory
- Clear structure β Use consistent headings and formatting
- Cross-references β Link related documents
- Version tracking β Include version and date
Author: Olivier Vitrac, PhD, HDR | [email protected] | Adservio
| 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