cd /news/ai-tools/cheaper-llm-labelling · home topics ai-tools article
[ARTICLE · art-136963] src=entropicthoughts.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Cheaper LLM labelling

A developer used GPT 5.6 Luna via Simon Willison's `llm` CLI tool to label git commits as "maintenance" or "new development", reporting that the model matched their own manual labels across the entire test set before rolling the classifier out more widely. The implementation calls `llm -m openrouter/openai/gpt-5.6-luna` from a Perl script using `open2`, with an earlier version of the loop retrying failed requests a few times.

by read1 min views1 publishedSep 21, 2026

I have a small project where I needed to label commits as either “maintenance” or “new development”. The obvious way to do it is with a cheap but relatively capable LLM, like GPT 5.6 Luna. I tested it on a small set of commits and manually verified its labelling, and it emitted the same label as I would have for the entire test set. That was good enough for me to roll out on a wider scale.

If we have Simon Willison’s llm CLI tool installed (and you should – it’s great!), we can call it in a pipe from Perl, and read its response. My script had a loop that retried the request a few times, but without that bookkeeping, the code for this is simple enough.

sub classify {
    my ($msg) = @_;
    my $pid = open2(
        my $output,
        my $prompt,
        'llm -m openrouter/openai/gpt-5.6-luna'
    );
    print $prompt prompt_template($msg);
    close $prompt;

    chomp(my $result = do { local $/; <$output> });
    waitpid($pid, 0);

    return $result;
}
── more in #ai-tools 4 stories · sorted by recency
── more on @gpt 5.6 luna 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cheaper-llm-labellin…] indexed:0 read:1min 2026-09-21 ·