Skip to main content
Version: next

Configuration

agnix works with zero configuration. To customize, add .agnix.toml to your project root.

Example

target = "claude-code"
strict = false
max_files = 10000
locale = "en"
disabled_rules = []

Options

OptionTypeDefaultDescription
targetstringnoneSingle tool focus: claude-code, cursor, codex, copilot
toolsstring[]allMulti-tool targeting. Overrides target.
strictboolfalseTreat warnings as errors
fixboolfalseApply available auto-fixes
max_filesint10000Maximum files to scan
localestring"en"Output locale
disabled_rulesstring[][]Rule IDs to skip (e.g. ["CC-MEM-005"])
formatstring"text"Output format: text, json, sarif

CLI flags

CLI flags override .agnix.toml values:

# Target a specific tool
agnix --target cursor .

# Apply fixes
agnix --fix .

# JSON output for CI
agnix --format json .

# SARIF output for GitHub Code Scanning
agnix --format sarif .

# Strict mode
agnix --strict .

Full reference

For the complete configuration specification, see docs/CONFIGURATION.md in the repository.