Kenneth W. BinghamAI Engineer · Java and Spring Boot

New training series · in development

AI-Assisted Programming, Done Right

A practical series on pair programming with AI. A person sets the direction, AI helps shape the code, and software checks the behavior. The results come back to the person for the next decision.

Created and directed by Ken Bingham. Natasha and William narrate; their robot characters appear briefly as on-screen graphics.

A person directs a brief to AI, the proposed change goes to software checks, and results return to the person.
St. George, Utah · open to remote work

Human-directed AI. Software you can test.

I build AI agents, tool servers and evaluation systems, drawing on more than fifteen years in enterprise Java and Spring Boot. I write the directives, make the design decisions, and use test evidence to decide what is ready to ship.

From the build log, spelling tidied
I said

The AI had

So it became

The three pillars

Human developer → AI → software. I use written directives to define the goal, constraints, acceptance criteria and decisions the AI must bring back to me. Test results flow back through all three.

Human developer

I conceive or adapt the product, set its rules, and make the trade-offs. I test the assumptions, play the builds, review the evidence and decide what ships.

AI assistant

AI implements bounded tasks, exposes ambiguity and drafts tests from the acceptance criteria. I direct the revisions. AI reports what it checked and where it needs a decision.

Software

Compilers, test runners, browsers and instrumented services execute the checks. Repeatable assertions and observable failures show what actually happened.

Play the portfolio

I conceived or adapted and directed these games. AI assisted with the implementation and production. I’m sharing them free for now so employers and other developers can try the work, read the rules and see the decisions behind it.

Breakout 3D arena with a paddle, bricks and ball shadow

Breakout 3D

I refined the paddle response, added a visible floor shadow to help read the ball's height, and made collisions between rival paddles part of play.

Clear Cubicles blocks containing colored shapes

Cubicles

I specified the support rule and scoring for intersecting lines. The checks cover all three axes and rooms with a mix of friends and bots.

Rotated jigsaw pieces around the Puzzle Maker board

Puzzle Maker

I changed turn-taking to simultaneous play and specified the 15° snap tolerance. Multiplayer checks cover ownership, synchronization and rejoining.

Dots and Boxes board with walls between the dots

Dots and Boxes

A real online test went 60 moves and exercised scoring, extra turns and the final result. The same game also supports bots and same-screen play.

FastTrack board and colored pegs

FastTrack 3D

Reproducing skipped and doubled turns showed where turn ownership belonged. A multiplayer regression check pins the fix.

Wally in the Chomp 3D croc park

Chomp 3D

I directed a complete 3D adventure through Far North Queensland, from controls and progression to its public release and automated checks.

ButterflyFx Games ButterflyFX Apps© 2026 Kenneth Bingham · Fair use acknowledged where applicable

Beyond the games

Apps, external projects and research that show how I direct AI across different kinds of work.

A walkable art gallery with framed work on the walls

Ken’s Art Gallery

A walkable 3D gallery and cinema. I chose how visitors see the work, gave direction on the space and presentation, and documented how the images were made.

Cost of Saving decision calculators

Cost of Saving

Browser calculators that put a headline saving beside the time, risk and other costs of getting it. The formulas are public.

A structured three-dimensional surface

Geometry as Data

Generate data from a small rule when the pattern supports it, and store the residual needed to reconstruct the original exactly.

Pattern → rules → residual

When observations have structure, store a generator and the differences between its output and the original. Rebuild on demand and compare the decoded bytes to the source with SHA-256.

Pattern

Identify structure in the data, such as a smooth geometric field.

Rules

Store the generator and its parameters. Use them to predict the data when it is needed.

Residual

Store exact corrections for what the rule misses. Rule output plus residual reconstructs the original.

Lossless reconstruction on 65,536-byte test fields

WorkloadBest tested baselineRule and residual
Saddle field2,476 bytes44 bytes
Schwarz D slice10,568 bytes53 bytes
Saddle with an unmodeled ripple2,618 bytes178 bytes
Random data65,540 bytes65,571 bytes

These are constructed test fields with rules selected by hand. The ripple case was 14.7× smaller than its best tested baseline. Random data was slightly larger, and PNG led on the photographs tested.

