koowee / smack

smack.

A small model app creator kit. An agent on a small model can change a small web app for one person, and one quiet command says if the app still works.

What it does

Someone asks for a change in plain words: "double points on Saturdays", or "add a column for the author". An agent makes the change. smack gives that agent three things, so a small model can do it safely.

smack doesn't depend on any agent harness. It worked with opencode and with aider in our tests.

A request in plain words The agent reads the card, edits kit check drift · schema · purity tests · layout stops at the first fault quiet done a fault: one line, file:line rule message
The agent loops until kit check is quiet. The app's own checks/ and the shared kit/ are off limits, so an agent can't pass by editing the tests.

Try the examples

Three example apps come with smack. Each runs here as it ships, before any change. The lists show requests from the kit's test set. Your data stays in this browser.

Chore chart

Who does which chore today, the week, and a points board.

  • "Double points on Saturdays."
  • "Don't give the same person dishes two days in a row."
  • "Make it email me the chart every Sunday." decline

Open chore chart

Letter drop

Letters fall from the top; type each one before it lands. A letter game for small children, with levels and a best score. It needs a keyboard.

  • "Add a super-slow level for my 4-year-old."
  • "Give a bonus for 5 in a row."
  • "Text me when someone beats the high score." decline

Open letter drop

Reading log

Who read what, on a month calendar.

  • "Add audiobooks as a kind of reading."
  • "Weeks start on Sunday in our house."
  • "Remind the kids to read at 7pm every night." decline

Open reading log

A decline request is one a static app can't meet. The right answer is to change nothing and say why.

How to use it

Install and check an app

git clone https://github.com/teaguesterling/smack-kit && cd smack-kit
npm install && npm link                 # puts `kit` on PATH
npx playwright install chromium         # for the layout step
kit check fixtures/apps/chore-chart     # prints nothing: all is well

After a bad change, each fault is one line, and the exit code is 1:

$ kit check work/cc-04      # a seam that reads localStorage
seams/points.js:5 purity localStorage is not allowed in a seam: it reaches outside the function (network, storage, page or globals)

The install profile skips the layout step, for a machine with no browser: kit check --profile install.

The app shape

PathWhat it holds
app.jsonThe name, the screens to render, and the model calls the app makes
definitions.yamlWhat each word in the app means, and the values it allows
data/The content, and the schema that limits it
seams/*.jsSmall pure functions with contract comments. The part an agent changes
screens/, index.htmlWhat each screen shows, and how the screens are wired
theme.json, app.cssColours, type and spacing
checks/, kit/The app's tests and the shared kit parts. An agent never edits them

Measure an agent

smack comes with 27 change requests over the three apps. Each has a verifier and a reference solution. Point your agent at one and score the result:

node tools/fixture.mjs start cc-03 work/cc-03   # copy the app, print the card and the request
# ... let your agent work in work/cc-03 ...
node tools/fixture.mjs score cc-03 work/cc-03   # PASS, or FAIL <step>: <reason>

The score also fails a change that touches a file outside the request's list. A decline request passes only when the app is left unchanged.

We ran agents on small local models against the 11 held-out requests for three nights. The model and the task moved the pass rate; changes to the card did not measurably move it. Read RESULTS.md.

A caveat on the 59% pass rate in RESULTS.md. On those runs, the agent's system prompt may have held instructions written for a different agent: a user's general file and a skill list. We have not confirmed this. On 28 November 2026, a re-measure without them was running. It covers real-app tasks, not these 11.

First real app

A real-app task asks for a change to an app that a person uses, not to one of the examples. Each task has its own verifier.

Our first runs, in November 2026, tried four tasks, three times each. No code change counts yet. One run that changed code passed its verifier, but we did not count it. It hit the time limit, and an app test failed. The agent had also changed a test to expect a value the code does not give. One request called for a decline, and two of three runs declined it. These runs may have held the same extra instructions.

Where it is today

Words on this page

seam
A small pure function with a contract comment. The part of an app that an agent is meant to change
card
The short instructions an agent reads before it starts
kit check
The one command that says whether a change kept the app working
decline
A request a static app can't meet. The agent changes nothing and says why