gutcheck 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gutcheck-0.1.0/LICENSE +202 -0
- gutcheck-0.1.0/MANIFEST.in +4 -0
- gutcheck-0.1.0/PKG-INFO +168 -0
- gutcheck-0.1.0/README.md +135 -0
- gutcheck-0.1.0/gutcheck/__init__.py +13 -0
- gutcheck-0.1.0/gutcheck/archetypes.py +168 -0
- gutcheck-0.1.0/gutcheck/coach.py +302 -0
- gutcheck-0.1.0/gutcheck/coach_daemon.py +1230 -0
- gutcheck-0.1.0/gutcheck/coach_watch.py +440 -0
- gutcheck-0.1.0/gutcheck/doctrine.md +195 -0
- gutcheck-0.1.0/gutcheck/doctrine.py +179 -0
- gutcheck-0.1.0/gutcheck/engine.py +241 -0
- gutcheck-0.1.0/gutcheck/equity.py +278 -0
- gutcheck-0.1.0/gutcheck/game.py +1569 -0
- gutcheck-0.1.0/gutcheck/history.py +222 -0
- gutcheck-0.1.0/gutcheck/keystore.py +165 -0
- gutcheck-0.1.0/gutcheck/leakstore.py +512 -0
- gutcheck-0.1.0/gutcheck/mcp_server.py +705 -0
- gutcheck-0.1.0/gutcheck/paths.py +256 -0
- gutcheck-0.1.0/gutcheck/ranges.py +148 -0
- gutcheck-0.1.0/gutcheck/seam.py +239 -0
- gutcheck-0.1.0/gutcheck/server.py +900 -0
- gutcheck-0.1.0/gutcheck/settings.py +244 -0
- gutcheck-0.1.0/gutcheck/static/index.html +1524 -0
- gutcheck-0.1.0/gutcheck.egg-info/PKG-INFO +168 -0
- gutcheck-0.1.0/gutcheck.egg-info/SOURCES.txt +30 -0
- gutcheck-0.1.0/gutcheck.egg-info/dependency_links.txt +1 -0
- gutcheck-0.1.0/gutcheck.egg-info/entry_points.txt +3 -0
- gutcheck-0.1.0/gutcheck.egg-info/requires.txt +11 -0
- gutcheck-0.1.0/gutcheck.egg-info/top_level.txt +1 -0
- gutcheck-0.1.0/pyproject.toml +112 -0
- gutcheck-0.1.0/setup.cfg +4 -0
gutcheck-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
gutcheck-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gutcheck
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A poker reading trainer: commit your read, then see the real equity.
|
|
5
|
+
Author: Phill Clapham
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/phillipclapham/gutcheck
|
|
8
|
+
Project-URL: Source, https://github.com/phillipclapham/gutcheck
|
|
9
|
+
Project-URL: Issues, https://github.com/phillipclapham/gutcheck/issues
|
|
10
|
+
Keywords: poker,trainer,equity,holdem,mcp
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Web Environment
|
|
14
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Games/Entertainment
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: pokerkit==0.7.4
|
|
25
|
+
Provides-Extra: mcp
|
|
26
|
+
Requires-Dist: mcp<2,>=1.28.0; extra == "mcp"
|
|
27
|
+
Provides-Extra: anneal
|
|
28
|
+
Requires-Dist: anneal-memory<2,>=0.8.5; extra == "anneal"
|
|
29
|
+
Provides-Extra: api
|
|
30
|
+
Requires-Dist: anthropic<1,>=0.112.0; extra == "api"
|
|
31
|
+
Requires-Dist: openai<3,>=2.0.0; extra == "api"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# gutcheck
|
|
35
|
+
|
|
36
|
+
**A poker reading trainer.**
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
You sit at a 6-max no-limit cash table against five bots. Each one plays a real, exploitable style: the rock, the reg, the calling station. The catch is that their names get shuffled against their styles every session, so you can't memorize who's who. You have to read them from how they play.
|
|
41
|
+
|
|
42
|
+
Then, when it's your turn, you commit a read. How strong am I here? Is that guy actually on something? The trainer locks in what your gut said and shows you the real number, computed in code, never guessed. You see the gap. Do that a few hundred times and your feel for a table starts to line up with what's actually true.
|
|
43
|
+
|
|
44
|
+
No account, no API key, no LLM needed. The bots are code and the equity math is exact. There's an optional AI coach if you want someone to talk the spot through with you, but the training loop never depends on it.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install gutcheck
|
|
48
|
+
gutcheck
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
That opens a table in your browser at `http://127.0.0.1:8777`. Everything runs on your machine.
|
|
52
|
+
|
|
53
|
+
## Play with Claude in the room
|
|
54
|
+
|
|
55
|
+
This is how I actually use it. Start `gutcheck`, then open a Claude Code session with the gutcheck MCP server added (`pip install "gutcheck[mcp]"`, then `claude mcp add gutcheck -- gutcheck-mcp`, once). Now Claude can see the table you're sitting at, your hand history and your read stats, and you just talk it out while you play. What do you make of the guy who keeps check-raising? Was that fold as bad as it felt? Where are my reads drifting?
|
|
56
|
+
|
|
57
|
+
It answers from what's actually on the table and in your history, not from vibes. And it only knows what you could know: the bots' hidden styles stay hidden, and it never sees their cards mid-hand, so it can't read them for you. It has to read them with you. It can't play your hands either. The clicking stays yours.
|
|
58
|
+
|
|
59
|
+
## Why this exists
|
|
60
|
+
|
|
61
|
+
I play by feel. Most of what happens at a poker table happens faster than I can do math, and I've always thought that was fine, since the gut is doing real work. But a gut that never gets checked isn't a skill. It's a mood.
|
|
62
|
+
|
|
63
|
+
Solvers tell you the right play. They don't tell you how far off your read was, and that's the part I actually wanted to train. So gutcheck is built around one loop: **predict, check against ground truth, notice the gap, go again.** You commit before you see the answer, every time, so you can't fudge it after the fact.
|
|
64
|
+
|
|
65
|
+
That loop isn't really about poker. It's the same thing whether you're reading a table, a codebase, or a room: say what you think is true, check it against something that can't lie to you, keep score. Poker just makes the scoring cheap and the ground truth exact.
|
|
66
|
+
|
|
67
|
+
## How you train
|
|
68
|
+
|
|
69
|
+
1. **Sit down.** A buy-in comes off your play-money bankroll and you get a fresh table.
|
|
70
|
+
2. **Play.** Click any player to see what you've *observed* (VPIP, aggression, showdowns), never their hidden type. Guess it. There's a reveal button for checking yourself.
|
|
71
|
+
3. **Log a read.** On your turn, hit **Log read ♠**. Set your gut equity on a slider in plain language ("behind", "a coin flip", "a favorite"), pick your lean, add a note if you want. Then the trainer shows you the modeled equity and names the gap.
|
|
72
|
+
4. **Review.** After a hand, **⟳ review** replays it and stops at each of your decisions. Commit your gut again, then see the *exact* equity with every runout enumerated against the cards they really held.
|
|
73
|
+
5. **Get up.** Cash out. A session report records your results, your biggest pots, and how your reads graded out per villain.
|
|
74
|
+
|
|
75
|
+
Equity shows up as a felt band first ("a favorite") and the percentage second. The point is to train the feel, not to turn you into a calculator.
|
|
76
|
+
|
|
77
|
+
Over time the **🎯 Reads** view tracks your calibration: all-time accuracy, the recent arc, and whether you're sharpening or drifting.
|
|
78
|
+
|
|
79
|
+
## The optional coach
|
|
80
|
+
|
|
81
|
+
When you want the *why*, hit **talk it through ♠** after a read and a coach walks through the spot, using the same number you just saw.
|
|
82
|
+
|
|
83
|
+
Out of the box the coach tries the `claude` CLI if you have it (it rides your own Claude subscription). If it can't reach anything, it falls back to a plain facts readout: your equity band, the pot odds, what you've observed about each player. That always works, and the startup line tells you which one you're getting.
|
|
84
|
+
|
|
85
|
+
Worth knowing: the `claude` provider runs a normal `claude -p` call, so your own `~/.claude/CLAUDE.md` loads with it. If that file says who you are, the coach knows you. It also means the spot you're asking about goes to whichever provider you picked, same as anything else you'd send it.
|
|
86
|
+
|
|
87
|
+
Open **⚙ Settings** to pick a different provider:
|
|
88
|
+
|
|
89
|
+
| Provider | What you need |
|
|
90
|
+
|---|---|
|
|
91
|
+
| Claude (default) | the `claude` CLI (Claude Code), logged in |
|
|
92
|
+
| Codex | the `codex` CLI, logged in |
|
|
93
|
+
| Anthropic API | `pip install "gutcheck[api]"` and your own API key |
|
|
94
|
+
| OpenAI API | `pip install "gutcheck[api]"` and your own API key |
|
|
95
|
+
|
|
96
|
+
API keys are stored locally in a file only you can read (`0600`) and never go back out through the settings API. Coaching can be switched off entirely in Settings if you'd rather just see the facts.
|
|
97
|
+
|
|
98
|
+
**Leak memory.** With `pip install "gutcheck[anneal]"`, the coach also keeps a memory of your recurring mistakes. When the same misread shows up enough times, it gets a name ("fold reads undercount own equity"), cited back to the exact hands, and it graduates as it keeps happening. Next time you're in that spot, the coach brings it up. It's built on [anneal-memory](https://pypi.org/project/anneal-memory/).
|
|
99
|
+
|
|
100
|
+
## Use it from Claude or another MCP client
|
|
101
|
+
|
|
102
|
+
`pip install "gutcheck[mcp]"` adds `gutcheck-mcp`, an MCP server that lets an AI client read your table, your hand history and your calibration, and coach from them. It's read-mostly on purpose: the coach can see what you've observed, not the bots' hidden types, so it can't cheat for you.
|
|
103
|
+
|
|
104
|
+
Start `gutcheck` first (the MCP server talks to it on port 8777), then register the MCP server. For Claude Code:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
claude mcp add gutcheck -- gutcheck-mcp
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
For Claude Desktop or any other client, add a stdio server whose command is `gutcheck-mcp`.
|
|
111
|
+
|
|
112
|
+
## Where your data lives
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
~/.gutcheck/
|
|
116
|
+
career.json bankroll + lifetime stats
|
|
117
|
+
session.json the table you're sitting at
|
|
118
|
+
sessions/<id>.json session reports
|
|
119
|
+
calibration.json your read accuracy over time
|
|
120
|
+
history.db every hand you've played
|
|
121
|
+
coach.db the local coach channel
|
|
122
|
+
settings.json your settings
|
|
123
|
+
secrets.json API keys, if you add any (0600)
|
|
124
|
+
leaks.db leak memory, with the [anneal] extra
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Set `GUTCHECK_DATA_DIR` to put it somewhere else. `gutcheck --reset` starts you fresh: it deletes the hand history, session reports and the current table, and keeps a one-step backup of your bankroll, read accuracy and leak memory in case you didn't mean it.
|
|
128
|
+
|
|
129
|
+
## Flags
|
|
130
|
+
|
|
131
|
+
| Flag | Does |
|
|
132
|
+
|---|---|
|
|
133
|
+
| `--port 8777` | change the port |
|
|
134
|
+
| `--reset` | fresh start (deletes hand history; bankroll, reads and leaks are backed up first) |
|
|
135
|
+
| `--no-browser` | don't open a browser |
|
|
136
|
+
| `--no-coach` | don't run the built-in coach (if you run your own worker) |
|
|
137
|
+
| `--host <ip>` | bind a Tailscale IP to play from another device |
|
|
138
|
+
|
|
139
|
+
## Playing from a tablet
|
|
140
|
+
|
|
141
|
+
The server is single-player with no auth, so where it binds *is* the security boundary. It only allows loopback or a Tailscale address (`100.64.0.0/10`); wildcard, public and LAN binds are refused, with anti-CSRF and DNS-rebinding guards on top.
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
gutcheck --host <this machine's tailscale IP> --no-browser
|
|
145
|
+
# then open http://<that IP>:8777 on the iPad
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Don't put it on the open internet. It has no login, by design.
|
|
149
|
+
|
|
150
|
+
## Development
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
git clone https://github.com/phillipclapham/gutcheck
|
|
154
|
+
cd gutcheck
|
|
155
|
+
python3 -m venv venv && source venv/bin/activate
|
|
156
|
+
pip install -e ".[mcp,anneal]" pytest
|
|
157
|
+
GUTCHECK_DATA_DIR="$(mktemp -d)" python -m pytest -q
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Always point tests and smoke runs at a throwaway data dir, or they'll play hands against your real bankroll.
|
|
161
|
+
|
|
162
|
+
The package is `gutcheck/`: `server.py` (HTTP), `game.py` (the table), `engine.py` and `archetypes.py` (the hand engine and bot styles), `equity.py` and `ranges.py` (the equity oracle and the villain range model), `coach*.py` (the coach channel and workers), `leakstore.py` (leak memory), `mcp_server.py`, and `static/index.html` with `doctrine.md` (the table UI and the coaching doctrine). The doctrine is a plain markdown file, so you can read exactly what the coach is told.
|
|
163
|
+
|
|
164
|
+
Python 3.11+. The only required dependency is [pokerkit](https://pypi.org/project/pokerkit/).
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
gutcheck-0.1.0/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# gutcheck
|
|
2
|
+
|
|
3
|
+
**A poker reading trainer.**
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
You sit at a 6-max no-limit cash table against five bots. Each one plays a real, exploitable style: the rock, the reg, the calling station. The catch is that their names get shuffled against their styles every session, so you can't memorize who's who. You have to read them from how they play.
|
|
8
|
+
|
|
9
|
+
Then, when it's your turn, you commit a read. How strong am I here? Is that guy actually on something? The trainer locks in what your gut said and shows you the real number, computed in code, never guessed. You see the gap. Do that a few hundred times and your feel for a table starts to line up with what's actually true.
|
|
10
|
+
|
|
11
|
+
No account, no API key, no LLM needed. The bots are code and the equity math is exact. There's an optional AI coach if you want someone to talk the spot through with you, but the training loop never depends on it.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install gutcheck
|
|
15
|
+
gutcheck
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
That opens a table in your browser at `http://127.0.0.1:8777`. Everything runs on your machine.
|
|
19
|
+
|
|
20
|
+
## Play with Claude in the room
|
|
21
|
+
|
|
22
|
+
This is how I actually use it. Start `gutcheck`, then open a Claude Code session with the gutcheck MCP server added (`pip install "gutcheck[mcp]"`, then `claude mcp add gutcheck -- gutcheck-mcp`, once). Now Claude can see the table you're sitting at, your hand history and your read stats, and you just talk it out while you play. What do you make of the guy who keeps check-raising? Was that fold as bad as it felt? Where are my reads drifting?
|
|
23
|
+
|
|
24
|
+
It answers from what's actually on the table and in your history, not from vibes. And it only knows what you could know: the bots' hidden styles stay hidden, and it never sees their cards mid-hand, so it can't read them for you. It has to read them with you. It can't play your hands either. The clicking stays yours.
|
|
25
|
+
|
|
26
|
+
## Why this exists
|
|
27
|
+
|
|
28
|
+
I play by feel. Most of what happens at a poker table happens faster than I can do math, and I've always thought that was fine, since the gut is doing real work. But a gut that never gets checked isn't a skill. It's a mood.
|
|
29
|
+
|
|
30
|
+
Solvers tell you the right play. They don't tell you how far off your read was, and that's the part I actually wanted to train. So gutcheck is built around one loop: **predict, check against ground truth, notice the gap, go again.** You commit before you see the answer, every time, so you can't fudge it after the fact.
|
|
31
|
+
|
|
32
|
+
That loop isn't really about poker. It's the same thing whether you're reading a table, a codebase, or a room: say what you think is true, check it against something that can't lie to you, keep score. Poker just makes the scoring cheap and the ground truth exact.
|
|
33
|
+
|
|
34
|
+
## How you train
|
|
35
|
+
|
|
36
|
+
1. **Sit down.** A buy-in comes off your play-money bankroll and you get a fresh table.
|
|
37
|
+
2. **Play.** Click any player to see what you've *observed* (VPIP, aggression, showdowns), never their hidden type. Guess it. There's a reveal button for checking yourself.
|
|
38
|
+
3. **Log a read.** On your turn, hit **Log read ♠**. Set your gut equity on a slider in plain language ("behind", "a coin flip", "a favorite"), pick your lean, add a note if you want. Then the trainer shows you the modeled equity and names the gap.
|
|
39
|
+
4. **Review.** After a hand, **⟳ review** replays it and stops at each of your decisions. Commit your gut again, then see the *exact* equity with every runout enumerated against the cards they really held.
|
|
40
|
+
5. **Get up.** Cash out. A session report records your results, your biggest pots, and how your reads graded out per villain.
|
|
41
|
+
|
|
42
|
+
Equity shows up as a felt band first ("a favorite") and the percentage second. The point is to train the feel, not to turn you into a calculator.
|
|
43
|
+
|
|
44
|
+
Over time the **🎯 Reads** view tracks your calibration: all-time accuracy, the recent arc, and whether you're sharpening or drifting.
|
|
45
|
+
|
|
46
|
+
## The optional coach
|
|
47
|
+
|
|
48
|
+
When you want the *why*, hit **talk it through ♠** after a read and a coach walks through the spot, using the same number you just saw.
|
|
49
|
+
|
|
50
|
+
Out of the box the coach tries the `claude` CLI if you have it (it rides your own Claude subscription). If it can't reach anything, it falls back to a plain facts readout: your equity band, the pot odds, what you've observed about each player. That always works, and the startup line tells you which one you're getting.
|
|
51
|
+
|
|
52
|
+
Worth knowing: the `claude` provider runs a normal `claude -p` call, so your own `~/.claude/CLAUDE.md` loads with it. If that file says who you are, the coach knows you. It also means the spot you're asking about goes to whichever provider you picked, same as anything else you'd send it.
|
|
53
|
+
|
|
54
|
+
Open **⚙ Settings** to pick a different provider:
|
|
55
|
+
|
|
56
|
+
| Provider | What you need |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Claude (default) | the `claude` CLI (Claude Code), logged in |
|
|
59
|
+
| Codex | the `codex` CLI, logged in |
|
|
60
|
+
| Anthropic API | `pip install "gutcheck[api]"` and your own API key |
|
|
61
|
+
| OpenAI API | `pip install "gutcheck[api]"` and your own API key |
|
|
62
|
+
|
|
63
|
+
API keys are stored locally in a file only you can read (`0600`) and never go back out through the settings API. Coaching can be switched off entirely in Settings if you'd rather just see the facts.
|
|
64
|
+
|
|
65
|
+
**Leak memory.** With `pip install "gutcheck[anneal]"`, the coach also keeps a memory of your recurring mistakes. When the same misread shows up enough times, it gets a name ("fold reads undercount own equity"), cited back to the exact hands, and it graduates as it keeps happening. Next time you're in that spot, the coach brings it up. It's built on [anneal-memory](https://pypi.org/project/anneal-memory/).
|
|
66
|
+
|
|
67
|
+
## Use it from Claude or another MCP client
|
|
68
|
+
|
|
69
|
+
`pip install "gutcheck[mcp]"` adds `gutcheck-mcp`, an MCP server that lets an AI client read your table, your hand history and your calibration, and coach from them. It's read-mostly on purpose: the coach can see what you've observed, not the bots' hidden types, so it can't cheat for you.
|
|
70
|
+
|
|
71
|
+
Start `gutcheck` first (the MCP server talks to it on port 8777), then register the MCP server. For Claude Code:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
claude mcp add gutcheck -- gutcheck-mcp
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For Claude Desktop or any other client, add a stdio server whose command is `gutcheck-mcp`.
|
|
78
|
+
|
|
79
|
+
## Where your data lives
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
~/.gutcheck/
|
|
83
|
+
career.json bankroll + lifetime stats
|
|
84
|
+
session.json the table you're sitting at
|
|
85
|
+
sessions/<id>.json session reports
|
|
86
|
+
calibration.json your read accuracy over time
|
|
87
|
+
history.db every hand you've played
|
|
88
|
+
coach.db the local coach channel
|
|
89
|
+
settings.json your settings
|
|
90
|
+
secrets.json API keys, if you add any (0600)
|
|
91
|
+
leaks.db leak memory, with the [anneal] extra
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Set `GUTCHECK_DATA_DIR` to put it somewhere else. `gutcheck --reset` starts you fresh: it deletes the hand history, session reports and the current table, and keeps a one-step backup of your bankroll, read accuracy and leak memory in case you didn't mean it.
|
|
95
|
+
|
|
96
|
+
## Flags
|
|
97
|
+
|
|
98
|
+
| Flag | Does |
|
|
99
|
+
|---|---|
|
|
100
|
+
| `--port 8777` | change the port |
|
|
101
|
+
| `--reset` | fresh start (deletes hand history; bankroll, reads and leaks are backed up first) |
|
|
102
|
+
| `--no-browser` | don't open a browser |
|
|
103
|
+
| `--no-coach` | don't run the built-in coach (if you run your own worker) |
|
|
104
|
+
| `--host <ip>` | bind a Tailscale IP to play from another device |
|
|
105
|
+
|
|
106
|
+
## Playing from a tablet
|
|
107
|
+
|
|
108
|
+
The server is single-player with no auth, so where it binds *is* the security boundary. It only allows loopback or a Tailscale address (`100.64.0.0/10`); wildcard, public and LAN binds are refused, with anti-CSRF and DNS-rebinding guards on top.
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
gutcheck --host <this machine's tailscale IP> --no-browser
|
|
112
|
+
# then open http://<that IP>:8777 on the iPad
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Don't put it on the open internet. It has no login, by design.
|
|
116
|
+
|
|
117
|
+
## Development
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
git clone https://github.com/phillipclapham/gutcheck
|
|
121
|
+
cd gutcheck
|
|
122
|
+
python3 -m venv venv && source venv/bin/activate
|
|
123
|
+
pip install -e ".[mcp,anneal]" pytest
|
|
124
|
+
GUTCHECK_DATA_DIR="$(mktemp -d)" python -m pytest -q
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Always point tests and smoke runs at a throwaway data dir, or they'll play hands against your real bankroll.
|
|
128
|
+
|
|
129
|
+
The package is `gutcheck/`: `server.py` (HTTP), `game.py` (the table), `engine.py` and `archetypes.py` (the hand engine and bot styles), `equity.py` and `ranges.py` (the equity oracle and the villain range model), `coach*.py` (the coach channel and workers), `leakstore.py` (leak memory), `mcp_server.py`, and `static/index.html` with `doctrine.md` (the table UI and the coaching doctrine). The doctrine is a plain markdown file, so you can read exactly what the coach is told.
|
|
130
|
+
|
|
131
|
+
Python 3.11+. The only required dependency is [pokerkit](https://pypi.org/project/pokerkit/).
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""gutcheck — a felt-sense poker reading-trainer.
|
|
2
|
+
|
|
3
|
+
The importable package: the game engine, the local web table server, the MCP coach
|
|
4
|
+
proxy, and the operator-owned graduating-leak store. Submodules are imported lazily by
|
|
5
|
+
their consumers (``from gutcheck import server`` / ``from gutcheck.seam import Seam``);
|
|
6
|
+
this ``__init__`` deliberately imports nothing so a plain ``import gutcheck`` has no
|
|
7
|
+
side effects and can't trip the server→coach_daemon→… chain at package-load time.
|
|
8
|
+
|
|
9
|
+
All runtime state lives OUTSIDE the package, under ``~/.gutcheck`` (override with
|
|
10
|
+
``GUTCHECK_DATA_DIR``) — see ``gutcheck.paths`` — so a read-only wheel install is safe.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "0.1.0"
|