Inspiration

Generic AIs can explain a topic, but not the way my professor teaches it or what's on our exam. Study sites want a monthly subscription for something I need a few nights a semester. Meanwhile, the classmates who write great notes get nothing for them.

I wanted an AI tutor that learns from the students who actually took the course, and pays them for it.

What it does

NoteWorth is an AI tutor built on classmates' study guides.

  • Ask a course question. The tutor searches free previews of study guides for your course, buys only the sections it needs (fractions of a cent each), and answers with citations to the classmates whose notes it used.
  • Study mode turns those same sections into practice quizzes and flashcards, and every set still pays the authors.
  • Authors upload study guides typed, as Word/PDF files, or as photos of handwritten notes. Prices are set by the platform, not the author: notes earn more only by actually helping students.
  • Every purchase is checked before money moves. A separate checker blocks sections that are off-topic, duplicated, over budget, or generic (anything the AI could answer on its own). Students set a limit above which the tutor must ask them first.
  • Earnings pay for your own tutoring, or cash out. The crypto is invisible: email signup, dollar amounts, no wallets or gas.

Your notes pay for your tutoring.

How I built it

  • Payments: each section is an x402 paywalled endpoint. The tutor pays with Circle Gateway Nanopayments on Arc: it signs an authorization against its Gateway balance, and Circle settles many purchases in one batch onchain, so sub-cent payments carry no per-purchase gas.
  • Open to any agent: because sections are plain x402 endpoints, any AI agent with a Gateway balance can buy them, no account or API key. A separate outside agent in the repo, using none of our code, buys from the live site.
  • The checker: plain-code rules first (budget, duplicates, loops, price limit), then one Claude Haiku call per question that sees only the question and the free previews, never the tutor's reasoning, so a manipulated tutor can't argue its way into a purchase. If the checker fails, it asks the student; it never fails open.
  • Cash-outs are funded by real sales income: a Gateway withdrawal pays the author on Arc with the payout ID written onchain via Arc's Memo extension, or via CCTP to another chain. A QuickNode Stream on Arc watches for those Memo events and marks each cash-out "Confirmed" independently.
  • Agent identity: the tutor is registered with ERC-8004 on Arc, and its reputation records how disciplined its purchases are.
  • Search: Postgres + pgvector (Voyage embeddings), filtered to the course first, plus keyword matching. The same embeddings power a near-duplicate check that rejects copied guides and recycled tutor answers.
  • Pricing: per section,

$$\text{price} = \$0.002 \times L \times R, \quad \text{capped at } \$0.01$$

where \(L\) (length) ranges from 1.0× to 1.5×, and \(R\) (rating) ranges from 0.5× to about 3.3×, smoothed so a handful of votes can't move it.

  • Stack: Next.js + TypeScript on Vercel, Supabase, Circle Wallets, viem, Claude Haiku 5.5 for answers and checks, Claude Opus 5.5 only for reading handwriting.

Challenges I ran into

  • Closing the money loop. Early on, cash-outs were paid from faucet money, not real sales. Making them come from the platform's Gateway income meant signing Gateway withdrawals from a Circle-managed wallet, which the docs didn't show but turned out to work.
  • Making the checker both safe and predictable. It had to block generic and off-topic content and resist manipulation, without asking the student for approval on every reasonable purchase.
  • Handwriting. A small model confidently invented facts from messy handwriting. A stronger model reads it far better and marks words it can't read as [unclear], which is worth a few cents per upload.
  • QuickNode delivery. The stream was delivering, but cash-outs weren’t confirming. Working through the logs step by step, from delivery to signature to event matching, narrowed it down, and taught me to read logs before guessing.
  • Integrity. What stops AI-generated notes, copied slides, or re-uploaded tutor answers? Own-work attestations, near-duplicate checks, reports, and a checker that only pays for what the AI doesn't already know.

What I learned

I came into this hackathon as a freshman without much coding experience, so the biggest thing I learned was how to build with AI coding agents: breaking a big idea into stages, making the product decisions myself (pricing, what the checker should block, how to handle your own notes, what to cut), and testing everything live instead of trusting that it worked. Running the full demo myself caught real problems, like the checker not visibly blocking anything and a payment bug caused by my laptop's clock.

I also learned how agent payments fit together: x402 turns a paywall into something an AI can pay automatically, and Circle's Gateway Nanopayments batch thousands of tiny payments into one onchain settlement, which is what makes paying a fraction of a cent possible. I'm still learning the details underneath, and that's what I'm most excited to keep digging into.

Finally, I learned that building the feature is the easy part. Most of my week went into the questions around it: what stops people from gaming it, what happens when notes are wrong, and how to keep the crypto invisible.

What's next

  • Bank payouts through an off-ramp partner
  • Professor opt-in per course, with a revenue share
  • Section editing with version history
  • Direct per-purchase payouts to authors, school-email verification, and collusion detection
  • A small platform fee to cover AI costs, routing hard questions to stronger models

Built With

  • anthropic
  • arc
  • cctp
  • circle-gateway
  • circle-nanopayments
  • circle-wallets
  • claude
  • erc-8004
  • next.js
  • pgvector
  • postgresql
  • quicknode
  • quicknode-streams
  • react
  • supabase
  • typescript
  • usdc
  • vercel
  • viem
  • voyage-ai
  • x402
Share this project:

Updates

Submission history