From 679d1e008090f08e93a532ca28f51ba215304383 Mon Sep 17 00:00:00 2001 From: Pablo P Varela Date: Wed, 22 Jul 2026 16:55:50 +0200 Subject: [PATCH] docs: add installer agent guidance Co-authored-by: multica-agent --- AGENTS.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..f202c27 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,29 @@ +# Agent guidance + +## Installer, shell, and terminal changes + +- Preserve shell data-flow semantics. Do not suppress or replace stdin in a way that rewrites or steals input from a pipeline; shell precedence is part of the installer contract. +- Keep interactive and non-interactive execution explicit. A piped launcher may use the controlling terminal for prompts only when one exists. Fully headless usage must fail clearly or select an explicit non-interactive mode. +- Changes involving bootstrap, command execution, TTY/stdin handling, or installer ordering require a regression test covering the affected boundary. Include pipeline input, shell redirection, terminal fallback, and platform-specific process-launcher cases as applicable. +- For those changes, build the CLI and reproduce the reported invocation against the compiled binary in a pseudo-terminal. From a fixture directory containing `dot.toml`, use the host's PTY tool; on Linux, for example: + +```bash +script -qec 'printf "mise\n" | ./dist/dot' /dev/null +printf "mise\n" | ./dist/dot +./dist/dot