Skip to main content

IGNORE

Constant IGNORE 

Source
pub const IGNORE: &str = "# Ignore File Configuration\n\nControls which files are filtered by file-walking tools (glob, tree, ls -R, grep -r, find).\n\n## Modes\n\n| Mode | Scope | Defaults | Auto-gitignore | Effect |\n|------|-------|----------|----------------|--------|\n| REPL | Advisory | off | off | No filtering. `find` always unrestricted. |\n| MCP | Enforced | on | on | All tools filter. Prevents context flooding. |\n\n## Scope\n\n- **Advisory** \u{2014} polite tools (glob, tree, grep, ls) respect config. `find` ignores it (POSIX tradition).\n- **Enforced** \u{2014} all tools respect config, including `find`. Default for MCP/agent mode.\n\nPer-tool `--no-ignore` flags override for that invocation.\n\n## Default Ignore List\n\nWhen defaults are on, these are always filtered: `.git`, `node_modules`, `target`, `__pycache__`, `.venv`, `venv`, `dist`, `build`, `.next`.\n\n## kaish-ignore Builtin\n\n```bash\nkaish-ignore                          # show current config\nkaish-ignore add .dockerignore        # add ignore file\nkaish-ignore remove .gitignore        # remove from list\nkaish-ignore clear                    # disable all filtering\nkaish-ignore defaults on|off          # toggle default ignore list\nkaish-ignore auto on|off              # toggle nested .gitignore loading\nkaish-ignore scope advisory|enforced  # change scope\n```\n\n## REPL Setup\n\nAdd to `~/.kaishrc` for filtering in interactive mode:\n\n```bash\nkaish-ignore add .gitignore\nkaish-ignore defaults on\nkaish-ignore auto on\n```\n";