hay

A ranked grep for coding agents: exactly ripgrep’s matches, reordered so the declaration comes first.

RANKED GREP / EVIDENCEDeveloper toolsOpen source · measured

The hay project page: a ranked grep for coding agents.
MN://hay — System route

$ trace "hay"

  1. agent transcripts
  2. ripgrep matches
  3. declaration priors
  4. paired evaluation

The problem

Plain grep is prior-free: it ranks a dead plan-v3-FINAL.md exactly like the function definition. Measured over 2,508 real agent searches across 71 repositories, the answer landed in the top ten only 34–62% of the time, whatever the repo hygiene.

The constraint

Same matches, same flags, same path:line:text output as rg. No index, no daemon, no state — and every claim pre-registered against a transcript-derived test collection before shipping.

The approach

ripgrep’s engine and walk plus declaration and path priors. Seven ranking signals were designed; four earned nothing in ablation and were deleted. Every miss has a counted category in a published error taxonomy.

The outcome

Paired over 951 queries (0.2.0): MRR 0.258 → 0.458, answer in top ten 44.9% → 77.1% (95% CI excludes zero). Still worse on 115 of those queries (12%) — the README says so. Started as a repo-hygiene score that predicted nothing; the negative result is published beside the tool.

MN://WORK

More work

MN://palette

Actions

Switch languagePTOpen GitHubOpen LinkedInOpen X

Pages

Home/Work/work/About/about/Recommendations/recommendations/Contact/contact/

Projects

DNSChatAI / NETWORKSAI Health SyncPRIVACY / HEALTHffts-grepRUST / SEARCHhayRANKED GREP / EVIDENCEdevtrimMACOS / FAIL-CLOSEDOpen Profile ManagerMACOS / OPERATIONSllmdeepdiveTEACHING / AISTOATEACHING / STOICISMGradiente Expert XP-8003D / EMULATIONcf-toolkitCLOUDFLARE / SAFETYMega-Sena AnalyzerDATA / STATISTICSBusca Remédios BrasilPRICES / PHARMACIESBolão 2026PREDICTION POOLSO Diário NeutroNEWS / EDITORIALOpenClaw Club BrasilCOMMUNITY / PT-BRConhecendo IACOURSE / BILINGUALTerroir AtelierWINE / EVIDENCEWhatsImovelREAL ESTATE / LEADSIA TravelTRAVEL / ANALYSISEvent Management SystemEVENTS / RSVPEvent Services PlatformEVENTS / SERVICEMaturidade (Carlos Magno)BOOK / AI COMPANIONBabimakeupBRAND / BEAUTYWeatherSunscreenUV / HEALTHCigarInfo AIVISION / AUTHENTICITYAI PedometerON-DEVICE AIswift-fast-markdownSWIFT / PARSINGCruzadas Rubro-NegrasGAMES / FOOTBALLCruzadas TricoloresGAMES / FOOTBALLCruzadas AlvinegrasGAMES / FOOTBALLCruzadas FluminenseGAMES / FOOTBALLSkillsAGENTS / TOOLINGOU BenchmarkBENCHMARK / LANGUAGESPolymarket AnalyzerMARKETS / REALTIMEAI Calories TrackerMOBILE / EDGE APIArremataRadarAUCTIONS / OFFICIAL DATASINALPUBLIC PROCUREMENT / DATACaptureVaultiOS / ON-DEVICELUMEDAILY READING / MOBILELente IAiOS / IMAGE AIDrawing with LoveREAL-TIME / FOR TWOLive RuniPHONE + WATCH / LIVEMinutaDraftNOTES / ENCRYPTED SYNCLevante a TaçaAI IMAGES / WORLD CUPVestouWARDROBE / PWAPaquera AIAI COACH / MOBILERecursos de MultasLEGAL AI / TRAFFICGP Race StatsiOS / FORMULA 1IA Palavras CruzadasiOS / WORD GAME

Hidden site terminal. Type help for the command list; Esc closes.

MN://OS — tty1
MN://>