Control which files and directories are sent as context to the AI using .gitignore-style rules.
ChatCLI supports a file exclusion system inspired by .gitignore. This allows you to refine the context sent to the AI, avoiding irrelevant files such as tests, logs, dependencies, and builds.
# Ignore all Go test files*_test.go# Ignore entire directoriesdocs/e2e/vendor/node_modules/dist/build/# Ignore CI configuration files and logs.github/golangci.yml*.log# Ignore binaries and compiled files*.exe*.so*.dylib
Rules are not merged. Only the first ignore file found in the hierarchy is used. If you set CHATCLI_IGNORE, the project and global directory .chatignore files will be ignored.