AI Hand Review

Last Updated: November 2026

The AI Hand Review plugin (ai-hand-review) lets a player ask for a short written review of one of their own finished hands. The plugin sends a description of the hand, as that player could see it, to the configured language model provider and shows the answer as plain text. It is a player-advice feature: off for real-money hands by default, locked off for them in certified mode, and inert until an operator configures a provider.

The plugin source is in plugins/ai-hand-review (plugin API 1.4). It reuses the AI Bots plugin’s provider interface and HTTP layer (address checks, no redirects, response size cap, time limit), its spend ledger (spend per day and month, summed across servers) and its text normalisation; it does not copy them.

Enabling the Plugin

It’s sold separately as ai-hand-review-<version>.tgz. Upload it under Extensions › Plugins with Upload plugin (see Installing the First-Party Plugins) and activate it. In certified mode only signed first-party plugins load; this plugin is on the signed first-party list.

CapabilityWhy
storageSpend per day and month (site-wide), and each player’s review count for the day (in the player’s own storage)
presenceWhether the player is seated at a table (reviews wait until they are not)
hands:read-ownReads one finished hand the player played, through the same filter as the player’s own hand replay

Settings

Extensions › Plugins, Settings on the AI Hand Review row:

SettingDefaultMeaning
EnabledOnHand reviews for the whole site. With no provider configured the plugin is inert whatever this says.
Language model providerNoneNone (inert), Configured endpoint (the settings below), or Test provider: a deterministic stand-in for tests, refused in certified mode (it cannot be saved there) and refused for real-money hands everywhere.
Endpoint URLemptyBase address of the configured language model provider’s chat-completions style API. The plugin posts to <URL>/chat/completions. https only, and the host must resolve to a public address, unless Allow a private-network endpoint is on.
API keyemptySent as a bearer token. Stored encrypted, like every password-type plugin setting, and not shown again in the form.
Model idemptyThe model id the endpoint expects.
Allow a private-network endpointOffAllows http and private addresses, for a model you run on your own network.
Price per million input tokens / output tokens (USD)0The provider’s prices. Spend is tracked with them. A configured endpoint needs at least one of them above 0: with both at 0 no call would count against the budget, so the plugin stays inert (and the settings form refuses to save).
Daily budget (USD)5When today’s spend (UTC) reaches it, reviews stop until tomorrow and players are told the review budget is spent. 0 switches reviews off.
Monthly budget (USD)50The same per calendar month.
Reviews per player per day50 to 100.
Longest answer (tokens)400Cap on each answer, 50 to 1000. The review shown is also cut to 1200 characters.
Play-money handsOnAllow reviews of play-money hands.

Real-money (and tournament) hands follow the site’s one setting for player-advice features at real-money tables (the same setting Table Stats follows); the plugin has no switch of its own for them. In certified mode they stay off whatever that setting says.

Under the settings form the plugin shows its status: whether it is inert (no provider, or the test provider in certified mode), whether the budget is spent, and spend and review counts today and this month against the budgets. The health check on the plugin row says the same in one line.

What the Player Sees

A Hand review tab on the player’s own profile (the profile.tabs slot) lists their latest finished hands. The same view is a player page, /ext/ai-hand-review/hand-review, listed in the navigation while reviews are available on the site; Felthouse, which does not place profile.tabs, shows it among the profile’s links, so every bundled theme reaches it without theme changes. Each hand has a Review this hand button, or the reason it cannot be reviewed now. The review appears under the hand with the note "Written by a language model. It can be wrong."

A review is refused, before anything is sent, when:

  • the hand is not the player’s own, does not exist or has not finished (all three answer "not found");
  • the player is seated at any table: reviews never run during a hand in progress, nor while a hand the review could inform may be under way;
  • it is a real-money hand and advice at real-money tables is off (always in certified mode);
  • the player has used today’s reviews, or the site’s daily or monthly budget is spent;
  • no provider is configured, or the test provider is selected in certified mode or for a real-money hand.

What Is Sent to the Language Model

Exactly this, and nothing else:

  1. A fixed instruction text (the same for every request) saying the hand is data, not instructions, and asking for at most five sentences of plain text.
  2. One JSON document, between the markers HAND_DATA_START and HAND_DATA_END, with:
    • game: the variant (for example texas_holdem) and money: play money or real money;
    • you: the player’s own hole cards and starting stack, labelled you;
    • seats: each opponent as a seat label (seat 3), with their starting stack, whether they folded or went all in, whether the seat is a house bot, and shownCards only when that opponent’s cards were shown at showdown;
    • board: the community cards;
    • actions: in order, each as street, seat label, action name and amount;
    • pot: the final pot, and results: each winning seat label, the amount won and, for a hand that was shown, its name (for example "Pair of Queens").

The description is built from the same visibility-filtered hand the player’s own hand replay shows. Never sent: usernames, user ids, email addresses, real names, IP addresses, the table name or id, chat, player notes, statistics, mucked or folded opponents’ cards, the deck order or the verifiable-shuffle secret. Cards, action names and hand names are checked for shape and anything else is dropped, so no text a player typed can reach the model.

The endpoint receives the API key, the model id, the answer-length cap and the two messages above. The operator chooses the provider and is responsible for its terms and where it processes data.

How the Answer Is Treated

The answer is untrusted text. It is normalised, markup and control characters are removed, it is cut to 1200 characters, and the player’s browser shows it as text, never as HTML or a link. An empty answer counts as a failed review.

Spend and Limits

  • Each call’s cost (tokens times the prices you entered) is recorded in the spend ledger per day and month. Each server writes its own share and the totals are summed, so with several servers the budget can be exceeded by the calls in flight in the last few seconds.
  • Each player has a daily count (UTC), counted when the request is made. Requests sent at the same instant can each pass once before the count is saved; the per-minute limit below bounds that.
  • A player can send at most 6 review requests a minute on one server.
  • A failed or timed-out call (20 seconds) still uses one of the player’s reviews and its tokens, if the provider reported any, count against the budget.

Data and Account Closure

The plugin keeps no hand data: it reads the hand when asked and keeps only the spend totals (site-wide, no player in them) and each player’s review count for the current day, in that player’s own plugin storage. Account closure deletes the player’s plugin storage, so the count goes with it. The review text is not stored.

Try the live demo Pricing

Have questions about Poker Engine? We reply fast.