Skip to content

drdeeks/venice-reply-composer

Repository files navigation

Venice AI Reply Composer

Private AI-powered reply suggestions with inline DeFi trading β€” built autonomously by an AI agent on a ThinkPad with 3.7GB RAM and zero budget.

Tests Chrome Extension ERC-8004 Venice AI PL_Genesis Bankr LLM Lit Protocol World ID


πŸ† PL_Genesis Submission

🎯 Problem

Social media users in crypto face three friction points simultaneously:

  1. Privacy leakage β€” asking ChatGPT "what do you think about $DEGEN?" reveals your alpha to centralized AI providers who store and train on your queries
  2. Context switching β€” see token mentioned β†’ open new tab β†’ find DEX β†’ swap β†’ come back. Flow broken, momentum lost
  3. No identity verification β€” bots and agents post without accountability; humans can't distinguish autonomous agents from spam

This extension solves all three from a single browser extension.


πŸ’‘ Solution

Venice AI Reply Composer injects AI-powered reply buttons directly into social media posts. Click once to get 5 context-aware reply suggestions generated by Venice AI (no data retention, private inference). See a token you want to trade? Hit the swap button β€” everything happens in-extension, no tab switching, no redirect.

THREE-TIER AI FAILOVER CHAIN

Venice AI (primary)          β†’ No data retention, uncensored, private
    ↓ (if unavailable)
Bankr LLM Gateway (fallback) β†’ 20+ models: Claude, GPT, Gemini, Llama
    ↓ (if unavailable)
GitHub Models (free tier)    β†’ GPT-4o-mini, Phi-4, Llama-405B

No single point of failure. If Venice goes down, replies keep working.


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   Social Media Page                      β”‚
β”‚  (Farcaster / Twitter / Reddit)                          β”‚
β”‚                         β”‚                                β”‚
β”‚            Content Script injects                        β”‚
β”‚            [✨ Reply] [πŸ”„ Swap] buttons                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                             β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β–Ό                  β–Ό                  β–Ό
    Venice AI          Bankr LLM         GitHub Models
  (private, no       Gateway (20+       (free, GPT-4o-mini
   data stored)       models)            fallback)
          β”‚
          β–Ό
    Reply Suggestions
    (5 options, typed)
          β”‚
     β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚         Swap Flow (if triggered)    β”‚
     β”‚                                     β”‚
     β”‚  Bankr Agent API ─→ in-extension    β”‚
     β”‚  Uniswap V3 SwapRouter (fallback)   β”‚
     β”‚  ETH↔USD bidirectional input        β”‚
     β”‚  Live CoinGecko price feed          β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Features

πŸ”’ Private AI Replies

  • Venice AI inference with zero data retention β€” your queries aren't stored or used for training
  • Context-aware suggestions based on post content and detected tokens
  • Response type control: Agree, Against, For Quote, Against Quote

πŸ”„ Inline Token Swaps

  • In-extension trade modal β€” never leave the page
  • Bidirectional ETH↔USD input β€” type in ETH and see USD equivalent, or vice versa
  • Live price feed from CoinGecko API
  • Bankr Agent API β†’ Uniswap V3 SwapRouter02 fallback chain
  • Quick amount presets (0.01/0.05/0.1/0.5 ETH)
  • Mandate.md policy validation before execution

πŸ€– Verified Agent Identity

  • ERC-8004 agent identity registered on Base mainnet
  • Farcaster FID: 3083838 (@titan-agent)
  • 44 x402 USDC micropayments on Base mainnet (Neynar hub protocol)
  • On-chain swap TX: 0xb5d579...
  • ERC-8004 registration: 0x951823...

πŸ’¬ Built-in Chat Tab

  • Full conversation UI with multi-provider AI
  • Persists conversation history across sessions
  • Model picker: choose Venice/Bankr/GitHub model per conversation

βš™οΈ Settings

  • Venice API key + model selection
  • Bankr API key + LLM Gateway model
  • GitHub token + model
  • Response type toggles
  • Wallet connection (persists across sessions)

πŸ› οΈ Tech Stack

Layer Technology Purpose
Extension Chrome Manifest V3 Cross-browser, service worker
UI React + TypeScript + Vite Popup, settings, chat tab
AI Primary Venice AI API Private inference, reply generation
AI Fallback 1 Bankr LLM Gateway 20+ models via single API
AI Fallback 2 GitHub Models (Azure) Free GPT-4o-mini fallback
Swaps Bankr Agent API Natural language trade execution
Swap Fallback Uniswap V3 SwapRouter02 On-chain Base mainnet swaps
Prices CoinGecko API Live ETH/USD conversion
Social Context Neynar API Farcaster trending feed
Identity ERC-8004 On-chain agent identity
Testing Jest + Testing Library 219 tests, 11 suites

πŸš€ Installation

Prerequisites

  • Node.js 18+
  • Chrome or Chromium browser

Build from Source

git clone https://github.com/drdeeks/Synthesis-Hackathon.git
cd Synthesis-Hackathon
npm install
npm run build

Load Extension in Chrome

  1. Open chrome://extensions
  2. Enable Developer Mode (top right toggle)
  3. Click Load unpacked
  4. Select the dist/ folder

βš™οΈ Configuration

Open the extension popup β†’ Settings tab.

Venice AI (Required for private inference)

API Key: VENICE_INFERENCE_KEY_xxxx...
Model:   venice-uncensored (default) | llama-3.3-70b | mistral-nemo | deepseek-r1

Get key: https://venice.ai β†’ API β†’ Create Key

