Agentic Archivist

Thoth

Thoth is an agentic assistant inspired by the Egyptian moon god of knowledge. It gently watches community chats, captures messages and edits, and builds a searchable archive for research, RAG, and long-term memory.

Set It Up
Headful Playwright · SQLite · XMTP
Thoth ibis and moon artwork

What we are building

Slow, respectful sync

Thoth scrolls gently through active conversations, prioritizing recent messages before backfilling history. It stays headful so you can see exactly what it is doing.

Universal chat memory

Messages, edits, reactions, and threading are normalized into a single SQLite schema that mirrors Postgres, ready for later vector search workflows.

Human-in-the-loop login

Thoth never stores secrets. If a platform requires authentication, it navigates to the login screen and waits for you to sign in.

Setup in three steps

1
Clone the repo
git clone https://github.com/pierce403/thoth
cd thoth
              
2
Run the sync loop
./sync.sh --config config/thoth.toml
              

The first run bootstraps dependencies, opens three browser tabs (Discord, Slack, Telegram), and waits for you to log in.

3
Fine-tune sources

If you only want Discord, disable Slack/Telegram in config/thoth.toml. You can also add explicit Slack/Telegram channels there when you are ready.

Tip: The sync process keeps a visible browser open and will restart itself if the Python code or config changes, so you can keep editing while it runs.

Why Thoth?

Memory for communities

The flow of chat moves fast. Thoth captures the living record of a community without requiring brittle API integrations.

Designed for RAG

The schema is prepared for future embeddings and pgvector workflows, so you can layer retrieval, summarization, and analytics on top.

Moonlit craftsmanship

Inspired by the ibis-headed scribe of the moon, Thoth focuses on clarity, patience, and observability while working alongside you.