Priestess Project
Live in Discord since Nov 8, 2026Code private
A Discord AI agent that follows conversations and posts context-matched reaction images, GIFs, and short videos.
1,450+ live replies as of Dec 6, 2026
Live replies in Discord since Nov 8, 2026.
75+ offline experiments Sep–Nov 2026
Python chat-replay harness with blind LLM-as-a-judge scoring calibrated against manual sample reviews.
~26% → ~9% offline bad picks 82 held-out picks (Sep 25, 2026)
Measured after vision models inspected frames and rewrote 116 of 165 searchable media descriptions.
How a reply works
- 01
Message
A Discord message arrives (direct @mention, reply, or opted-in channel activity).
Synthetic chat example Player in channel: "Third wipe on the new event boss and I forgot to bring a medic again."
- 02
Safety and PII guard
Personal data is redacted before model calls and parallel safety checks screen the message.
Guard result No personal data found. Prompt injection, sensitive-topic, and user-distress checks all pass.
- 03
Hidden reaction and media search
Generates a private in-character reaction (never shown) and retrieves candidate media from structured metadata while filtering recent repeats.
Private search step The private reaction is dry sympathy. The search over media descriptions returns matching cards, minus any posted recently in this channel.
- 04
Selection and vision fit check
Picks the best candidate reaction and inspects actual image or video frames to verify visual fit (with a tie-breaker judge when dual pickers disagree).
Vision verification The frame check passes: the expression on the picked card fits the joke, so it is cleared to post.
- 05
Media reply
Posts the chosen image, GIF, or short video from Cloudflare R2 directly in Discord (no visible text reply).
Channel output The channel gets the matched reaction media as the whole reply, with no text added.
Architecture and ownership
The runtime splits into two services: a TypeScript Discord bot on Fly.io and a Python Google Agent Development Kit (ADK) RAG engine on Google Cloud Platform (GCP) Agent Runtime, backed by PostgreSQL, BigQuery, and a shared Cloudflare R2 media catalog synced from The Mayling Bot.
- DiscordServer conversation
- Fly.ioTypeScript Discord bot
- GCP Agent RuntimePython Google ADK RAG engine
- Backed byPostgreSQLBigQueryCloudflare R2
- Before a pick
- Incoming messages pass through pre-inference PII redaction and parallel LLM safety checks for prompt injection, sensitive topics, and user distress. The engine then generates an internal in-character reaction and embeds it alongside chat context to search structured media metadata in memory while filtering recent repeats.
- Picking
- Claude Sonnet 5.5 and Gemini 3.8 Flash pick candidate reactions with frame-level vision checks, a Gemini 3.8 Flash judge resolves disagreements, and a DeepSeek V4.1 Flash path handles lower-cost replies.
- Offline tooling
- Offline, a local chat-replay workbench runs side-by-side prompt, model, and cost checks alongside a web media-library editor that re-embeds metadata on save with audited revision history and rollback.
- Ownership
- Claude Code, OpenAI Codex, and Google Antigravity write the implementation, while I direct the system architecture, model and evaluation choices, safety rules, and approve live releases.
Source code is private.
Changelog
Built initial proof of concept on 44 static reaction images (7 of 10 clean prompts matched tone).
Moved the agent to GCP Agent Runtime and Fly.io on a private test server and connected 155+ reaction images, GIFs, and short videos.
Built the Python offline replay eval loop. Vision-model catalog rewrites cut bad picks from ~26% to ~9% on 82 held-out picks (Sep 25), and reaction framing fixes cut stiff narrator tone on hidden internal reactions from 43% to 0% in offline blind labels (Sep 27).
Added the local chat-replay workbench and web media-library editor, then shipped dual-model picking with frame-level vision checks and a Gemini 3.8 Flash tie-breaker judge.
Launched live in a friend’s Discord server of 500+ members after 75+ offline evaluation experiments.
Crossed 1,200+ live replies across three weeks of real chat across dual-model and lower-cost DeepSeek V4.1 Flash paths.
Audited live telemetry and offline replays to drop an extra routing model from unprompted replies. That simplified the stack, lowered latency, and tuned cost.