From the experiment

Do coding agents recommend pg_trgm?

pg_trgm took 4% of the choices in 1,138 judged search sessions, ranking seventh. Measured with Claude Code, Codex, Cursor, Grok Build CLI and Muse Code.

Published November 24, 2026 Read as Markdown

pg_trgm took 4% of the choices in 1,138 judged search sessions, ranking seventh. It was also raised as a candidate in 42 further sessions without being chosen.

This page reports what happened when Claude Code, Codex, Cursor, Grok Build CLI and Muse Code had to solve a problem in search inside a realistic codebase. Not what a chat assistant says about pg_trgm. What an agent actually installed.

The numbers

CategorySearch
Sessions in the category1138
Sessions where pg_trgm was chosen15
Share of the choices4%
Rank in category7 of 17
Codebases it won in6
Raised as a candidate, not chosen42
Chosen when considered26%
Sitepostgresql.org

By agent

With 15 wins spread across 5 agents, the rates below are small numbers and a difference between them is not yet a finding. They are here because the direction is worth knowing, not because the gap is established.

AgentSessionsChose pg_trgmShare
Claude Code25800%
Codex3671514%
Cursor19900%
Grok Build CLI5300%
Muse Code26100%

By who was asking

pg_trgm performs similarly across the four kinds of buyer, from 1% to 9%. That is unusual: the category leader changed with the persona in 22 of the 31 categories we measured.

Who is askingSessionsChose pg_trgmShare
Vibe coder16759%
Junior developer36022%
Senior engineer26067%
Enterprise team35121%

What pg_trgm was up against

The full ranking in search, from the same sessions:

#ProductRuns wonShare
1Built in-house (no product adopted)27725%
2Postgres Full-Text Search17013%
3OpenSearch13713%
4Meilisearch888%
5Typesense1107%
6Oracle Indexed Search576%
7Atlas Search474%
8pg_trgm (this page)154%

What this means

pg_trgm was raised in 42 sessions and chosen in 15. That ratio is balanced enough that the ceiling is presence rather than integration: the product converts reasonably when it is on the table, and it is not on the table often enough.

Where these numbers come from

The 1,138 sessions in search are part of a published set of 19,501, run with real coding agents inside realistic codebases and judged blind. The full method is on one page: how we measured this.

Every search run can be replayed on the board.

If you work on pg_trgm: the judge recorded a reason for every session where it was raised and passed over. Those reasons are in the transcripts.

<!-- generated by scripts/write-data-pages.mjs -->

Common questions

Do coding agents recommend pg_trgm?

Yes. pg_trgm was chosen in 15 of the 1138 judged sessions in search and took 4% of the choices, ranking seventh in its category.

Does Claude Code recommend pg_trgm?

In 0 of the 258 sessions in search run with Claude Code, 0% of its choices.

Do different coding agents treat pg_trgm differently?

Yes, and by a wide margin. Codex gave it 14% of its choices and Claude Code 0%.

How was this measured?

Real coding agents at pinned versions were run in sandboxes inside 110 realistic codebases and asked to solve real tasks. A simulated project owner approved or questioned each recommendation before any code was written, and a judge from a model family that builds none of the agents read every session blind.

How often is pg_trgm considered but not chosen?

It was raised as a candidate in 42 sessions without being chosen, and chosen in 15. That is a 26% conversion from considered to chosen.

Where this comes from

Armature ran 19,501 judged sessions with Claude Code, Codex, Cursor, Grok Build CLI and Muse Code inside 110 realistic codebases, and published every run. The numbers on this page come from that work.

Read next

All library pages