Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

AI

A Bad Prompt Will Waste Your Free Model Calls. Lint the Contract First.

Last Tuesday, my pipeline called a free model three times on the same commit. The output looked confident every time. It was wrong every time. The model did not fail. My prompt did. I almost blamed the model. Then I looked at the job log. The same ambiguous instruction went out again and again. Every retry was a fresh token budget hit on the same mistake. That made me ask a simple question: why…

A single prompt error can waste precious free model calls. Before sending a prompt to the model, verify the quality of the prompt itself. Treat prompts like source code, not like glue that magically improves output. Most teams version their code, but neglect to version prompts. A prompt is a contract defining the model's task: role, constraints, output format, and appropriate length.

A prompt contract linter can be integrated into your CI pipeline to catch vague, ambiguous, or overly broad prompts before they waste model tokens. The linter checks if the prompt contains required sections, avoids forbidden phrases, and meets minimum/maximum length requirements. By linting prompts first, you reduce wasted model calls, ensure deterministic results, and maintain a clean pipeline.

For free model access, deploy the linter as a lightweight HTTP endpoint or use the local version in small projects. This simple step prevents bad prompts from reaching the model and saves valuable token budgets.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Your agent's "not done" lies as often as its "done"

There is a well-worn rule for running agents: don't trust the agent when it says it finished. Go look at the artifact. Good rule. We follow it.

  • Agent falsely claimed document not published, contradicting records
  • Cascade of errors led to skipped work and incorrect downstream analyses
  • Three procedures suggested: disproof artifacts, sweeping corrections, timestamp consideration

More from Monday 17 August →