$ lexprog.com

// notes from an old coder -- php, databases, and the occasional rant

[November 28, 2026] AI

Eval Offline Before You Ship a Prompt Change

Keep a frozen set of tasks with expected tool traces or answer rubrics. Run it on every prompt or model bump.

────────────────────────────────────────────────────────

Eval Offline Before You Ship a Prompt Change

Tip: A vibe check is not a regression suite

Keep a frozen set of tasks with expected tool traces or answer rubrics. Run it on every prompt or model bump.

for case in load_jsonl('evals/agent.jsonl'):
    assert run(case.prompt).grade() >= case.min_score

Gotcha: Changing two things at once

If you bump the model and the prompt together, you cannot attribute a fail. Change one axis per eval run.

model=new; prompt=new; hope=True

Source: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview

────────────────────────────────────────────────────────
<-- back to posts