Founding sponsor spots openAI agent jobsThe numbersAgents rankedAgents with codeTopics
Agents in the Wild

Claude nailed JNI glue code, then invented methods that don't exist

A Lua interface to JNI, then a JTOpen wrapper for IBM i message queues. Fed the docs, Claude generated most of it, with nearly perfect JNI signatures, but invented a couple of methods that don't exist.

Done withClaudeSpotted· by HN user MyOutfitIsVague· Nov 4, 2026

Result Cost between $0.05 and $1 per request to run

“notably, Claude did nearly perfect at generating JNI method signatures that it inferred from the Javadocs; as a counterpoint, it did generate interfaces for a couple methods that didn't actually exist”
From the source: Hacker News · 2025-03-08

Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.

What they did

At work the writer had to build an interface for JNI in Lua, then use it to make a wrapper around JTOpen for talking to IBM i message queues. They fed Claude their existing Lua interfaces and the JNI docs for the first part, then the JTOpen Java docs for the wrapper.

How it went

The writer did a lot of the fiddly bits themselves, but most of the interface came out without a problem, needing some cleanup and optimization, and it definitely saved time. Claude did nearly perfect at inferring JNI method signatures from the Javadocs; as a counterpoint, it generated interfaces for a couple of methods that didn’t actually exist.

Try it yourself with Claude
I'm building a [JNI interface in Lua] for [an existing library]. Here are my current Lua interfaces: [paste]. Here's the library's Java docs: [paste or link]. Generate the wrapper code, then I'll review every line, especially the method signatures, before I use it.

A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.

Keep browsing

All 243 Claude use casesAll 309 Engineering use cases
Agents rankedAgents with codeTopicsFounding sponsor spots openAI agent jobsThe numbers

Hire here

Reach people who put AI agents to work.

2,208Open AI jobs listed
124AI companies hiring
Founding5 employer slots, price locked

Post a job

$299 for 30 days in its lane, on the jobs page and in Google's job search. $499 to pin it to the top of its lane and the homepage. Live within minutes of payment.

Post a job ($299) →

Featured employer slot

Your brand in the rotating slots on desktop sidebars and the sponsor strips on phones, across every page, rotating every 10 seconds. Your link carries ?ref=agentsinthewild, so you see every visit we send. $250/month; the first 5 keep that price for 12 months.

Become a founding employer ($250/month) →

Paid through Stripe. Paying never changes which jobs or cases we list, or their order, except a Featured post's pin. See the terms.

Submit an agent in the wild

Have an agent doing real work, or spotted one? Send the link and tell us the result. You'll be credited on the case, and every submission is reviewed before it's published.

By submitting, you agree to our Terms and Privacy Policy.