Answer: Install the `gitignore-read-files-guard.ts` plugin using the cline plugin install command with the GitHub URL and `--cwd .`. The guard uses the `beforeTool` runtime hook to return `{ skip: true }` when a `read_files`, `editor`, or `apply_patch` call targets an ignored workspace file. Status: Confirmed Entry: tool/cline/permissions-and-security/block-ignored-file-access Revision: 1 Digest: sha256:22993c9ec6b71f45 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:45Z Last changed: 2026-11-13T03:07:45Z Last verified: 2026-11-20T12:30:53Z Next check: 2026-11-21T12:30:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Plugin file | gitignore-read-files-guard.ts | [1] | 2026-11-20 Install command | cline plugin install https://github.com/cline/cline/blob/main/sdk/examples/plugins/gitignore-read-files-guard.ts --cwd . | [1] | 2026-11-20 Runtime hook | beforeTool | [1] | 2026-11-20 Hook return value | { skip: true } | [1] | 2026-11-20 Affected tool calls | read_files | [1] | 2026-11-20 Sources: [1] Cline. "Plugin Examples". https://docs.cline.bot/sdk/plugin-examples.md Role: primary. Accessed: 2026-11-20T12:30:53Z Quote: "Use `gitignore-read-files-guard.ts` to block tools from reading or editing files ignored by workspace `.gitignore` files" (Supports: Plugin file) Quote: "cline plugin install https://github.com/cline/cline/blob/main/sdk/examples/plugins/gitignore-read-files-guard.ts --cwd ." (Supports: Install command) Quote: "The guard uses the `beforeTool` runtime hook." (Supports: Runtime hook) Quote: "the hook returns `{ skip: true }`" (Supports: Hook return value) Quote: "When a `read_files`, `editor`, or `apply_patch` call targets an ignored workspace file" (Supports: Affected tool calls) Published: 2026-11-20T06:00:21Z Snapshot SHA-256: e3483cc5e7544ce14cc940bbc47ca5b2ed4d16b9744f87d29c9f42ebebefebc2 (captured 2026-11-13T03:07:44Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:07:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:30:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:30:53Z Last attempt: 2026-11-20T12:30:53Z Notes and limitations: Extracted automatically from a single official source (section "Block Ignored File Access"). Related: https://latestn.com/tool/cline/permissions-and-security/cline-action-approval Does Cline require my approval before it runs commands or edits files? https://latestn.com/tool/cline/permissions-and-security/connector-security-settings What security settings are available for Cline Telegram and Discord connectors? https://latestn.com/tool/cline/permissions-and-security/enable-yolo-mode How do I enable YOLO mode in Cline? https://latestn.com/tool/cline/permissions-and-security/authentication-methods What authentication methods does the Cline API support? https://latestn.com/tool/cline/permissions-and-security/bedrock-api-key-iam-policy What IAM policy does a Bedrock API key use by default with Cline? https://latestn.com/tool/cline/permissions-and-security/bedrock-security-best-practices What security best practices should I follow when configuring AWS Bedrock credentials in Cline? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/permissions-and-security/block-ignored-file-access/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cline/permissions-and-security/block-ignored-file-access POST: https://latestn.com/dispute/tool/cline/permissions-and-security/block-ignored-file-access with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/permissions-and-security/block-ignored-file-access?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I block ignored file access in Cline with a plugin? Revision 1, last verified 2026-11-20T12:30:53Z. https://latestn.com/tool/cline/permissions-and-security/block-ignored-file-access (accessed 2026-11-21T10:07:29Z). @misc{LatestN_tool_cline_permissions_and_security_block_ignored_file_access_r1, title = {How do I block ignored file access in Cline with a plugin?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/permissions-and-security/block-ignored-file-access}}, note = {Revision 1; digest sha256:22993c9ec6b71f45; last verified 2026-11-20T12:30:53Z; accessed 2026-11-21T10:07:29Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cline/permissions-and-security/block-ignored-file-access