Three ways to use it — pick the one that fits your workflow.
Write your request in a *.human file; the generated code lands in a sibling file named after it (extension follows your configured language).
# greet.human
Write a function that takes a name and returns
a friendly greeting, with a docstring.
$ npx human-to-code .
✓ wrote greet.py
Drop a marker inside an existing source file using its native block syntax — for example, /* @human … */ for a multiline TypeScript or JavaScript request and """ @human … """ in Python. The marker region is replaced in place with generated code.
// utils.ts
// @human debounce helper with cancel()
$ npx human-to-code .
✓ wrote utils.ts
For reviewed, sandbox-validated patches against a recognized React, NestJS, FastAPI, or Rust project, use guided: it drafts a change contract for your review before anything is generated.
$ npx human-to-code guided .
Wrote add-health-route.strict.human.json
Review the contract, then rerun to generate
a validated, reviewable patch. Apply is a
separate, explicit step.
Every generation shows a receipt — files, provider, model — and asks before writing. Nothing is written on --dry-run.