What I can do for your team

Four things I can bring to a team that is putting AI to work. Each one links to working proof you can open.

AI you can trust

Evaluation that catches wrong answers before your users do: difficulty-certification harnesses and a 104-rule pre-submit gate for AI coding agents, and retrieval that cites its source or says it does not know. See citeline

AI that costs less

Token cost grows when an agent is handed everything, every time. I design context and tool use so an agent pulls only what a question needs: 7 to 34 times fewer tokens on everyday sessions, measured. See kravitz-mind

AI that ships safely

Agents connected to real systems through audited, read-only tool servers, released through test gates and versioned releases with one-command rollback. The same discipline as two years of zero rollbacks under DoD change control. See mcp-gateway

AI explained plainly

An agent is only useful if the people around it understand it. Eighteen years helping customers at Delta and a video series on AI taught me to explain non-deterministic technology without hype. Watch the series

15+years building software, from startups' first prototype to systems under DoD change control
7–34×fewer tokens on everyday AI sessions with kravitz-mind, measured on 116 real notes
0/5pass rate of a frontier coding agent on the benchmark tasks I author, at maximum reasoning effort
1,129automated checks behind Chomp 3D, a complete game directed solo with AI agents

Work you can open right now

I conceived or adapted these projects, wrote the directives, and directed the work as AI assisted. The case studies show how I used test results to decide what worked and what needed another pass.

Featured · Testing · Java 21 · Spring Boot · PostgreSQL · Selenium

QA in a box that found four real bugs on its first run

The problem
Tests that mock the database test the mock. Tests on a shared database leave rows behind. Neither shows whether the real app survives wrong or hostile input.
What I built
TestThisPuppy: one command tests the network path, the API, every form, wrong input, SQL injection, race conditions and recorded workflows on a real database, then restores it exactly.
The proof
It found four server bugs the browser had been hiding, now fixed and pinned by regression tests. 143 of 143 checks in one run, 54 unit and error-path tests, and zero rows left behind.
Featured · AI-assisted development · deterministic verification · Python, multi-language · new

Let software check the AI, not another AI

The problem
You cannot trust AI code on sight. Pointing another AI at it adds cost and another guess; reading it yourself does not scale and misses the edge case that ships the bug.
What I built
Three Pillars: a gate where the human directs and signs, the AI writes, and deterministic software proves it. Tests, tests of the tests, style, modularity, bloat and security, reported with color-coded severity. No AI reviewing AI, zero tokens for the checks.
The proof
On a real Java project it caught 41 of 41 planted bugs for zero tokens, where one AI-review pass spent about 1,500 and proved nothing. Same verdict every run, on AI-written or human-written code.
AI reliability · a small language · Python · local models · new

Rules a person can read, in place of the AI that checks the AI

The problem
Agent pipelines have a model check the model's answer. The checker sounds the same right or wrong, costs as much as the answer, and hands over the last try as if it were checked.
What I built
Relation Gate: a language where every line is a relation, logic is arithmetic over 0 and 1, and a failed check is "no answer", never a guess. A page of rules replaces the second model call; a browser demo runs it with nothing sent anywhere.
The proof
On a 3B local model, held-out tasks, bars written first: wrong answers 68 to 4 percent at 4.5 times fewer tokens per correct answer. On a 7B model the wrong-answer cut held and the token bar was not met; both are on the page.
AI system · MCP · memory and token cost · new

Memory that makes an AI cheaper and more careful

The problem
AI assistants load their whole memory into every session, whatever the question, and save whatever they are told, sourced or not. That is slow, expensive, and how made-up "facts" creep in.
What I built
kravitz-mind, an MCP memory server with five tools. Recall returns one line per match, full notes open only when needed, and a deterministic gate marks anything unsourced as unverified and refuses duplicates.
The proof
On 116 real notes and 30 everyday questions, the right note was in the top three every time, and short sessions used 7 to 34 times fewer tokens. Long sessions that open many notes cost more, and the README says so.
The citeline case study: retrieval that cites the exact regulation or abstains
AI system · RAG · Postgres and pgvector

