← Directory

Harfi

Free
★ 14 • Updated Sep 18, 2026, 09:16 PM

Harfi is a browser-based prompt engineering game in which the player writes the instruction rather than the answer.

Use Cases ▼
01

Practising writing unambiguous, tightly scoped instructions for LLMs

02

Learning to constrain output length, bullet counts and formatting explicitly

03

Building intuition for JSON, CSV and YAML output shaping without writing code

04

Testing whether a prompt that works on one model also works on another

05

Turning prompt-engineering drills into a scored, replayable game

06

Illustrating in a classroom or workshop why literal specifications matter

What Problem It Solves ▼

People routinely give AI models vague or ambiguous instructions and then blame the model when the output misses the mark. Harfi isolates that skill by removing the ability to write the answer, forcing players to specify shape, length, format and vocabulary precisely enough that a strict parser accepts the model's output. It turns prompt specification into a measurable, repeatable exercise.

Key Features ▼
✓

Deterministic scoring by a parser in code rather than an LLM judge, so the same attempt always yields the same result

✓

Clear, granular feedback identifying exactly which rule failed and by how much

✓

First set of eight trials is free forever with no account or card required

✓

Progression system with par, birdie, ace and minimalist medals adds replay value

✓

Plain-English prompts mean no coding knowledge is needed to play

Overview

Harfi is a browser-based prompt engineering game in which the player writes the instruction rather than the answer. Each of the forty trials presents a specification that an AI model's output must satisfy exactly — a precise bullet count, a hard word cap, a required format such as JSON, CSV or YAML, or a set of forbidden words and letters. The player then composes a prompt of 120 words or fewer that drives the model to produce output meeting that specification. The name comes from the Arabic word for literal, word-for-word, reflecting the game's premise that a model does exactly what you said, not what you meant.

Pros & Cons

Pros

+

Deterministic scoring by a parser in code rather than an LLM judge, so the same attempt always yields the same result

+

Clear, granular feedback identifying exactly which rule failed and by how much

+

First set of eight trials is free forever with no account or card required

+

Progression system with par, birdie, ace and minimalist medals adds replay value

+

Plain-English prompts mean no coding knowledge is needed to play

Cons

−

Only forty trials in total, which experienced prompt engineers may exhaust quickly

−

Full content requires a one-time $29 purchase; the free tier covers only one of five sets

−

Limited to text-output constraints and does not cover multimodal or agentic prompting

−

No API, library or exportable tooling — it is a game, not a production utility

−

Model choice is fixed by the platform and may not reflect the models a user works with

Similar Tools

Prompt injection and prompt-engineering CTF challenges Learn Prompting PromptHero Gandalf (Lakera) Anthropic prompt engineering tutorial

More in Prompt Engineering