Polyjuice

Soul-sync AI agents from Farcaster data with local GPU and x402 cryptographic verification.

Polyjuice

Created At

ETHOnline 2025

Project Description

πŸ§ͺ Polyjuice: Soul-Sync AI Powered by Farcaster Snapchain

Polyjuice is a modular, Rust-based framework for building soul-aligned AI agents β€” systems that can think, speak, and evolve like real Farcaster users. Inspired by the Polyjuice Potion in Harry Potter, it enables AI to β€œbecome” someone, capturing their tone, reasoning patterns, and digital identity through on-chain data.

Live Demo

Test it here: https://ai.polyjuice.io/

Warning: The API server is currently running on a local rig and exposed through a Cloudflare Tunnel. Uptime and response speed are not guaranteed β€” expect occasional downtime or latency during heavy computation or local maintenance.

How it's Made

System Architecture

Polyjuice is composed of several Rust-based components, each serving a distinct role in the soul-sync pipeline:

Module Repository Description Polyjuice Frontend github.com/RyanKung/polyjuice The user interface and orchestration layer for creating and interacting with soul-aligned agents. SnapRAG github.com/RyanKung/snaprag A high-performance RAG (Retrieval-Augmented Generation) engine that vectorizes and indexes Farcaster messages in Postgres via pgvector. Castorix github.com/RyanKung/castorix A CLI and API library for interacting with the Farcaster Snapchain, enabling data synchronization, proof verification, and chain state queries. Rust-x402 github.com/RyanKung/rust-x402 A Rust implementation of the x402 signing and verification protocol used for Snapchain cryptographic primitives.

Together, these modules form a complete stack β€” from data ingestion and vectorization to soul reconstruction and user simulation.

Technical Highlights

Rust Core β€” high-performance, memory-safe, parallelized architecture

Modular Design β€” independently deployable components for maximum flexibility

Postgres + pgvector β€” scalable vectorized memory for message embeddings

Local GPU Acceleration β€” native GPU support for embedding and RAG computation, without relying on Ollama or any third-party APIs

x402 Cryptographic Protocol β€” full support for Farcaster’s signing and verification standard, implemented in pure Rust

On-chain Anchoring β€” every agent tied to verifiable Farcaster identity

Soul Simulation Layer β€” reconstructs personality and tone from historical cast data

Vision

Polyjuice envisions a world where AI agents are not generic assistants, but authentic extensions of human identity β€” autonomous, evolving, and cryptographically sovereign.

β€œNot just imitation β€” reincarnation through data.”

Components

Polyjuice Frontend β€” interactive UI and orchestrator

SnapRAG β€” RAG and embedding engine

Castorix β€” Snapchain CLI/API

Rust-x402 β€” x402 middleware implementation

Polyportal β€” onchain endpoint router

background image mobile

Join the mailing list

Get the latest news and updates