Answers with a citation, or says it does not know

The problem
A retrieval system that always answers is worse than useless in regulated work, because the confident wrong answer looks the same as the right one.
What I built
A question-answering service over US drinking water regulations (40 CFR Part 141). Hybrid search, a gate that declines when the text does not support an answer, and a rule enforced in code: a citation to a passage that was never retrieved is rejected. Runs on local models.
The proof
31 unit tests, and an evaluation set of 28 cases, 8 of them deliberately out of scope to measure whether it stays quiet. 185 documents and 908 chunks indexed.
The mcp-gateway case study: a tool server a security review would pass
AI system · Model Context Protocol · Python

A tool server a security review would pass

The problem
Connecting a language model to internal data takes an afternoon. Answering the security review afterwards is the hard part.
What I built
An audited MCP server in Python and FastAPI: a closed list of read-only tools, every argument validated against a schema, every call logged including the ones it refused, and errors that cannot leak.
The proof
29 tests with lint and type checks, all passing. One test raises an error containing a database password and proves it never reaches the model.
AI reliability · evaluation · local models

Asking the same AI twice does not make it right

The problem
The usual fix for unreliable AI answers is to ask the same model again and take the majority. Whether that catches the wrong answers is rarely measured.
What I built
A reliability engine that makes every answer quote its source, takes second opinions from different model families, and hands disagreements to a person.
The proof
On 300 public SQuAD 2.0 questions, one model asked five times cut wrong answers from 10.0% to 9.7%. Two model families cut them to 2.7%, at half the cost. Pass marks set before the run; one of three passed, and the page shows why.
Contract · Handshake AI · 2026

Measuring whether a model can be trusted

The problem
"It seems to work" is not evidence that a language model is reliable.
What I built
Adversarial benchmarks and evaluation harnesses that score tool use and step-by-step behavior against a written rubric, sampled many times over.
The result
Recommendations to scale, iterate or stop, each backed by measurements instead of impressions.
Chomp 3D: Wally's Cairns Adventure, the title art: Wally the crocodile leaping over a wooden sign on the Cairns waterfront
Game · three.js · live and free to play

A whole 3D game, directed by me, written with AI

The problem
Can one person direct an AI through something large, with parts that must keep working together, and ship it finished and tested?
What I built
Chomp 3D: Wally's Cairns Adventure. Seven levels across real Far North Queensland, a story, points and leaderboards, on phones and computers. My design and decisions; the AI wrote the code under my rules.
The proof
1,022 unit checks and 107 browser checks, the browser suite run against the live site too. Fifteen versioned beta releases with one-command rollback, changes made from tester feedback, and VR headset play.
FastTrack 3D: coloured pegs racing round a hexagonal board in a starfield
Game · three.js · live and free to play

A board game whose turns had to be right

The problem
In online games, turns sometimes skipped or doubled. It looked like a network fault.
What I found
It was a question of who owns the turn, not the network. One player's game now decides every turn and tells the others, and bots at three difficulties play the board position.
The proof
A headless test runs two players' games side by side and reproduced the fault before the fix. The public version offers bot matches and shareable friend tables.
The Schwarz Diamond site: the headline Geometry, not guesswork, beside a block cut from the Schwarz Diamond surface in teal and brass
Product · no AI · runs in your browser · live and free to use

AI-style tools that measure instead of guess

The problem
Sorting out a bank statement, polishing an AI draft or questioning a document now usually means uploading it, and getting an answer that can change from one try to the next.
What I built
Thirteen tools that do that work by rule, in the visitor's own browser. It reads the PDF statement your bank gives you, makes AI-written text read naturally without changing a fact, and cleans photos with pixel-identical proof.
The proof
The statement reader's totals match the bank's own to the cent, tested on a real statement. 95 hostile edge cases and 6,000 randomized texts, with no number, name or quotation changed. Zero data sent while the tools run.
The front page of Cost of Saving: a calculator beside the line, they say a dollar saved is a dollar earned
Product · decision tools

Cost of Saving

