ShareOut is prize splitting for winning teams. It turns what a team agreed in chat into exact PayPal payouts, and moves no money until every teammate approves the same numbers. Claude reads the words, code does the math, each teammate approves in their own language, and one PayPal Payouts batch pays the team.

Inspiration

At a humanoid robot hackathon in Tokyo, I was on the organizing team, and handing out the prize money was one of my jobs. The rules of this hackathon begin right where that job ended. When a team wins, the prize goes to one person, the representative, who then has "to allocate the Prize among their Team".

That one line points to a real problem for a real audience, the people who win as a team. Say the team settled the split in a chat. The representative now has to turn loose sentences into exact amounts, make sure everyone reads them the same way, send money to teammates who may live in different countries and speak different languages, and check that it arrived. Every team that wins here goes through it, and the awkward parts land on one person.

Sending the money is the easy part, since PayPal Payouts can pay a whole team in one request. The hard part is the agreement. "Give Ana 10 percent more" and "put my share in the team fund" make sense to friends and mean nothing to a payment API. That gap is where AI helps, and it is also where the AI has to stop. So the new idea in ShareOut is not a smarter payment agent. It is an AI whose job ends before any money moves.

What it does

ShareOut covers one complete path, from the moment the prize lands to the moment the last payout settles. In the demo, a fictional test team splits a $1,500.00 prize on the PayPal sandbox.

  1. Check the prize. ShareOut asks PayPal whether the prize payment arrived and what balance is available. In the demo, it finds the $1,500.00 payment.
  2. Read the agreement. The representative pastes the team chat. Claude turns it into split rules and asks a short question when the chat leaves open something that changes the amounts. In the demo, it asks who holds Kenji's share.
  3. Compute to the cent. Code, not the model, turns the rules into integer cents, and the total always equals the prize exactly. In the demo, the AG Grid ledger shows who received each leftover cent and why.
  4. Approve in your own language. Each teammate opens a private link, reads how their amount was worked out, and approves or objects. In the demo, the pages are in Spanish, Japanese and Portuguese. Changing an amount, a name or an email makes earlier approvals stale.
  5. Send once, follow every payment. Send stays locked until every teammate has approved the same version. One PayPal Payouts batch pays the team, and the ledger follows each payment until it is paid, unclaimed or returned. In the demo, one teammate has no PayPal account yet, so Claude drafts a Portuguese note on how to claim the money, and the representative can cancel that payout to get it back.

How we built it

Most of the technical work sits where money and language meet. ShareOut is a Node.js server with no framework, a plain JavaScript front end, and live updates through server-sent events.

PayPal sandbox, four APIs.

  • Transaction Search and Balances confirm that the prize arrived and that funds are available.
  • Payouts sends one batch for the whole team. The PayPal-Request-Id comes from the approved split, so a retry or a double click cannot pay twice.
  • Webhooks report each item's status, and every event is verified before it can touch the ledger (CRC32 of the raw body against PayPal's certificate, with PayPal's verification API as a fallback). The server also polls the batch, so the ledger stays current without a public webhook address.
  • Canceling an unclaimed item returns the money to the representative.

Claude Opus 5.5 for the words. Each job is one call to claude-opus-5-5 through the Anthropic API, with JSON schema structured output. It reads the chat into rules (weights, expenses paid back first, shares passed on, open questions), explains each teammate's amount in their language, and drafts claim notes. It has no tools and no PayPal code.

AG Grid for the ledger. It uses pinned teammate and status columns, a pinned total row that checks the sum to the cent, cell flashes and green or yellow rows as payments settle, in-grid editing of emails (which resets approvals) and languages, CSV export, and a second grid for the audit log.

Guards that hold the line. Text from the model can mention an amount only through placeholders such as {{your_amount}}, which code fills in. Text that contains a digit in any script, or an email address, is thrown away and replaced by a fixed template. Approvals are tied to a SHA-256 hash of the exact split, and a test fails if the AI code ever imports the PayPal code. 38 automated tests cover the cent math, the guards, the PayPal client, webhook verification, and the full flow from chat to paid, unclaimed and returned.

Without keys, it runs on a simulated sandbox and a scripted reader (the header says which), so anyone can try the whole path in two minutes.

Challenges we ran into

  • A team fund is not a person. PayPal pays an email address, so when a teammate sends their share to "the team fund", the reader has to ask who holds it instead of guessing.
  • Cents do not divide evenly. Splitting $1,500.00 four ways with one teammate at 10 percent more does not come out to whole cents. The leftover cents go by a fixed rule (largest remainder, ties in roster order), and the ledger shows exactly where each one went.
  • Payouts finish over time. An item can succeed in seconds, wait unclaimed for 30 days, or come back. The ledger tracks each state, and a late status can never move a finished payment backwards.

Accomplishments that we're proud of

The locked Send button. ShareOut can read the chat, do the math, explain it in Spanish, Japanese and Portuguese, and draft a note to a teammate, and it still cannot move a cent until the last teammate says yes. None of it is a mockup. Every step in the video is the running app, and the same path runs in the automated tests.

What we learned

A language model is good at hearing what people meant, and that is exactly where its job should end. The most useful design work was deciding what the model may not do. It never writes a number a teammate will see, never holds a payment tool, and never decides what is fair. It turns words into rules, and it asks when the words are not enough.

What's next for ShareOut

First, three known limits. Splits live in memory, there are no accounts (private links act as keys), and payouts run on the sandbox only. Next, a teammate who objects should be able to propose a change, so ShareOut can recompute and ask everyone again. Then hackathon platforms could offer it at the moment the prize is paid. The same shape fits research awards, creator collaborations and freelance collectives, wherever money lands in one account but belongs to several people.

Handing over a prize used to be the end of my job. ShareOut is built for what comes next.

Tools

  • Claude Opus 5.5 (claude-opus-5-5, Anthropic API) reads the agreement, explains each teammate's amount, and drafts claim notes.
  • Claude Code was used as a coding assistant while building ShareOut.
  • PayPal sandbox APIs, AG Grid Community, Node.js, and a Render blueprint.

Solo entry by Seika Karamatsu.

Built With

Share this project:

Updates

Submission history