proteinground 0.2.1__tar.gz → 0.3.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.
- {proteinground-0.2.1 → proteinground-0.3.0}/CHANGELOG.md +17 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/PKG-INFO +74 -26
- {proteinground-0.2.1 → proteinground-0.3.0}/README.md +69 -25
- {proteinground-0.2.1 → proteinground-0.3.0}/pyproject.toml +3 -1
- proteinground-0.3.0/src/proteinground/__init__.py +5 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/alphafold.py +132 -5
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/agent.py +28 -5
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/cli.py +12 -4
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/cost.py +8 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/goldcheck.py +41 -1
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/grade.py +46 -2
- proteinground-0.3.0/src/proteinground/eval/naive.py +263 -0
- proteinground-0.3.0/src/proteinground/eval/providers.py +367 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/schema.py +1 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/stub.py +16 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/fetch.py +33 -8
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/models.py +119 -2
- proteinground-0.3.0/src/proteinground/pdb.py +1273 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/server.py +90 -7
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/tools.py +132 -14
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/version.py +1 -1
- proteinground-0.2.1/src/proteinground/__init__.py +0 -3
- proteinground-0.2.1/src/proteinground/pdb.py +0 -616
- {proteinground-0.2.1 → proteinground-0.3.0}/.gitignore +0 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/LICENSE +0 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/__init__.py +0 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/eval/report.py +0 -0
- {proteinground-0.2.1 → proteinground-0.3.0}/src/proteinground/uniprot.py +0 -0
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
Fixes
|
|
6
|
+
- `map_structure_residue` now checks `rcsb_entity_polymer_type` and parses exact mmCIF monomers (`pdbx_seq_one_letter_code`): DNA and RNA chains are no longer mislabelled as amino acids (e.g. DNA guanine `DG` in `4OO8` chain C is reported as `DG` with `polymer_type: "DNA"`, never `"Gly"`, and RNA `U` is never `"Sec"`).
|
|
7
|
+
- Chemically modified and non-standard protein residues (e.g. phosphothreonine `TPO`, phosphoserine `SEP`, phosphotyrosine `PTR`, selenomethionine `MSE`) are surfaced via `modified_residue`, `structure_residue_three_letter` and an explicit note instead of being silently flattened to unmodified canonical residues.
|
|
8
|
+
- `get_structure` now includes `branched_entities` (N-linked oligosaccharide glycans such as `NAG-(1-4)-NAG` on `6VXX`) and `assemblies` (biological assembly oligomeric state, global stoichiometry and symmetry, with a warning note when biological assembly 1 differs from the asymmetric unit, as on `1IEP`, `2HYY` and `1HHO`).
|
|
9
|
+
- PDB lookups accept extended wwPDB IDs (`pdb_00004hhb` as well as `4HHB`).
|
|
10
|
+
- `Fetcher` caches HTTP 204 responses (RCSB Search zero-match replies), guards mutable tracking lists with a lock for concurrent MCP tool threads, and closes server-owned `httpx.Client` pools cleanly via MCP server lifespan.
|
|
11
|
+
|
|
12
|
+
New
|
|
13
|
+
- `map_structure_residues`: batch-map up to 50 residues at once between a PDB chain and UniProtKB (by author residue list, UniProt position list, or contiguous UniProt range), returning chain coverage once and deduplicating UniProt fetches.
|
|
14
|
+
- `search_structures`: live RCSB PDB Search API v2 (weekly current, avoiding UniProtKB `xref_pdb` release lag) with filters for `uniprot_accession`, `ligand_id`, `method`, `max_resolution`, `taxon_id` and text `query`, hydrated in one batch GraphQL call.
|
|
15
|
+
- `get_alphafold_summary(pair_start=..., pair_end=...)`: computes symmetric inter-region Predicted Aligned Error (`domain_pair_pae`: mean, median, min, max, `< 5 Å` and `< 10 Å` shares) so agents do not mistake high per-domain pLDDT for confident relative domain placement.
|
|
16
|
+
- Multi-provider eval runner (`--provider auto|anthropic|openai|gemini`) with optional `eval-all` dependencies and pricing rows for OpenAI and Gemini models.
|
|
17
|
+
- Raw-API baseline arm (`--arm naive_tools`) over the exact same public endpoints and offline snapshot, so evals can ablate `proteinground`'s tool abstractions against thin JSON passthroughs.
|
|
18
|
+
- Eval v3 (`evals/v3/`): 60 multi-hop structural-biology and claim-auditing questions (45 answerable, 15 planted false premises) covering live ligand co-crystal search, ASU-vs-biological-assembly mismatches, modified residues (`TPO`/`SEP`/`PTR`), branched glycans, DNA/RNA chain traps, batch pocket/mutation/unmodelled audits, and AlphaFold inter-domain PAE, with preregistration (`evals/v3/PREREG.md`), frozen snapshot (`evals/v3/snapshot/`), `stoichiometry` grader, and 60/60 `check-gold` verification. The v1 and v2 snapshots and published results remain untouched.
|
|
19
|
+
|
|
3
20
|
## 0.2.1
|
|
4
21
|
|
|
5
22
|
Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: proteinground
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Cited protein facts for AI agents: an MCP server over UniProt, RCSB PDB and AlphaFold DB, with an eval that plants false-premise questions.
|
|
5
5
|
Project-URL: Homepage, https://github.com/shnksi/protein-ground
|
|
6
6
|
Project-URL: Repository, https://github.com/shnksi/protein-ground
|
|
@@ -23,6 +23,10 @@ Requires-Dist: mcp<3,>=2.3
|
|
|
23
23
|
Requires-Dist: pydantic>=2.7
|
|
24
24
|
Provides-Extra: eval
|
|
25
25
|
Requires-Dist: anthropic<3,>=2.12; extra == 'eval'
|
|
26
|
+
Provides-Extra: eval-all
|
|
27
|
+
Requires-Dist: anthropic<3,>=2.12; extra == 'eval-all'
|
|
28
|
+
Requires-Dist: google-genai>=1.0; extra == 'eval-all'
|
|
29
|
+
Requires-Dist: openai>=1.60; extra == 'eval-all'
|
|
26
30
|
Description-Content-Type: text/markdown
|
|
27
31
|
|
|
28
32
|
# proteinground
|
|
@@ -53,10 +57,10 @@ Language models answer protein questions fluently, and often wrongly: a residue
|
|
|
53
57
|
## What to use it for
|
|
54
58
|
|
|
55
59
|
- **Check a mutation before you write it down.** `get_variants("P01116", 12)` returns the wild-type residue (Gly) and the curated changes at that position (G12C, G12D, G12V), so "KRAS G12C" is confirmed against the sequence, not recalled.
|
|
56
|
-
- **Translate residue numbers between a structure and the sequence.** Papers, viewers and PDB files use the authors' numbering, which often differs from UniProtKB: haemoglobin beta's Glu6 is position 7, thrombin's catalytic Ser195 is position 568. `map_structure_residue`
|
|
57
|
-
- **Verify a structure citation.** `get_structure` gives the method, resolution,
|
|
58
|
-
- **Decide whether an AlphaFold model can be trusted
|
|
59
|
-
- **
|
|
60
|
+
- **Translate residue numbers between a structure and the sequence (single or batch).** Papers, viewers and PDB files use the authors' numbering, which often differs from UniProtKB: haemoglobin beta's Glu6 is position 7, thrombin's catalytic Ser195 is position 568. `map_structure_residue` and `map_structure_residues` (up to 50 residues or a UniProt range at once) convert in either direction, handle insertion codes (`60A`), surface chemically modified residues (`TPO`, `SEP`, `PTR`, `MSE`), distinguish DNA/RNA chains from proteins, and flag engineered mutations or unmodelled loops with no coordinates (like BRAF V600E in `3OG7` chain A).
|
|
61
|
+
- **Verify a structure citation — including biological assembly and glycans.** `get_structure` gives the method, resolution, R-factors, each polymer's organism and UniProtKB accession, ligands separated from buffer additives and metal ions, branched oligosaccharide glycans (`branched_entities`), and biological assemblies (`assemblies`), warning when the asymmetric unit chain count differs from the biological assembly (`1IEP` has 2 chains in the ASU but is a monomer).
|
|
62
|
+
- **Decide whether an AlphaFold model can be trusted locally *and* across domains.** `get_alphafold_summary("P04637", start=100, end=290, pair_start=325, pair_end=355)` returns regional pLDDT (`95.6`) alongside inter-domain Predicted Aligned Error (`mean_pae: 20.42 Å`, `0% < 5 Å`), so high per-domain pLDDT is not mistaken for confident inter-domain geometry.
|
|
63
|
+
- **Find current PDB structures by target, drug ligand, method or resolution.** `search_structures` queries RCSB PDB Search API v2 directly (updated weekly, avoiding UniProtKB `xref_pdb` release lag) by `uniprot_accession`, `ligand_id` (e.g. `STI` for imatinib), `method`, `max_resolution`, `taxon_id` or text `query`; `list_structures` provides fast UniProtKB cross-reference listing.
|
|
60
64
|
|
|
61
65
|
## The tools
|
|
62
66
|
|
|
@@ -67,10 +71,12 @@ Language models answer protein questions fluently, and often wrongly: a residue
|
|
|
67
71
|
| `get_sequence_window` | UniProtKB | up to 50 residues, one numbered entry per position; accepts an isoform ID such as `P04637-2` |
|
|
68
72
|
| `get_features` | UniProtKB | domains, signal peptides, active and binding sites, disulfides, with positions; filter by type or by residue position |
|
|
69
73
|
| `get_variants` | UniProtKB | the wild-type residue and the curated natural variants and mutagenesis records at a position or short range |
|
|
70
|
-
| `list_structures` | UniProtKB → PDB | cross-referenced structures, best resolution first |
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
73
|
-
| `
|
|
74
|
+
| `list_structures` | UniProtKB → PDB | cross-referenced structures from UniProtKB, best resolution first |
|
|
75
|
+
| `search_structures` | RCSB PDB | live weekly-current PDB search by UniProt accession, bound ligand ID, method, max resolution, organism or text |
|
|
76
|
+
| `get_structure` | RCSB PDB | method, resolution, R-free/R-work, dates, polymers with chains/organism/UniProt, ligands, branched glycans, and biological assemblies |
|
|
77
|
+
| `map_structure_residue` | RCSB PDB + UniProtKB | a residue's number in a chain ↔ its UniProtKB position, polymer type, chemical modifications (`TPO`/`SEP`/`MSE`), canonical agreement and coordinates |
|
|
78
|
+
| `map_structure_residues` | RCSB PDB + UniProtKB | batch translation of up to 50 author residues, UniProt positions, or a contiguous UniProt range in one call |
|
|
79
|
+
| `get_alphafold_summary` | AlphaFold DB | mean pLDDT, confidence band shares, long low-confidence regions, regional pLDDT, and inter-region PAE (`pair_start`/`pair_end`) |
|
|
74
80
|
|
|
75
81
|
Design choices, each aimed at a known way agents go wrong:
|
|
76
82
|
|
|
@@ -88,16 +94,16 @@ The tool surface is defined once (`src/proteinground/tools.py`) and shared by th
|
|
|
88
94
|
|
|
89
95
|
## Install
|
|
90
96
|
|
|
97
|
+
Run directly from PyPI with `uvx` (pure-Python wheel, Python 3.11+):
|
|
98
|
+
|
|
91
99
|
```bash
|
|
92
|
-
|
|
93
|
-
uv sync
|
|
94
|
-
uv run proteinground-mcp # MCP over stdio
|
|
100
|
+
uvx proteinground # MCP over stdio
|
|
95
101
|
```
|
|
96
102
|
|
|
97
103
|
Add it to Claude Code:
|
|
98
104
|
|
|
99
105
|
```bash
|
|
100
|
-
claude mcp add proteinground -- uvx
|
|
106
|
+
claude mcp add proteinground -- uvx proteinground
|
|
101
107
|
```
|
|
102
108
|
|
|
103
109
|
Or to an MCP client config:
|
|
@@ -107,14 +113,22 @@ Or to an MCP client config:
|
|
|
107
113
|
"mcpServers": {
|
|
108
114
|
"proteinground": {
|
|
109
115
|
"command": "uvx",
|
|
110
|
-
"args": ["
|
|
116
|
+
"args": ["proteinground"],
|
|
111
117
|
"env": { "PROTEINGROUND_CACHE_DIR": "~/.cache/proteinground" }
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
121
|
```
|
|
116
122
|
|
|
117
|
-
|
|
123
|
+
Or install from source for development or running the eval:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
git clone https://github.com/shnksi/protein-ground && cd protein-ground
|
|
127
|
+
uv sync
|
|
128
|
+
uv run proteinground # MCP over stdio (proteinground-mcp also works)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
`PROTEINGROUND_CACHE_DIR` (supports `~`) keeps a replayable copy of every response. `PROTEINGROUND_MODE` is `cache-first` (default), `live`, `replay` or `offline`.
|
|
118
132
|
|
|
119
133
|
## The eval
|
|
120
134
|
|
|
@@ -187,11 +201,37 @@ Closed book caught more planted premises without the warning (60.0% against 48.6
|
|
|
187
201
|
|
|
188
202
|
Nine of the ten preregistered bars passed. The one that missed is run-to-run spread: closed book under the unprimed prompt ranged over 5.7 points of answerable accuracy (42, 46 and 50 of 140) against a bar of 5. As preregistered, differences smaller than that cannot be read from these runs. The gaps between the arms are more than ten times larger.
|
|
189
203
|
|
|
204
|
+
### Eval v3: multi-hop structural biology & tool-surface ablation
|
|
205
|
+
|
|
206
|
+
v1 and v2 compared `proteinground` against closed-book memory on 1-hop lookups and saturated at 100% for the tools arm. Eval v3 ([`evals/v3/PREREG.md`](evals/v3/PREREG.md), frozen before any paid run) tests two harder questions across **60 items** (45 answerable, 15 planted structural traps; 60/60 `check-gold` verified offline against `evals/v3/snapshot/`):
|
|
207
|
+
|
|
208
|
+
- **Does `proteinground`'s tool surface beat a thin raw-API wrapper over the exact same databases?** `--arm naive_tools` exposes raw JSON passthroughs (`uniprot_fetch`, `uniprot_search`, `rcsb_fetch_entry`, `rcsb_graphql`, `rcsb_search`, `alphafold_fetch`, `fetch_json_url`) backed by the same `Fetcher` and snapshot, isolating tool design from data access.
|
|
209
|
+
- **Do the tools hold up on multi-hop workflows and structural traps?** Gene + taxon → live RCSB drug-bound search (`search_structures`), UniProt active-site/PTM → PDB author numbering, UniProt domains → AlphaFold inter-domain PAE (`get_alphafold_summary`), DNA/RNA chains queried as proteins (`4OO8`, `1BNA`), phosphorylated residues hidden by canonicalized sequences (`1ATP` `TPO`/`SEP`, `1QMZ` `TPO`, `1IR3` `PTR`), asymmetric units vs biological assemblies (`1IEP`, `2HYY`, `1HHO`, `6LU7`), branched glycans (`6VXX`, `1HZH`, `6VYB`), batch mutation/unmodelled-loop audits (`3OG7` V600E, `6OIM` G12C, `4I22` T790M), absent drug complexes (HTTP 204), and high-pLDDT domains with unpredicted relative placement (`PAE > 20 Å`).
|
|
210
|
+
|
|
211
|
+
Measured 3 Dec 2026 on v0.3.0 (`commit 48f619b`), unprimed prompt, 60 items per arm across **Claude Opus 5.5** and **Claude Haiku 5.5** (360 total episodes, `$5.15` total spend). Full write-up, hand-audit and episode transcripts: [`evals/v3/results/2026-12-03-opus-haiku/`](evals/v3/results/2026-12-03-opus-haiku/RESULTS.md).
|
|
212
|
+
|
|
213
|
+
| Model | Arm (unprimed) | Answerable (45) | Traps caught (15) | False alarms | Grounded | Tool calls / q | Latency / q | Cost (60 q) |
|
|
214
|
+
|---|---|---:|---:|---:|---:|---:|---:|---:|
|
|
215
|
+
| Claude Opus 5.5 | **tools (`proteinground`)** | **100.0%** (45/45) | **100.0%** (15/15) | 0.0% | 96.7% | **1.33** | **6.1s** | **$1.05** |
|
|
216
|
+
| Claude Opus 5.5 | `naive_tools` (raw APIs) | 91.1% (41/45) | 100.0% (15/15) | 0.0% | 98.3% | 1.93 | 10.4s | $2.99 |
|
|
217
|
+
| Claude Opus 5.5 | `closed_book` | 80.0% (36/45) | 73.3% (11/15) | 0.0% | – | 0.00 | 7.8s | $0.81 |
|
|
218
|
+
| Claude Haiku 5.5 | **tools (`proteinground`)** | **97.8%** (44/45) | **100.0%** (15/15) | 2.2% | 95.0% | **1.67** | **5.7s** | **$0.039** |
|
|
219
|
+
| Claude Haiku 5.5 | `naive_tools` (raw APIs) | 75.6% (34/45) | 100.0% (15/15) | 13.3% | 95.0% | 4.05 | 15.8s | $0.241 |
|
|
220
|
+
| Claude Haiku 5.5 | `closed_book` | 31.1% (14/45) | 66.7% (10/15) | 33.3% | – | 0.00 | 5.3s | $0.026 |
|
|
221
|
+
|
|
222
|
+
Two findings stand out:
|
|
223
|
+
|
|
224
|
+
- **Tool design beats model scale.** Haiku 5.5 + `proteinground` (`$0.039`, `5.7s/q`) scored **97.8%**, beating Opus 5.5 on raw APIs (`91.1%`, `$2.99`, `10.4s/q`) at **76× lower cost** and beating Opus 5.5 closed book (`80.0%`, `$0.81`) by **+17.8 points** (exact paired `p = 0.0078`).
|
|
225
|
+
- **On Haiku 5.5, all 6 preregistered bars pass** (`+22.2 pp` over raw APIs, `p = 0.002`; `+66.7 pp` over closed book, `p = 1.86e-09`; `6.1×` cheaper and `2.8×` faster than raw APIs; `6×` fewer false alarms). **On Opus 5.5, 4 of 6 bars pass and 2 miss**: Opus writes raw GraphQL well enough to reach `91.1%` (narrowing the gap to `+8.9 pp`, `p = 0.125`, against the `+15 pp` bar — with all 4 misses in `multihop_af_pae`, `0/4` vs `4/4`, at `2.84×` the cost) and recalls `80%` of these well-known clinical proteins closed book (`+20.0 pp`, `p = 0.0039`, against the `+45 pp` bar — while still accepting `4/15` traps including `1IEP`/`2HYY` ASU-vs-assembly and `3OG7` unmodelled V600E).
|
|
226
|
+
|
|
227
|
+
Multi-provider runner: `--provider auto|anthropic|openai|gemini` runs any arm across Anthropic, OpenAI, or Google Gemini models (`uv sync --extra eval-all`).
|
|
228
|
+
|
|
190
229
|
### Run it
|
|
191
230
|
|
|
192
231
|
```bash
|
|
193
|
-
uv sync --extra eval
|
|
232
|
+
uv sync --extra eval # or --extra eval-all for OpenAI & Gemini
|
|
194
233
|
uv run proteinground-eval check-gold
|
|
234
|
+
uv run proteinground-eval check-gold --questions evals/v3/questions.jsonl --snapshot evals/v3/snapshot
|
|
195
235
|
uv run proteinground-eval run --arm tools --stub --out runs/dry-run # free
|
|
196
236
|
|
|
197
237
|
export ANTHROPIC_API_KEY=...
|
|
@@ -199,33 +239,41 @@ uv run proteinground-eval run --arm tools --model claude-opus-5-5 --cap-usd 12 -
|
|
|
199
239
|
uv run proteinground-eval run --arm closed_book --model claude-opus-5-5 --cap-usd 3 --out runs/opus-closed
|
|
200
240
|
uv run proteinground-eval report runs/opus-tools runs/opus-closed
|
|
201
241
|
|
|
202
|
-
# eval v2:
|
|
242
|
+
# eval v2: long-tail proteins, unprimed prompt
|
|
203
243
|
uv run proteinground-eval run --arm tools --prompt unprimed --questions evals/v2/questions.jsonl --snapshot evals/v2/snapshot --cap-usd 5 --max-miss-episodes 17 --out runs/v2/tools-unprimed-1
|
|
244
|
+
|
|
245
|
+
# eval v3: ablate proteinground against the raw-API baseline (any provider)
|
|
246
|
+
uv run proteinground-eval run --arm tools --prompt unprimed --model claude-opus-5-5 --questions evals/v3/questions.jsonl --snapshot evals/v3/snapshot --cap-usd 5 --out runs/v3/tools
|
|
247
|
+
uv run proteinground-eval run --arm naive_tools --prompt unprimed --model claude-opus-5-5 --questions evals/v3/questions.jsonl --snapshot evals/v3/snapshot --cap-usd 5 --out runs/v3/naive
|
|
248
|
+
uv run proteinground-eval report runs/v3/tools runs/v3/naive
|
|
204
249
|
```
|
|
205
250
|
|
|
206
|
-
Runs resume where they stopped. `--ids` runs chosen items, `--no-fallbacks` measures the named model only, and `--strict-offline` fails any tool call that misses the snapshot. Rebuild
|
|
251
|
+
Runs resume where they stopped. `--ids` runs chosen items, `--provider` selects `anthropic`, `openai` or `gemini` (auto-inferred from `--model` by default), `--no-fallbacks` measures the named model only, and `--strict-offline` fails any tool call that misses the snapshot. Rebuild v1 with fresh residue positions with `uv run python evals/build_questions.py --seed 8 --refresh`.
|
|
207
252
|
|
|
208
253
|
## Development
|
|
209
254
|
|
|
210
255
|
```bash
|
|
211
256
|
uv sync --extra eval
|
|
212
|
-
uv run pytest #
|
|
257
|
+
uv run pytest # 215 tests, offline against the v1/v2/v3 snapshots
|
|
213
258
|
uv run mypy # strict
|
|
214
259
|
uv run ruff check . && uv run ruff format --check .
|
|
215
260
|
```
|
|
216
261
|
|
|
217
262
|
## Limits
|
|
218
263
|
|
|
219
|
-
- v1 is 68 items, and each arm ran once. One answerable item is 1.8 points; its intervals are wide for that reason, so treat v1 differences under about 10 points as noise. v2 is 175 items run three times; its closed-book runs ranged over as much as 5.7 points, and smaller differences cannot be read.
|
|
220
|
-
- The primed prompt tells the model that some questions hide a false premise and, in the tools arm, to look every value up. v1's caught and grounded rates therefore measure behaviour when asked to be careful, not unprompted. v2's unprimed prompt drops both, but the answer form still has a flag and the tool descriptions still say what `found: false` means: "unprimed" means no warning from the prompt, not no hint at all.
|
|
264
|
+
- v1 is 68 items, and each arm ran once. One answerable item is 1.8 points; its intervals are wide for that reason, so treat v1 differences under about 10 points as noise. v2 is 175 items run three times; its closed-book runs ranged over as much as 5.7 points, and smaller differences cannot be read. v3 is 60 items run once per arm across two models (Claude Opus 5.5 and Claude Haiku 5.5); OpenAI and Gemini arms are supported by the harness but not yet published.
|
|
265
|
+
- The primed prompt tells the model that some questions hide a false premise and, in the tools arm, to look every value up. v1's caught and grounded rates therefore measure behaviour when asked to be careful, not unprompted. v2 and v3's unprimed prompt drops both, but the answer form still has a flag and the tool descriptions still say what `found: false` means: "unprimed" means no warning from the prompt, not no hint at all.
|
|
221
266
|
- The grader only checks that the premise was rejected. Every planted item's explanation in both published runs was read by hand; the v2 results page has the count.
|
|
222
|
-
- v1 covers the seven v0.1.0 tools
|
|
267
|
+
- v1 covers the seven v0.1.0 tools; `get_variants` and `map_structure_residue` were first run by a model in v2; `search_structures`, `map_structure_residues`, branched glycans, assemblies, modified residues, DNA/RNA guards and AlphaFold PAE are covered by v3 and the offline test suite.
|
|
223
268
|
- v2's proteins are one seeded draw, even over sequence lengths and not over entries, with one stratum (peptidase S1) chosen for its insertion codes. The results describe that draw, not UniProtKB as a whole.
|
|
224
269
|
- `get_variants` reads UniProtKB's curated variants, which are a subset of what ClinVar and gnomAD hold. An empty result is reported as "none annotated", never as "does not occur".
|
|
225
|
-
- Residue mapping uses the alignment RCSB PDB publishes for each entity. A chain with no UniProtKB alignment (many antibodies, designed proteins) maps to nothing, and says so. Feature annotations are canonical-sequence only: an isoform ID works for sequence windows, not for features or variants.
|
|
270
|
+
- Residue mapping uses the alignment RCSB PDB publishes for each entity. A chain with no UniProtKB alignment (many antibodies, designed proteins, nucleic acids) maps to nothing, and says so. Feature annotations are canonical-sequence only: an isoform ID works for sequence windows, not for features or variants.
|
|
271
|
+
- `proteinground` is a read-only database-grounding layer, not a 3D coordinate/geometry engine: it does not compute atomic distances, binding-pocket contacts, H-bonds, SASA or RMSD.
|
|
226
272
|
- The questions are public, so later models may have trained on them. Rebuild with a new seed before reusing the numbers.
|
|
227
|
-
- Live mode drifts: new PDB entries change "best resolution", and the two unassigned PDB IDs may be assigned one day. The
|
|
228
|
-
-
|
|
229
|
-
- Data licences: UniProtKB and AlphaFold DB under CC BY 4.0, RCSB PDB under CC0 (see `evals/snapshot/README.md`).
|
|
273
|
+
- Live mode drifts: new PDB entries change "best resolution", and the two unassigned PDB IDs may be assigned one day. The snapshots keep them fixed.
|
|
274
|
+
- v1 and v2 are saturated for a tool-using agent (100% of answerable items), and v1 is mostly memorisable for closed-book Opus 5.5 (78%). Eval v3 adds multi-hop queries, structural traps, and the `naive_tools` baseline specifically to separate tool-surface design from raw API access.
|
|
275
|
+
- Data licences: UniProtKB and AlphaFold DB under CC BY 4.0, RCSB PDB under CC0 (see `evals/snapshot/README.md`, `evals/v2/snapshot/README.md` and `evals/v3/snapshot/README.md`).
|
|
276
|
+
|
|
277
|
+
Sibling project for Chai-1 (`chai-lab`) pre-flight validation and output auditing: [chai-ground](https://github.com/shnksi/chai-ground).
|
|
230
278
|
|
|
231
279
|
Built with Claude Code. MIT licence.
|
|
@@ -26,10 +26,10 @@ Language models answer protein questions fluently, and often wrongly: a residue
|
|
|
26
26
|
## What to use it for
|
|
27
27
|
|
|
28
28
|
- **Check a mutation before you write it down.** `get_variants("P01116", 12)` returns the wild-type residue (Gly) and the curated changes at that position (G12C, G12D, G12V), so "KRAS G12C" is confirmed against the sequence, not recalled.
|
|
29
|
-
- **Translate residue numbers between a structure and the sequence.** Papers, viewers and PDB files use the authors' numbering, which often differs from UniProtKB: haemoglobin beta's Glu6 is position 7, thrombin's catalytic Ser195 is position 568. `map_structure_residue`
|
|
30
|
-
- **Verify a structure citation.** `get_structure` gives the method, resolution,
|
|
31
|
-
- **Decide whether an AlphaFold model can be trusted
|
|
32
|
-
- **
|
|
29
|
+
- **Translate residue numbers between a structure and the sequence (single or batch).** Papers, viewers and PDB files use the authors' numbering, which often differs from UniProtKB: haemoglobin beta's Glu6 is position 7, thrombin's catalytic Ser195 is position 568. `map_structure_residue` and `map_structure_residues` (up to 50 residues or a UniProt range at once) convert in either direction, handle insertion codes (`60A`), surface chemically modified residues (`TPO`, `SEP`, `PTR`, `MSE`), distinguish DNA/RNA chains from proteins, and flag engineered mutations or unmodelled loops with no coordinates (like BRAF V600E in `3OG7` chain A).
|
|
30
|
+
- **Verify a structure citation — including biological assembly and glycans.** `get_structure` gives the method, resolution, R-factors, each polymer's organism and UniProtKB accession, ligands separated from buffer additives and metal ions, branched oligosaccharide glycans (`branched_entities`), and biological assemblies (`assemblies`), warning when the asymmetric unit chain count differs from the biological assembly (`1IEP` has 2 chains in the ASU but is a monomer).
|
|
31
|
+
- **Decide whether an AlphaFold model can be trusted locally *and* across domains.** `get_alphafold_summary("P04637", start=100, end=290, pair_start=325, pair_end=355)` returns regional pLDDT (`95.6`) alongside inter-domain Predicted Aligned Error (`mean_pae: 20.42 Å`, `0% < 5 Å`), so high per-domain pLDDT is not mistaken for confident inter-domain geometry.
|
|
32
|
+
- **Find current PDB structures by target, drug ligand, method or resolution.** `search_structures` queries RCSB PDB Search API v2 directly (updated weekly, avoiding UniProtKB `xref_pdb` release lag) by `uniprot_accession`, `ligand_id` (e.g. `STI` for imatinib), `method`, `max_resolution`, `taxon_id` or text `query`; `list_structures` provides fast UniProtKB cross-reference listing.
|
|
33
33
|
|
|
34
34
|
## The tools
|
|
35
35
|
|
|
@@ -40,10 +40,12 @@ Language models answer protein questions fluently, and often wrongly: a residue
|
|
|
40
40
|
| `get_sequence_window` | UniProtKB | up to 50 residues, one numbered entry per position; accepts an isoform ID such as `P04637-2` |
|
|
41
41
|
| `get_features` | UniProtKB | domains, signal peptides, active and binding sites, disulfides, with positions; filter by type or by residue position |
|
|
42
42
|
| `get_variants` | UniProtKB | the wild-type residue and the curated natural variants and mutagenesis records at a position or short range |
|
|
43
|
-
| `list_structures` | UniProtKB → PDB | cross-referenced structures, best resolution first |
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
43
|
+
| `list_structures` | UniProtKB → PDB | cross-referenced structures from UniProtKB, best resolution first |
|
|
44
|
+
| `search_structures` | RCSB PDB | live weekly-current PDB search by UniProt accession, bound ligand ID, method, max resolution, organism or text |
|
|
45
|
+
| `get_structure` | RCSB PDB | method, resolution, R-free/R-work, dates, polymers with chains/organism/UniProt, ligands, branched glycans, and biological assemblies |
|
|
46
|
+
| `map_structure_residue` | RCSB PDB + UniProtKB | a residue's number in a chain ↔ its UniProtKB position, polymer type, chemical modifications (`TPO`/`SEP`/`MSE`), canonical agreement and coordinates |
|
|
47
|
+
| `map_structure_residues` | RCSB PDB + UniProtKB | batch translation of up to 50 author residues, UniProt positions, or a contiguous UniProt range in one call |
|
|
48
|
+
| `get_alphafold_summary` | AlphaFold DB | mean pLDDT, confidence band shares, long low-confidence regions, regional pLDDT, and inter-region PAE (`pair_start`/`pair_end`) |
|
|
47
49
|
|
|
48
50
|
Design choices, each aimed at a known way agents go wrong:
|
|
49
51
|
|
|
@@ -61,16 +63,16 @@ The tool surface is defined once (`src/proteinground/tools.py`) and shared by th
|
|
|
61
63
|
|
|
62
64
|
## Install
|
|
63
65
|
|
|
66
|
+
Run directly from PyPI with `uvx` (pure-Python wheel, Python 3.11+):
|
|
67
|
+
|
|
64
68
|
```bash
|
|
65
|
-
|
|
66
|
-
uv sync
|
|
67
|
-
uv run proteinground-mcp # MCP over stdio
|
|
69
|
+
uvx proteinground # MCP over stdio
|
|
68
70
|
```
|
|
69
71
|
|
|
70
72
|
Add it to Claude Code:
|
|
71
73
|
|
|
72
74
|
```bash
|
|
73
|
-
claude mcp add proteinground -- uvx
|
|
75
|
+
claude mcp add proteinground -- uvx proteinground
|
|
74
76
|
```
|
|
75
77
|
|
|
76
78
|
Or to an MCP client config:
|
|
@@ -80,14 +82,22 @@ Or to an MCP client config:
|
|
|
80
82
|
"mcpServers": {
|
|
81
83
|
"proteinground": {
|
|
82
84
|
"command": "uvx",
|
|
83
|
-
"args": ["
|
|
85
|
+
"args": ["proteinground"],
|
|
84
86
|
"env": { "PROTEINGROUND_CACHE_DIR": "~/.cache/proteinground" }
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
```
|
|
89
91
|
|
|
90
|
-
|
|
92
|
+
Or install from source for development or running the eval:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
git clone https://github.com/shnksi/protein-ground && cd protein-ground
|
|
96
|
+
uv sync
|
|
97
|
+
uv run proteinground # MCP over stdio (proteinground-mcp also works)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`PROTEINGROUND_CACHE_DIR` (supports `~`) keeps a replayable copy of every response. `PROTEINGROUND_MODE` is `cache-first` (default), `live`, `replay` or `offline`.
|
|
91
101
|
|
|
92
102
|
## The eval
|
|
93
103
|
|
|
@@ -160,11 +170,37 @@ Closed book caught more planted premises without the warning (60.0% against 48.6
|
|
|
160
170
|
|
|
161
171
|
Nine of the ten preregistered bars passed. The one that missed is run-to-run spread: closed book under the unprimed prompt ranged over 5.7 points of answerable accuracy (42, 46 and 50 of 140) against a bar of 5. As preregistered, differences smaller than that cannot be read from these runs. The gaps between the arms are more than ten times larger.
|
|
162
172
|
|
|
173
|
+
### Eval v3: multi-hop structural biology & tool-surface ablation
|
|
174
|
+
|
|
175
|
+
v1 and v2 compared `proteinground` against closed-book memory on 1-hop lookups and saturated at 100% for the tools arm. Eval v3 ([`evals/v3/PREREG.md`](evals/v3/PREREG.md), frozen before any paid run) tests two harder questions across **60 items** (45 answerable, 15 planted structural traps; 60/60 `check-gold` verified offline against `evals/v3/snapshot/`):
|
|
176
|
+
|
|
177
|
+
- **Does `proteinground`'s tool surface beat a thin raw-API wrapper over the exact same databases?** `--arm naive_tools` exposes raw JSON passthroughs (`uniprot_fetch`, `uniprot_search`, `rcsb_fetch_entry`, `rcsb_graphql`, `rcsb_search`, `alphafold_fetch`, `fetch_json_url`) backed by the same `Fetcher` and snapshot, isolating tool design from data access.
|
|
178
|
+
- **Do the tools hold up on multi-hop workflows and structural traps?** Gene + taxon → live RCSB drug-bound search (`search_structures`), UniProt active-site/PTM → PDB author numbering, UniProt domains → AlphaFold inter-domain PAE (`get_alphafold_summary`), DNA/RNA chains queried as proteins (`4OO8`, `1BNA`), phosphorylated residues hidden by canonicalized sequences (`1ATP` `TPO`/`SEP`, `1QMZ` `TPO`, `1IR3` `PTR`), asymmetric units vs biological assemblies (`1IEP`, `2HYY`, `1HHO`, `6LU7`), branched glycans (`6VXX`, `1HZH`, `6VYB`), batch mutation/unmodelled-loop audits (`3OG7` V600E, `6OIM` G12C, `4I22` T790M), absent drug complexes (HTTP 204), and high-pLDDT domains with unpredicted relative placement (`PAE > 20 Å`).
|
|
179
|
+
|
|
180
|
+
Measured 3 Dec 2026 on v0.3.0 (`commit 48f619b`), unprimed prompt, 60 items per arm across **Claude Opus 5.5** and **Claude Haiku 5.5** (360 total episodes, `$5.15` total spend). Full write-up, hand-audit and episode transcripts: [`evals/v3/results/2026-12-03-opus-haiku/`](evals/v3/results/2026-12-03-opus-haiku/RESULTS.md).
|
|
181
|
+
|
|
182
|
+
| Model | Arm (unprimed) | Answerable (45) | Traps caught (15) | False alarms | Grounded | Tool calls / q | Latency / q | Cost (60 q) |
|
|
183
|
+
|---|---|---:|---:|---:|---:|---:|---:|---:|
|
|
184
|
+
| Claude Opus 5.5 | **tools (`proteinground`)** | **100.0%** (45/45) | **100.0%** (15/15) | 0.0% | 96.7% | **1.33** | **6.1s** | **$1.05** |
|
|
185
|
+
| Claude Opus 5.5 | `naive_tools` (raw APIs) | 91.1% (41/45) | 100.0% (15/15) | 0.0% | 98.3% | 1.93 | 10.4s | $2.99 |
|
|
186
|
+
| Claude Opus 5.5 | `closed_book` | 80.0% (36/45) | 73.3% (11/15) | 0.0% | – | 0.00 | 7.8s | $0.81 |
|
|
187
|
+
| Claude Haiku 5.5 | **tools (`proteinground`)** | **97.8%** (44/45) | **100.0%** (15/15) | 2.2% | 95.0% | **1.67** | **5.7s** | **$0.039** |
|
|
188
|
+
| Claude Haiku 5.5 | `naive_tools` (raw APIs) | 75.6% (34/45) | 100.0% (15/15) | 13.3% | 95.0% | 4.05 | 15.8s | $0.241 |
|
|
189
|
+
| Claude Haiku 5.5 | `closed_book` | 31.1% (14/45) | 66.7% (10/15) | 33.3% | – | 0.00 | 5.3s | $0.026 |
|
|
190
|
+
|
|
191
|
+
Two findings stand out:
|
|
192
|
+
|
|
193
|
+
- **Tool design beats model scale.** Haiku 5.5 + `proteinground` (`$0.039`, `5.7s/q`) scored **97.8%**, beating Opus 5.5 on raw APIs (`91.1%`, `$2.99`, `10.4s/q`) at **76× lower cost** and beating Opus 5.5 closed book (`80.0%`, `$0.81`) by **+17.8 points** (exact paired `p = 0.0078`).
|
|
194
|
+
- **On Haiku 5.5, all 6 preregistered bars pass** (`+22.2 pp` over raw APIs, `p = 0.002`; `+66.7 pp` over closed book, `p = 1.86e-09`; `6.1×` cheaper and `2.8×` faster than raw APIs; `6×` fewer false alarms). **On Opus 5.5, 4 of 6 bars pass and 2 miss**: Opus writes raw GraphQL well enough to reach `91.1%` (narrowing the gap to `+8.9 pp`, `p = 0.125`, against the `+15 pp` bar — with all 4 misses in `multihop_af_pae`, `0/4` vs `4/4`, at `2.84×` the cost) and recalls `80%` of these well-known clinical proteins closed book (`+20.0 pp`, `p = 0.0039`, against the `+45 pp` bar — while still accepting `4/15` traps including `1IEP`/`2HYY` ASU-vs-assembly and `3OG7` unmodelled V600E).
|
|
195
|
+
|
|
196
|
+
Multi-provider runner: `--provider auto|anthropic|openai|gemini` runs any arm across Anthropic, OpenAI, or Google Gemini models (`uv sync --extra eval-all`).
|
|
197
|
+
|
|
163
198
|
### Run it
|
|
164
199
|
|
|
165
200
|
```bash
|
|
166
|
-
uv sync --extra eval
|
|
201
|
+
uv sync --extra eval # or --extra eval-all for OpenAI & Gemini
|
|
167
202
|
uv run proteinground-eval check-gold
|
|
203
|
+
uv run proteinground-eval check-gold --questions evals/v3/questions.jsonl --snapshot evals/v3/snapshot
|
|
168
204
|
uv run proteinground-eval run --arm tools --stub --out runs/dry-run # free
|
|
169
205
|
|
|
170
206
|
export ANTHROPIC_API_KEY=...
|
|
@@ -172,33 +208,41 @@ uv run proteinground-eval run --arm tools --model claude-opus-5-5 --cap-usd 12 -
|
|
|
172
208
|
uv run proteinground-eval run --arm closed_book --model claude-opus-5-5 --cap-usd 3 --out runs/opus-closed
|
|
173
209
|
uv run proteinground-eval report runs/opus-tools runs/opus-closed
|
|
174
210
|
|
|
175
|
-
# eval v2:
|
|
211
|
+
# eval v2: long-tail proteins, unprimed prompt
|
|
176
212
|
uv run proteinground-eval run --arm tools --prompt unprimed --questions evals/v2/questions.jsonl --snapshot evals/v2/snapshot --cap-usd 5 --max-miss-episodes 17 --out runs/v2/tools-unprimed-1
|
|
213
|
+
|
|
214
|
+
# eval v3: ablate proteinground against the raw-API baseline (any provider)
|
|
215
|
+
uv run proteinground-eval run --arm tools --prompt unprimed --model claude-opus-5-5 --questions evals/v3/questions.jsonl --snapshot evals/v3/snapshot --cap-usd 5 --out runs/v3/tools
|
|
216
|
+
uv run proteinground-eval run --arm naive_tools --prompt unprimed --model claude-opus-5-5 --questions evals/v3/questions.jsonl --snapshot evals/v3/snapshot --cap-usd 5 --out runs/v3/naive
|
|
217
|
+
uv run proteinground-eval report runs/v3/tools runs/v3/naive
|
|
177
218
|
```
|
|
178
219
|
|
|
179
|
-
Runs resume where they stopped. `--ids` runs chosen items, `--no-fallbacks` measures the named model only, and `--strict-offline` fails any tool call that misses the snapshot. Rebuild
|
|
220
|
+
Runs resume where they stopped. `--ids` runs chosen items, `--provider` selects `anthropic`, `openai` or `gemini` (auto-inferred from `--model` by default), `--no-fallbacks` measures the named model only, and `--strict-offline` fails any tool call that misses the snapshot. Rebuild v1 with fresh residue positions with `uv run python evals/build_questions.py --seed 8 --refresh`.
|
|
180
221
|
|
|
181
222
|
## Development
|
|
182
223
|
|
|
183
224
|
```bash
|
|
184
225
|
uv sync --extra eval
|
|
185
|
-
uv run pytest #
|
|
226
|
+
uv run pytest # 215 tests, offline against the v1/v2/v3 snapshots
|
|
186
227
|
uv run mypy # strict
|
|
187
228
|
uv run ruff check . && uv run ruff format --check .
|
|
188
229
|
```
|
|
189
230
|
|
|
190
231
|
## Limits
|
|
191
232
|
|
|
192
|
-
- v1 is 68 items, and each arm ran once. One answerable item is 1.8 points; its intervals are wide for that reason, so treat v1 differences under about 10 points as noise. v2 is 175 items run three times; its closed-book runs ranged over as much as 5.7 points, and smaller differences cannot be read.
|
|
193
|
-
- The primed prompt tells the model that some questions hide a false premise and, in the tools arm, to look every value up. v1's caught and grounded rates therefore measure behaviour when asked to be careful, not unprompted. v2's unprimed prompt drops both, but the answer form still has a flag and the tool descriptions still say what `found: false` means: "unprimed" means no warning from the prompt, not no hint at all.
|
|
233
|
+
- v1 is 68 items, and each arm ran once. One answerable item is 1.8 points; its intervals are wide for that reason, so treat v1 differences under about 10 points as noise. v2 is 175 items run three times; its closed-book runs ranged over as much as 5.7 points, and smaller differences cannot be read. v3 is 60 items run once per arm across two models (Claude Opus 5.5 and Claude Haiku 5.5); OpenAI and Gemini arms are supported by the harness but not yet published.
|
|
234
|
+
- The primed prompt tells the model that some questions hide a false premise and, in the tools arm, to look every value up. v1's caught and grounded rates therefore measure behaviour when asked to be careful, not unprompted. v2 and v3's unprimed prompt drops both, but the answer form still has a flag and the tool descriptions still say what `found: false` means: "unprimed" means no warning from the prompt, not no hint at all.
|
|
194
235
|
- The grader only checks that the premise was rejected. Every planted item's explanation in both published runs was read by hand; the v2 results page has the count.
|
|
195
|
-
- v1 covers the seven v0.1.0 tools
|
|
236
|
+
- v1 covers the seven v0.1.0 tools; `get_variants` and `map_structure_residue` were first run by a model in v2; `search_structures`, `map_structure_residues`, branched glycans, assemblies, modified residues, DNA/RNA guards and AlphaFold PAE are covered by v3 and the offline test suite.
|
|
196
237
|
- v2's proteins are one seeded draw, even over sequence lengths and not over entries, with one stratum (peptidase S1) chosen for its insertion codes. The results describe that draw, not UniProtKB as a whole.
|
|
197
238
|
- `get_variants` reads UniProtKB's curated variants, which are a subset of what ClinVar and gnomAD hold. An empty result is reported as "none annotated", never as "does not occur".
|
|
198
|
-
- Residue mapping uses the alignment RCSB PDB publishes for each entity. A chain with no UniProtKB alignment (many antibodies, designed proteins) maps to nothing, and says so. Feature annotations are canonical-sequence only: an isoform ID works for sequence windows, not for features or variants.
|
|
239
|
+
- Residue mapping uses the alignment RCSB PDB publishes for each entity. A chain with no UniProtKB alignment (many antibodies, designed proteins, nucleic acids) maps to nothing, and says so. Feature annotations are canonical-sequence only: an isoform ID works for sequence windows, not for features or variants.
|
|
240
|
+
- `proteinground` is a read-only database-grounding layer, not a 3D coordinate/geometry engine: it does not compute atomic distances, binding-pocket contacts, H-bonds, SASA or RMSD.
|
|
199
241
|
- The questions are public, so later models may have trained on them. Rebuild with a new seed before reusing the numbers.
|
|
200
|
-
- Live mode drifts: new PDB entries change "best resolution", and the two unassigned PDB IDs may be assigned one day. The
|
|
201
|
-
-
|
|
202
|
-
- Data licences: UniProtKB and AlphaFold DB under CC BY 4.0, RCSB PDB under CC0 (see `evals/snapshot/README.md`).
|
|
242
|
+
- Live mode drifts: new PDB entries change "best resolution", and the two unassigned PDB IDs may be assigned one day. The snapshots keep them fixed.
|
|
243
|
+
- v1 and v2 are saturated for a tool-using agent (100% of answerable items), and v1 is mostly memorisable for closed-book Opus 5.5 (78%). Eval v3 adds multi-hop queries, structural traps, and the `naive_tools` baseline specifically to separate tool-surface design from raw API access.
|
|
244
|
+
- Data licences: UniProtKB and AlphaFold DB under CC BY 4.0, RCSB PDB under CC0 (see `evals/snapshot/README.md`, `evals/v2/snapshot/README.md` and `evals/v3/snapshot/README.md`).
|
|
245
|
+
|
|
246
|
+
Sibling project for Chai-1 (`chai-lab`) pre-flight validation and output auditing: [chai-ground](https://github.com/shnksi/chai-ground).
|
|
203
247
|
|
|
204
248
|
Built with Claude Code. MIT licence.
|
|
@@ -24,6 +24,7 @@ dependencies = [
|
|
|
24
24
|
|
|
25
25
|
[project.optional-dependencies]
|
|
26
26
|
eval = ["anthropic>=2.12,<3"]
|
|
27
|
+
eval-all = ["anthropic>=2.12,<3", "openai>=1.60", "google-genai>=1.0"]
|
|
27
28
|
|
|
28
29
|
[project.scripts]
|
|
29
30
|
proteinground = "proteinground.server:main"
|
|
@@ -78,8 +79,9 @@ plugins = ["pydantic.mypy"]
|
|
|
78
79
|
files = ["src", "tests", "evals"]
|
|
79
80
|
|
|
80
81
|
[[tool.mypy.overrides]]
|
|
81
|
-
module = ["anthropic", "anthropic.*"]
|
|
82
|
+
module = ["anthropic", "anthropic.*", "openai", "openai.*", "google", "google.*"]
|
|
82
83
|
follow_untyped_imports = true
|
|
84
|
+
ignore_missing_imports = true
|
|
83
85
|
|
|
84
86
|
[tool.pytest.ini_options]
|
|
85
87
|
testpaths = ["tests"]
|