Auto Notes - jejellyroll-fr/fpdb-3 GitHub Wiki
Auto Notes Workbench
Auto Notes creates player notes from rules and hands already in your database. The Workbench also scans hand-history files, previews the notes it would generate, and—when you choose Write Notes—imports missing hands before saving their notes.
Open it from Tools → Auto Notes Workbench. Built-in rule sets can be enabled or disabled from Configure → Auto Note Rules.
Use the Dry Run buttons first. A dry run previews generated notes without saving them. Review the matched hands, rule names, note text and evidence before choosing a write action.
Open the Workbench
The Workbench has four tabs:
| Tab | What it does |
|---|---|
| Run | Preview or write notes from hand-history files or imported database hands. |
| Player Notes | Find a player who has generated notes and inspect that player's notes. |
| Pool | Summarize generated notes across players and rules, with date, site, limit and player filters. |
| Custom Rules | Create, edit, test, save, duplicate or delete your custom rules. Built-in rules are shown for reference. |

The screenshots on this page use fictional demo players and hands. The top row switches tabs; in Run, the upper controls choose a hand-history source or database batch, while the table below shows the generated notes and their evidence.
Understand rule sets and rules
A rule set groups related rules. For example, a set might contain rules for preflop 3-bets and flop continuation bets. Each rule has its own name, unique ID, enabled state, conditions, note template and evidence settings.
When a hand is processed, each applicable enabled rule is checked. A matching rule can create a note for a player. Choosing a rule set on the Run tab limits a run to that set; All configured rule sets uses all available configured sets. Built-in rule sets are listed in the editor as locked reference material; use the custom rule editor for rules you want to change.
Make a custom rule
- Open Custom Rules and select your custom rule group in the tree.
- Choose + New Rule, or select a rule and choose Duplicate to use it as a starting point.
- Set a clear Rule Name and a unique Rule ID. Notes are associated with the rule ID, so do not change an ID after you have written notes for it.
- Add one or more conditions. For example, choose Player Position, IS (=) and
BTNto match the button. Choose Effective Stack (BB) with BETWEEN [min, max] and10, 20to match that stack range. - Choose how the conditions combine, then write the note template.
- Use Test Sandbox to paste a PokerStars or GGPoker hand history and select Evaluate Rule. The sandbox reports whether the selected rule matches and shows the note and captured cards. It tests that pasted hand in memory; it does not import the hand or write a database note.
- Choose Save Rules to persist the custom rules. Saving rules changes the custom rules file; it does not backfill or write notes to the database.
The visual builder offers these condition fields:
| Field | Values or meaning |
|---|---|
| Game Variant | Game base, such as holdem or stud |
| Game Category | Game category, such as holdem or omahahi |
| Game Limit | nl, pl, fl, cn or cp |
| Player Position | The player's position, such as BTN, SB or BB |
| Opponent Position | IP or OOP relative to the first raiser |
| Effective Stack (BB) | The player's starting stack expressed in big blinds |
| Flop SPR | The stack-to-pot ratio calculated for the hand |
| Preflop / Flop / Turn / River Action | The first matching action category for the player on that street |
| Made Hand Rank | Hand description available from the parsed hand, when present |
| Flop Texture | The shared flop texture classification |
Available operators are IS, IS NOT, Less than or equal, Greater than or equal, Less than, Greater than, IN, NOT IN, BETWEEN and CONTAINS. Text comparisons ignore case. Use a comma-separated list for IN or NOT IN, and two comma-separated numbers for BETWEEN.
The root operator applies to the list of condition rows:
- AND: every condition must match.
- OR: at least one condition must match.
- NOT: none of the listed conditions may match. With one row, this negates that condition.
An empty condition tree matches every hand, so add a condition before using a rule.
Write a useful note template
The template field supports simple tags. The standard tags shown by the editor are:
| Tag | Replaced with |
|---|---|
{player} |
Player name |
{hole} |
Player's hole cards, when captured |
{flop} |
Flop cards, when captured |
{eff_stack_bb} |
Effective stack in big blinds, when captured |
{pot} |
Pot size |
{spr} |
Stack-to-pot ratio |
For example:
{player} opened from the button with {hole} at {eff_stack_bb} BB
The evidence options control capture of Hole Cards, Board, Stack & SPR, and Actions. Board evidence also provides {turn} and {river} when those streets are dealt; action evidence is available as {action_sequence}. {eff_stack} is an alias for {eff_stack_bb}, and {board} is an alias for {flop}. Keep a tag's evidence option enabled if you want its value in the note. Unsupported or unavailable tags stay visible in braces so they are easy to spot in the preview.
Safe first run from hand-history files
- Confirm the hand histories you want to scan have already been imported into the fpdb database. The file preview matches source hands to database hands; it is not a substitute for a normal import.
- On Run, use File or Folder beside Hand-history source to select a small file or folder.
- Choose one rule set, or leave All configured rule sets selected.
- Choose Dry Run. Read the summary, then inspect the candidate rows, especially Player, Rule Set, Rule, Note and Evidence. A hand-history file may be skipped if fpdb cannot identify or parse it.
- If the notes look right, choose Write Notes and confirm the prompt. This action imports missing hands from the selected source, then generates and stores notes for the imported/matched hands.
The file Dry Run does not import missing hands or save generated notes. To backfill notes for hands already in the database, use the database workflow below.
Safe first run from database hands
- Set any desired filters on the Pool tab: player-name fragment, date range, site and game limit. The database run uses these filters.
- Return to Run and set Database hands to a small limit for your first pass. It starts at 1,000; choose a lower value if you want a smaller preview.
- Select the rule set to use and choose Dry Run DB.
- Review the summary and candidate rows, including the note text and evidence.
- If the preview is correct, choose Write DB Notes and confirm. This writes notes for the selected imported database hands; it does not import hand histories.
Review player and pool notes
Player Notes

- Open Player Notes.
- Enter all or part of a player name and choose Search.
- Select a result and choose Load Notes.
- Review the note text, rule, evidence, date and hand identifiers. Double-click a hand row to open it in the replayer.
Pool

Open Pool, set optional player, date, site or limit filters, then choose Refresh Pool Summary. The tab shows players with the most generated notes, the most-used rules, and recent notes. Double-click a recent-note row to inspect its hand in the replayer.
Refreshing the Pool tab only reads and summarizes existing generated notes. To create notes, return to Run and use a write action.
Manage custom rules
In Custom Rules, select a custom rule to edit it. Duplicate creates a copy with a new ID; Delete removes the selected custom rule after confirmation. Choose Save Rules after editing. The editor prevents saving duplicate rule IDs because stored notes use those IDs to identify their source rule.

Rule definitions are stored in user_autonotes.json in fpdb's configuration directory. Generated player notes are stored separately in the database. Editing or deleting a rule does not remove notes already written for that rule.
Read notes at the table
The HUD's note popup shows a player's notes during play. Which stat block opens it is set per profile; see HUD configuration from the GUI.
Practical advice
- Start with one rule set, dry-run it, and read a sample of the notes before writing them.
- A note is only as useful as its evidence and sample. Check the hand, cards and actions behind a note before treating it as a reliable read.
- Write rules for specific patterns you would actually want to remember, such as a player calling a 3-bet out of position.