nvs agent init
nvs agent init writes the files that tell a coding agent about the nvs agent commands. Run it in the directory of your project.
The command adds a short section to the end of AGENTS.md, and your own text stays as it is. Claude Code also gets a skill, and GitHub Copilot an instructions file. These files contain no facts about the language.
Claude Code and Cursor also get a hook. After the agent edits a .nvs file, the hook checks the file and shows the agent its errors. --no-hooks removes the hooks.
The command finds the agent that runs it. Run by hand, it writes only AGENTS.md. Use --agent claude-code to choose an agent, and --all for every agent.
Run the command again after you install a new nvs. It prints up to date when there is nothing to do.
Good to know: each file has a fingerprint, so the command can see whether you changed the file. It never replaces a file that you changed. --force replaces it. --check writes nothing and fails when a file is missing, old or changed, so you can run it in CI.
Examples
Set up a project for codex
nvs agent init --agent codexagent: codex (--agent); AGENTS.md is all it needswrote AGENTS.mdSet up a project for two agents
nvs agent init --agent claude-code --agent cursoragent: claude-code, cursor (--agent)wrote AGENTS.mdwrote .claude/skills/novis/SKILL.mdadded hook to .claude/settings.jsonadded hook to .cursor/hooks.jsonSet up a shared project for every agent
nvs agent init --allagent: every one (--all)wrote AGENTS.mdwrote .claude/skills/novis/SKILL.mdwrote .github/instructions/novis.instructions.mdadded hook to .claude/settings.jsonadded hook to .cursor/hooks.json