KScript docs
EN

Coding agents

Watching

kscript watch builds everything the project makes from its code, then rebuilds it a moment after its files stop changing: the agent docs, the project's own docs (.kscript/docs/project.md, once kscript docs --project has written it; see Docs while you work) and, when http.openapi.file is set, the OpenAPI document. Other generated files join the same watch as packages add them, so one command, the editor and kscript serve keep all of them in step with the code.

CommandWhat it does
kscript watchBuild, then rebuild on every change until Ctrl+C.
kscript watch --onceBuild once and stop.
kscript watch --checkWrite nothing; fail if anything is out of date (for CI)

It ignores its own files, hidden folders (such as .git and .kscript), bin, obj, node_modules and dist.