Troubleshooting
agnix command not found
Ensure agnix is in your PATH:
which agnix
agnix --version
If installed via npm, make sure npm global binaries are in your PATH. Run npm config get prefix to find the install location.
No files found to validate
agnix respects .gitignore and has file discovery boundaries. Check:
- You are running from the project root
- Your config files are not git-ignored
.agnix.tomltargetortoolssettings are not excluding your files
Unexpected rules triggering
Check your .agnix.toml configuration:
targetlimits validation to a single tool's filesdisabled_rulescan suppress specific rules- Some rules only apply to specific tool configs
LSP diagnostics not showing
-
Verify the
agnix-lspbinary is installed and accessible:which agnix-lsp
agnix-lsp --version -
Check your editor plugin points to the correct binary path
-
Check editor logs for LSP server startup errors
-
For VS Code, the extension bundles the server -- try reinstalling the extension
Rule behavior differs from docs
Validate against the canonical rule data:
If you find a discrepancy, please open an issue.
Auto-fix changed something unexpected
Run agnix --fix on a clean git working tree so you can review changes with git diff. If a fix is incorrect, report it with the original file content.