New examples (examples/): - modal-dialog: <dialog> vs Radix/react-modal - url-params: URLSearchParams vs query-string - number-formatting: Intl.NumberFormat vs numeral - infinite-scroll: IntersectionObserver vs react-infinite-scroll-component - deep-clone: structuredClone vs lodash.cloneDeep / JSON hack - group-by: Object.groupBy vs lodash.groupBy New doc (docs/platform-native.md): Comprehensive reference of platform-native solutions across HTML elements, CSS, Browser APIs, Node.js stdlib, Python stdlib, and database features. Covers 60+ cases where the platform already has what developers reach for a package to do.
Examples
Real model output, verbatim from benchmark runs — the same task answered by the same model
with no skill (## Without Ponytail) and with ponytail (## With Ponytail), so you can
compare side by side. Model: Claude Haiku 4.5, temperature 1, source benchmarks/output.json.
These are not hand-written. Reproduce them yourself:
npx promptfoo@latest eval -c benchmarks/promptfooconfig.yaml. Method, all three models, and
median-of-10 numbers: ../benchmarks/.
| Example | Without (LOC) | With (LOC) |
|---|---|---|
| Email Validation | 75 | 3 |
| Debounce | 116 | 10 |
| CSV Sum | 20 | 3 |
| Countdown Timer | 267 | 9 |
| Rate Limiting | 128 | 10 |