PreviewOpsFree

CODE

Your AI wrote it fast. CODE makes it readable: clear names, tidy folders, one job per function, and a map of where everything lives. Your app works exactly the same.

  • Real parser, real referencesRenames and moves follow every import and call site. Never search-and-replace.
  • Tested before and after every stepA step that breaks anything is put back on its own.
  • A map of your codeCODEMAP.md: every feature, file and function, with file:line.
src/app.js
CODEMAP.mdnot written yet

1

Make your code readable

Paste this into your AI in the project, or run the command. It scans, writes a plan for you to check, then makes one tested change at a time.

Paste to your AI

Full prompt
Terminal

Claude Code, Codex, Cursor or any coding AI. Hosted at /code/prompt.md. Commands are pinned to this release.

Try it

Find the one snippet.

Something broke and you need the exact spot. CODEMAP.md answers "where do I fix…?" with a file and a line, so you (or your AI) open one function instead of reading the whole app.

This is a sample map from a small vibe-coded app. Yours is written from your own code.

Try
    The safety loop

    One change at a time. Tested every time.

    CODE never changes your whole app in one go. Every rename, move or extract is its own step, with your build and tests run before and after it.

    1. TestYour build and tests pass before anything changes.
    2. ChangeOne rename, move or extract, with every call site.
    3. Test againSame build and tests, plus a check that nothing went missing.
    4. CommitOne git commit per step, so any step can be undone.
    5. Put backAnything failed? That step is reverted and reported. On to the next.
    1Test 2Change 3Test again 4Commit Put back

    R1 rename valActCheck → startFaceScan · tests passed · committed

    No tests? CODE writes a small smoke test first (does it build, do pages load, do exported functions keep their shape), so "nothing broke" is measured, not assumed.

    What you get

    A plan you can read, and a map you keep.

    Plain Markdown files in your project. Your AI reads them too, so the next change it makes keeps the new names.

    1. PLANCODE-PLAN.mdEvery rename, move and extract, with its risk and the call sites it touches. Safe ones are checked; edit names or untick anything before it runs.
    2. MAPCODEMAP.mdFeatures, files and functions with file:line, plus a "Where do I fix…?" list in plain English.
    3. CALLSdocs/CALLS.mdEvery public function, endpoint and event, with its inputs and what it changes (network, storage, the page).
    4. RULESCODE-RULES.md + AI rulesA short naming and folder guide, added to CLAUDE.md, AGENTS.md or .cursorrules. Added at the end, never overwritten.
    5. CIcode checkFails the build when new cryptic names or god files sneak back in, so the code stays readable.
    6. UNDOcode undo <step|all>Put back one step, or everything. Each step is its own commit (or patch file without git).
    Honest scope

    What it does on its own, and what it leaves to you.

    JavaScript and TypeScript today: JSX and TSX, React, Next.js, Vite and Node. Python is on the roadmap.

    SafeApplied for youRenames and file moves. Every import and call site is updated by the parser, then tested.
    MediumUnticked by defaultMoving a function into its own file. It's in the plan; tick it when you're ready.
    InfoListed, left to youMerging duplicated code and deleting unused exports. Shown with the evidence, never done automatically.
    Names, never guessedNew names come from your AI reading the code, grounded in the scan. A name it can't work out shows as ? and is skipped until someone fills it in.
    Your public names stayNames other code uses (your package's public exports) keep the old name as a deprecated alias, so nothing outside breaks.
    Dynamic lookups flaggedCode like obj[name] can't be followed safely, so anything it might reach is marked risky and left unticked.