arkyn init --agentsAGENTS.md file in the current directory if it doesn't exist yet, or updates it in place if it does, linking to the AGENTS.md reference docs shipped inside your installed @arkyn/* packages.bash
npx @arkyn/cli init --agents
init currently requires the --agents flag; it's the only flag init supports today, the command is structured to accept more in the future.package.json in the current working directory.@arkyn/* package listed under dependencies or devDependencies (the union of both, deduplicated, sorted alphabetically). @arkyn/cli itself is always excluded from this list, even if it appears as a dependency.node_modules/@arkyn/<package>/AGENTS.md exists on disk.<!-- arkyn:agents:start --> and <!-- arkyn:agents:end --> markers inside the project's AGENTS.md, containing a markdown link to each AGENTS.md that was found.@arkyn/* package is installed, or none of the installed ones ship an AGENTS.md yet (older package versions), the command prints the reason to the terminal and doesn't modify any file.bash
$ npx @arkyn/cli init --agentsUpdated AGENTS.md with docs for: @arkyn/components, @arkyn/server
md
<!-- arkyn:agents:start -->## ArkynConsult each installed Arkyn package's AGENTS.md before using itscomponents or utilities:- [@arkyn/components](node_modules/@arkyn/components/AGENTS.md)- [@arkyn/server](node_modules/@arkyn/server/AGENTS.md)<!-- arkyn:agents:end -->
arkyn:agents:start/arkyn:agents:end block in place, it's never duplicated.AGENTS.md are preserved.AGENTS.md doesn't exist yet, it's created containing just the generated block.AGENTS.md exists but doesn't have the markers yet, the block is appended to the end of the file (respecting whether the file already ends with a newline or not).--agents flag: running arkyn init without --agents prints an error and the help message, and exits with code 1.bash
$ npx @arkyn/cli initarkyn init requires the --agents flag.
@arkyn/* packages, so the linked list in AGENTS.md stays accurate.npx/bunx.