The problem
A saving and what it costs are recorded in different places, so nobody adds them up.
What I built
Free calculators that put the two side by side for purchases, jobs, repairs, business cuts and hiring steps. Every formula is published. Nothing typed leaves the browser.
The proof
16 test suites and 830 checks, with sums worked by hand in the tests. Every page and link checked on every build.
The Systems page: a tool that sorts any part of a system into input, engine or output
Teaching tool · interactive

How Systems Work

The problem
Most costly decisions come from mistaking one part of a system for another, such as counting the people who do the work as only a cost.
What I built
A page where you sort your own system into what goes in, what does the work, and what comes out, then wire it wrongly and watch the result come apart.
The proof
The model behind it has 59 checks, including hand-worked cases and every combination of settings.
ButterflyFx Podcast Creator: an illustrated host at a podcast desk with a title graphic placed by the script
Video studio · JavaScript · Electron · local AI · watch the demo

A podcast studio with no post-production

The problem
Video podcasts are recorded first and dressed afterwards: hours of finding the moment and dropping in each chart and caption, while the host reads notes off to the side.
What I built
A studio where the visuals are written into the script and appear on the exact word, while the teleprompter keeps that word under the camera. A local AI can write the script.
The proof
A 75-second episode the studio made with no host and no editing: all 41 cues landed on their words. Full guide, cue reference and the demo pipeline are open source.
Fabric of Space: the Sun's gravity field as a funnel, with the planets' coils through the galaxy and two views of Earth
3D science model · three.js · live, runs in your browser

The solar system, checked against NASA

The problem
I had an idea that the field around the Sun might be shaped like a snail shell. An idea about the solar system is only worth something if it survives the real planets.
What I built
Fabric of Space: every planet on its real orbit at its real speed, the Sun's field from Newton's law drawn as a sheet, Earth's seasons, and each planet's coil through the galaxy.
The proof
64 browser checks pass. The seasons land on the real dates without being entered, and every planet matches NASA JPL within 0.25 degrees. The snail-shell idea did not hold, and the page says so.
Universal Drive: local disk, API, database, cloud, cache and saved items shown as drives A to Z, with connectors for AI and cloud services
Prototype · Python · file explorer for every source

One explorer for local files, APIs, databases and the cloud

The problem
What you need is scattered across disks, databases, APIs and cloud accounts, each with its own tool and its own search.
What I built
Universal Drive mounts every source as a drive letter and browses them the same way, with search routed across sources and a registry of 104 provider connectors.
Honest status
A working prototype. Local browsing, the HTTP API and live connection tests work. Search scans names and paths (there is no index yet), and connected services such as Gmail show sample data, not real mail.
A 3D cinema room with an audience watching a painting set in motion
3D on the web · three.js

A gallery you walk through

The problem
A page of thumbnails does not feel like standing in front of a painting.
What I built
Rooms to walk through, every picture framed and lit, visitors and sound, and a cinema with an audience where the paintings move. Drawn entirely in code, with no 3D model files.
The proof
59 works catalogued (38 paintings, 21 digital), with a build that refuses duplicate pictures. Shaped by 67 messages of direction in its first three days, and a page that says who did what.
Teaching · video series

Demystifying AI

The problem
Most people either fear AI or expect too much of it, and neither helps them use it well.
What I made
A series of standalone videos, from "What is AI?" to advanced topics, each one topic in depth with concrete examples, including how to spot and reduce made-up answers.
Why it matters
Explaining AI plainly to non-technical people, without overselling it, is half of getting a team to use it well.
Humana · healthcare · 2022 to 2024

Claims pipelines under HIPAA

The problem
High volumes of healthcare claims, handled by hand, under strict privacy rules.
What I built
.NET 6 services and HL7 and FHIR data pipelines, with Python automation that removed manual processing cycles.
How
Working directly with clinical, operations and data teams to agree the rules before writing the code.
U.S. Air Force, Hill AFB · defense

Modernizing systems that cannot fail

The problem
Aging hazardous-waste and asset-tracking systems, in an environment where every change is controlled.
What I built
Replacements in Java, Spring Boot and Hibernate, with C#, .NET and SQL Server, prototyped with the people who use them and released with zero rollbacks.
Context
Delivered under DoD change control while holding a Secret clearance.

