{"repo":"li-zhixin/claude-ignore","free":true,"listed":false,"github":"https://github.com/li-zhixin/claude-ignore","clone":"git clone https://github.com/li-zhixin/claude-ignore.git","description":"A Claude Code PreToolUse hook that prevents Claude from reading files that match patterns in .claudeignore files, similar to how .gitignore works.","language":"JavaScript","stars":44,"topics":["claude","claude-code","ignore"],"license":"MIT","category":"mcp-servers","readme_excerpt":"claude-ignore A Claude Code PreToolUse hook that prevents Claude from reading files that match patterns in .claudeignore files, similar to how .gitignore works. 中文说明 / Chinese Documentation Features - Hierarchical .claudeignore support : Automatically discovers and applies .claudeignore files from the current directory up to the root - Supports standard gitignore-style patterns - Works as a Claude Code PreToolUse hook - Exits with code 2 when a path is ignored, preventing Claude from reading the file - Filters out comments (lines starting with #) and empty lines - Flexible project configuration with multiple ignore levels Installation Install globally to use across all projects: To update to the latest version: Quick Start Option 1: Auto Setup (Recommended) Run the init command in your project directory: This will: - Create a .claudeignore file if it doesn't exist - Set up .claude/settings.json with the necessary hook configuration - If .claude/settings.json already exists, it will show you the template configuration for manual merging Option 2: Manual Setup 1. Create a .claudeignore file in your project root with patterns to ignore: 2. Configure Claude Code to use this as a PreToolUse hook by adding to .claude/settings.json : Commands claude-ignore init Initializes claude-ignore configuration in your project: - Creates .claudeignore file from template if it doesn't exist - Creates .claude/settings.json with hook configuration if it doesn't exist - Shows template configuratio","default_branch":null,"files":null,"tree":[],"storefront":"/r/li-zhixin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/li-zhixin/claude-ignore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}