Skip to content

Watch Mode

llms.txt lists every page for an agent
Optional: hand this page to your coding agentThe steps work by hand too.
Show the whole prompt
Read https://intentius.io/chant/configuration/watch/.
Start `npx chant build --watch` or `npx chant lint --watch` in this project while you edit the files I name, and fix each error it reports as you go.
Stop the watch when both are clean, and open a pull request with the changes.
Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.

chant build and chant lint take --watch, which re-runs the command when a source file changes.

Terminal window
chant build --watch
chant lint --watch
  1. chant watches for file create, modify and delete events.
  2. It batches changes within a short debounce window.
  3. Each batch triggers a full rebuild or re-lint.

Watch mode monitors all .ts files, with these exclusions:

Ignored PatternReason
node_modules/Dependencies don’t change during development
.chant/Generated types and metadata
Hidden directories (.*/).git/, editor configs, tool caches
*.test.ts, *.spec.tsTest files
Non-.ts filesOnly .ts files are watched
  • On a large project, debouncing batches rapid saves into one re-run.
  • Run watch mode in one terminal pane and your editor in another.

chant