]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
AGENTS: Tell agents to not use mkosi box
authorDaan De Meyer <daan@amutable.com>
Wed, 25 Mar 2026 14:43:35 +0000 (15:43 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 25 Mar 2026 17:26:09 +0000 (18:26 +0100)
It's easier to run the AI tool within mkosi box rather than telling
it to use mkosi box and forgetting to use it half the time.

AGENTS.md

index 418d1705419be2e9551400e4fb2051d88808f059..ffc47c05b0562f556c5ab0f9ffc671633df46c14 100644 (file)
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -14,15 +14,16 @@ Always consult these files as needed:
 
 ## Running arbitrary commands
 
-- Always run arbitrary commands with the `mkosi box -- ` wrapper command. This runs in an environment where more tools are available.
+- Never use `mkosi box` to wrap commands. You are either already running inside an mkosi box environment or
+running outside of it — use the tools available in your current environment directly.
 
 ## Build and Test Commands
 
-- Never compile individual files or targets. Always run `mkosi -f box -- meson compile -C build` to build
-the entire project. Meson handles incremental compilation automatically.
+- Never compile individual files. Always run `meson compile -C build <target>` to build the target you're
+working on. Meson handles incremental compilation automatically.
 - Never run `meson compile` followed by `meson test` as separate steps. Always run
-`mkosi -f box -- meson test -C build -v <TEST-NAME>` directly. Meson will automatically rebuild any required
-targets before running tests.
+`meson test -C build -v <TEST-NAME>` directly. Meson will automatically rebuild any required targets before
+running tests.
 - Never invent your own build commands or try to optimize the build process.
 - Never use `head`, `tail`, or pipe (`|`) the output of build or test commands. Always let the full output
 display. This is critical for diagnosing build and test failures.