A build method + a tool

J-Code

Spec first. Tests first. No claim without a check.

Vibe-coded projects look finished — but they ship with calls to functions that were never written, client code talking to endpoints that don't exist, and references to files that aren't there. J-Code is how I build so those errors never ship, and the tool that finds them when they already have.

The Method

  1. Spec first. Write down what the thing must do — and what “done” means — before any code exists.
  2. Tests first. Write the checks and watch them fail. The failing tests are the contract.
  3. Build until they pass. Then prove it on the real thing, live — never call something fixed until it is verified where it actually runs.

J-Code itself was built this way: its spec and acceptance gates were fixed before the first line of the tool was written.

The Tool

The J-Code tool audits a web project (JavaScript + PHP + HTML), writes an error spec — every finding with its file and line — and generates fix proposals. It never edits your project in place: patches are proposed, applied only to a copy you choose, and the copy is re-audited so you see before/after counts.

jcode audit <project>                 # find the errors
jcode fix <project> --out jcode-fixes   # propose the fixes

What it checks

Try it live

This demo runs the real J-Code audit on one file, right here — no install, no sign-up. Paste JavaScript, HTML or PHP and it checks for the classic vibe-code bug: calls to functions that were never written. Your code is analysed, never run, and it is not stored.

Single-file scope: a function defined in another file of your project is not visible here. The project-wide checks — duplicate definitions, client URLs vs server routes, missing files — need the J-Code CLI on the whole project.

Proof

J-Code v0.1 — first run against real code

  • 18 / 18 tests pass
  • 7 / 7 planted errors caught, each with the exact file and line
  • 0 false positives on a clean project
  • First real audit — SarOak's live web app: found a genuine undefined-function call still shipping to readers, and zero client↔server contract breaks

Honest limits: v0.1 is static, name-based analysis for JS/PHP/HTML web projects. Dynamic URLs are skipped, not guessed. Some fixes are proposals only — which copy of a duplicated function should live is a human decision, and J-Code leaves it to the human.