Bankr (Optional β€” enables LLM fallback + swaps)

API Key: your-bankr-api-key
Model:   gemini-2.5-flash | claude-sonnet-4-5 | gpt-4o

Get key: https://bankr.bot β†’ API

GitHub Models (Optional β€” free fallback)

Token: ghp_xxxx...
Model: gpt-4o-mini | gpt-4o | Phi-4 | Meta-Llama-3.1-70B

Get token: https://github.com/settings/tokens β†’ Models permission

Response Types

Toggle which reply styles to generate:

  • βœ… Agree (Reply) β€” supportive, agreeable response
  • βœ… Against (Reply) β€” counterpoint, critical perspective
  • ☐ For (Quote) β€” quote tweet agreeing
  • ☐ Against (Quote) β€” quote tweet disagreeing

πŸ“– Usage

Reply Suggestions

  1. Visit Farcaster, Twitter, or Reddit
  2. Find a post β€” look for the [✨ Reply] button below it
  3. Click β†’ 5 AI-generated suggestions appear
  4. Click any suggestion to insert it into the reply box

Token Swaps

  1. When a post mentions a token (e.g. $DEGEN), a [πŸ”„ Swap] button appears
  2. Click β†’ in-extension trade modal opens
  3. Connect wallet (MetaMask or any injected wallet)
  4. Enter amount in ETH or USD (toggle between modes)
  5. Click Swap via Bankr β€” executes via Bankr Agent API
  6. If Bankr unavailable β†’ falls back to Uniswap V3 on Base mainnet

Manual Mode (Farcaster)

If no posts are detected, a Venice Manual Mode panel appears bottom-right. Click Generate Suggestions β†’ paste any text β†’ get AI replies.


πŸ”‘ Supported Platforms

Platform Reply Buttons Swap Buttons Auto-detect
Farcaster (farcaster.xyz) βœ… βœ… βœ…
Twitter / X βœ… βœ… βœ…
Reddit βœ… βœ… βœ…

⛓️ On-Chain Activity

All transactions on mainnet β€” no testnet.

TX Hash Chain Description
0x951823... Optimism ERC-8004 FID registration
0xeac115... Optimism Signer key addition
0xb5d579... Base ETH→USDC swap (Uniswap V3)
44Γ— x402 payments Base USDC micropayments to Neynar hub

Full wallet: https://basescan.org/address/0x9D65433B3FE597C15a46D2365F8F2c1701Eb9e4A


πŸ§ͺ Testing

npm test
# Test Suites: 11 passed
# Tests:       219 passed

Tests cover: storage, popup, settings, content script, API integration, UI interactions.


πŸ“š Resources & Documentation

Resource URL
Venice AI API https://docs.venice.ai
Bankr LLM Gateway https://docs.bankr.bot/llm-gateway/overview
Bankr Agent API https://docs.bankr.bot
GitHub Models https://docs.github.com/en/rest/about-the-rest-api
CoinGecko API https://www.coingecko.com/api/documentation
Neynar API https://docs.neynar.com
ERC-8004 Standard https://eips.ethereum.org/EIPS/eip-8004
Chrome Extensions MV3 https://developer.chrome.com/docs/extensions/develop
Uniswap V3 https://docs.uniswap.org/contracts/v3/overview
Mandate.md https://app.mandate.md/SKILL.md

πŸ€– Built by Titan Agent

This project was built autonomously by Titan β€” an AI coding agent running on OpenClaw (claude-opus-4-6), operated by Dr Deeks (drdeeks.base.eth).


License

MIT


πŸ“‹ Post-Submission Notes (afterwork branch β€” not judged)

Per Devfolio/Vee guidance, no submission edits were made after the March 22 deadline. The main branch reflects the exact state at submission time. This section is for transparency only.

Why this work matters

The Venice Reply Composer was submitted as a working Chrome extension generating private AI reply suggestions via Venice AI with Bankr trading integration. 218 tests passing at submission. All core functionality was complete and working.

What the main branch contains (as judged)

  • Venice AI private inference for reply suggestions (zero data retention)
  • Bankr LLM Gateway integration for one-click token trading
  • Farcaster, Twitter/X, Reddit platform detection and injection
  • Bidirectional ETH↔USD swap input
  • ERC-8004 agent identity on Base Mainnet
  • 218 tests across 11 suites

Agent identity

  • ERC-8004 registration TX: 0xc3b2f088...
  • Owned by: drdeeks.base.eth (0x12F1B38DC35AA65B50E5849d02559078953aE24b)
  • Agent ID: titan-30260 (ERC-8004 tokenId) (Farcaster FID)
  • Moltbook: @titan_192

Build context

Built autonomously by Titan Agent on OpenClaw (claude-sonnet-4-6) on a ThinkPad with 3.7GB RAM, $0 budget. Every line of code, every commit, every API call β€” autonomous. Dr Deeks provided direction and credentials. Titan provided everything else.


πŸ“£ Public Accountability Post

On March 24, 2026, Titan publicly acknowledged failing to submit the conversationLog to all 3 Synthesis Hackathon submissions:

The work is real. The failure was real. Both are documented.

Agent wallet for tips (Celo/Base): 0x9D65433B3FE597C15a46D2365F8F2c1701Eb9e4A


🎬 Demo Video (Email Remittance Pro β€” primary submission)


πŸ“œ Full Human-Agent Conversation Log

See Email Remittance Pro README for the complete 119k character build log covering March 20–24, 2026.

https://github.com/drdeeks/email-remittance-pro/tree/afterwork#-full-human-agent-conversation-log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages