Open-source, self-hosted AI employees that ask before they act. 46 business roles, approval-gated autonomy, untrusted-content safeguards, sandboxed execution, Graph RAG and token budgets. Expanding across memory, voice, security and physical AI. WhatsApp, Telegram, Discord and 20 LLM providers. MIT licensed.
Open-source AI employees that ask before they act.
Core engine
RAG and retrieval (Python, Java, npm)
Agents and tools (Python)
Speech (Python)
Memory and security (Python)
Tracing and cost (Python)
Physical AI (Python, simulation only)
DevOps libraries (Python; Java jars for terraform, ansible and observability)
ragleap-agents 0.7.0 and 0.8.0: skills (Agent Skills format) and fixed-plan mode (design proposal)
https://github.com/ragleap/ragleap-core/issues/1592
Labels: None
ragleap-security 0.4.0: canary tripwire tokens to detect and trace leaks (design proposal)
https://github.com/ragleap/ragleap-core/issues/1569
Labels: None
ragleap-integrations: the address check lets NAT64-wrapped and IPv4-compatible addresses through (fix proposed, 0.5.1)
https://github.com/ragleap/ragleap-core/issues/1545
Labels: None
proposal: ragleap-security 0.3.0 net module (SSRF-safe outbound HTTP, per tenant, stdlib only)
https://github.com/ragleap/ragleap-core/issues/1506
Labels: None
proposal: ragleap-optimizer ExactCache per-tenant budgets (fairness and size caps)
https://github.com/ragleap/ragleap-core/issues/1423
Labels: None
proposal: ragleap-agents tenant scope for runs, approvals and audit
https://github.com/ragleap/ragleap-core/issues/1395
Labels: None
[physical] A command can reach the adapter when stop() lands during the dry run
https://github.com/ragleap/ragleap-core/issues/1339
Labels: physical
[physical] Intermittent WinError 10053 on Windows when a refused request has an oversized body
https://github.com/ragleap/ragleap-core/issues/1336
Labels: physical
ragleap-memory 0.3.1 design: encrypted export and import
https://github.com/ragleap/ragleap-core/issues/1294
Labels: None
[physical] Native-speaker review of the Chinese (Simplified) README draft
https://github.com/ragleap/ragleap-core/issues/1281
Labels: physical
Thanks for your interest in contributing! Here's where things actually stand and how to get started.
RagLeap Core is a working, tested self-hosted RAG engine with document ingestion, retrieval, generation, and WhatsApp/Telegram/Discord/Voice channel adapters — all verified end-to-end. Every change goes through CI (compile check + a real Docker build + smoke test), so contributions are welcome now, not "someday."
Check the good first issue label for scoped, approachable tasks, or help wanted for things that need investigation or specific API access to test.
git checkout -b feat/your-change (or fix/, docs/)docker compose up --build -d, then verify with a real
request (curl http://localhost:8000/health, or whatever your change
affects)Small, focused PRs are much easier to review than large ones — if your change touches multiple unrelated things, consider splitting it up.
feat: ..., fix: ..., docs: ... prefixes are
used throughout the existing history — following that pattern helpschannels/*/router.py for examples)Open an Issue with:
LLM_PROVIDER if relevant)If you're adding support for a new LLM provider or messaging channel, look at the existing pattern first:
core/generation.py's PROVIDER_BASE_URLS dict and
GenerationService classchannels/whatsapp/, channels/telegram/, or
channels/discord/ — each follows the same shape (a router.py with
handle_incoming_message() calling core.chat.ask())Trust statement. Until process isolation is available, every connector that runs inside the RagLeap process is trusted code. It can read the same database and secrets as the application. Such connectors are accepted only as reviewed code merged into the repository. Capability declarations and the central gate protect against mistakes and against actions the connector is not meant to take; they do not contain a malicious in-process connector.
What this means for a pull request:
python scripts/ragleap_conformance.py your-declaration.json --source your_connector.py --strict.core/integrations must not use the network, the environment or a subprocess directly. python scripts/ragleap_boundary_scan.py checks this; the older uses are in a baseline list that can only shrink.core/autonomy.py.Be respectful and constructive. See CODE_OF_CONDUCT.md.
There are two ways to add an employee. Pick the one that fits.
Edit core/employees/defaults.py:
ROLE_CHOICES.DEFAULT_ROLES with role, display_name, channels,
skill_tags and a real personality (at least a couple of sentences).ROLE_SKILL_TAGS with the tags used to find its memory.SENSITIVE_DOMAIN_ROLES and add a matching compliance
seed to DEFAULT_COMPLIANCE_MEMORY_SEEDS (one seed per sensitive role).Then run:
python3 -m pytest tests/test_role_definitions.py
These tests fail with a clear message if a list is out of sync, if a field is
missing, or if a role carries a sensitive-domain tag (legal, compliance,
healthcare, medical, clinical, immigration, regulatory) without being listed in
SENSITIVE_DOMAIN_ROLES. If you have reviewed a role and it is genuinely not
sensitive, list it in REVIEWED_NOT_SENSITIVE in that test file with a reason.
curl -X PATCH http://localhost:8000/employees/pizza_bot \
-H "Content-Type: application/json" \
-d '{"display_name": "Pizza Bot", "channels": ["whatsapp"],
"skill_tags": ["menu", "orders"], "personality": "You are the ordering assistant for..."}'
The response includes sensitive_domain. A runtime role whose name, display
name or skill tags contain a marker word (legal, lawyer, medical, health, tax,
immigration, insurance, compliance and similar) is treated as a sensitive domain
automatically: the Autonomous Loop is forced to semi (owner approval) and the
answer gets the reasoning and grounding checks. Owners can override in .env:
SENSITIVE_ROLES_EXTRA forces a role sensitive, and SENSITIVE_ROLES_REVIEWED_SAFE