Project

protege

0.0
The project is in a healthy, maintained state
Protege is an email-native AI agent toolkit focused on simplicity, interoperability, and self-sovereignty.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 13.0
>= 2.1
~> 3.0

Runtime

~> 0.3
~> 0.2
~> 2.0
~> 1.11
~> 2.8
~> 1.16
~> 9.3
>= 7.2
 Project Readme

Protege 🥚

Give your Rails app a colleague. Protege is a Rails engine for building an AI teammate that works inside your app — reachable by email, acting through the models and jobs you already have, on its own schedule. You build the colleague and point it at your preferred LLM.

CI Docs License: MIT Ruby Rails

It's a framework, not an LLM wrapper: the model is one swappable extension, and everything around it — an inbox, a memory of every conversation, tools over your own data, a schedule, guardrails, and an audit trail — is what Protege gives you. Email is the channel (Action Mailbox in, SMTP out); your Rails app is the workspace, reached through the tools you write.

📚 Read the docs → — new here? Start with Build The Scoop, the end-to-end tutorial, or What is Protege? for the mental model.

How it works

Inbound email → Action Mailbox → the harness assembles context through the persona's resolver chain → the model responds, optionally calling tools that reach into your app → the agent replies by email. The same path runs scheduled responsibilities, so an agent can also initiate work on its own. See the LOGI architecture.

Repository layout

This is a monorepo. Run commands from the directory you're changing.

Path What it is
engine/ The protege gem — the Rails engine. Plain-Ruby core (lib/protege/), ActiveRecord models, mailboxes, and migrations. The source of truth.
workspace/ A dev host Rails app that consumes the engine via path: "../engine".
site/ User-facing documentation (VitePress), published to docs.protege.bot.

Development

cd engine    && bundle install && bundle exec rake test   # engine gem (Minitest)
cd workspace && bin/dev                                    # run the host app
cd site      && npm install && npm run docs:dev            # docs

License

MIT © Sebastian Scholl