Five rules the AI works under

An AI will happily produce something that looks finished. These are the standing rules I give it so that what comes back is actually finished, and so I can tell the difference.

Direction, not commands

I say what it is for and who will use it. A command gets carried out the same way whatever the situation. Direction makes the AI use judgment, and lets me see where its judgment is off.

Nothing is true until it runs

No "this should work". It runs the code, shows me the output, and tells me separately what it ran and what is still mine to run.

Tests that try to break it

Every sum gets a case worked by hand, the edges get tried, and a tipping point is checked by feeding it back in.

Say what kind of claim it is

Measured, established, an interpretation, or not claimed. A confident guess is a defect, and the AI is told to stop at the edge of what it knows.

No yes-man

If I am wrong, it says so and shows why. Agreement without checking is how projects go in circles.

What I build with

AI first, on an engineering foundation more than fifteen years deep.

AI engineering

  • AI agents and tool calling
  • MCP servers
  • Context windows and token optimization
  • RAG with pgvector, cite or abstain
  • LLM evaluation: eval sets, pass@k, blind pairwise, rubrics
  • Adversarial benchmarks
  • Hallucination detection and mitigation
  • Prompt engineering

AI tools

  • Claude Code, daily
  • Cursor
  • Cloudflare Workers AI
  • Local models with Ollama

Java and Spring

  • Java
  • Spring Boot
  • Spring MVC
  • Spring Data JPA
  • Spring Security
  • Hibernate
  • REST APIs and microservices
  • JUnit and TDD
  • Maven and Gradle

Python, web and data

  • Python
  • FastAPI
  • Angular
  • TypeScript and JavaScript
  • PostgreSQL and pgvector
  • SQL Server, MySQL, MongoDB
  • ETL

Testing and delivery

  • Tests against running services
  • Selenium WebDriver
  • Postman
  • Azure DevOps YAML pipelines
  • TFS
  • Docker
  • Git and GitHub
  • Versioned releases with rollback
  • Linux

Built with AI, in my projects

  • three.js and WebXR
  • Node.js
  • Cloudflare Workers and KV
  • Browser test automation

Regulated work

  • DoD change control
  • HIPAA and PHI handling
  • HL7 / FHIR
  • USAF Secret clearance, previously held

Where I have done it

The through line is places where somebody eventually audits the trail.

AI Engineer, evaluation and reliabilityHandshake AI · contract · 2026 to now

  • Adversarial benchmark tasks that defeat frontier coding agents, verified at pass@5 0/5.
  • An offline difficulty-certification harness that answers in minutes instead of a 68-minute CI cycle, and a 104-rule pre-submit gate.

Software DeveloperDTSI and Systems Implementers · U.S. Air Force, Hill AFB · 2021 to 2026

  • Principal developer on Air Force logistics systems in Java, Spring Boot and Hibernate, with C#, .NET and SQL Server, under strict DoD change control.
  • CI/CD pipelines and secure deployments with zero rollbacks.

Software Developer, claims and data automationHumana · 2022 to 2024

  • .NET 6 microservices and HL7 and FHIR pipelines for high-volume claims under HIPAA.
  • Python ETL and Linux automation that removed manual processing.

Enterprise Software ConsultantSoftware Technology Group · The Church of Jesus Christ of Latter-day Saints

  • Prototyped a worldwide missionary portal for executive leadership before the full build.
  • Delivered features in Java, Spring, AngularJS, Oracle and MarkLogic, and handed them to the enterprise team with architecture notes.

On the side: geometry as data

A long-running research interest, kept separate from the work above. Every claim is measured against the best existing method, and the limits are stated on each page.

The AI writes the code. I am responsible for it.

The person stays in charge. Software can recommend. A named human decides. I build that into the tools and I work that way with the AI.

A tool should leave its user more capable. The calculators above ask for your own numbers and show their working, so you can disagree with them. That is on purpose.

Credit is stated exactly. I conceive, direct and decide. The AI writes and tests. It does not originate the ideas, and I do not pretend I typed every line.

If it cannot be checked, it is not finished.