{"version":1,"type":"story","url":"https://digestai.news/story/guide-configure-claude-code-sub-agents-for-read-only-file-access","json":"https://digestai.news/story/guide-configure-claude-code-sub-agents-for-read-only-file-access.json","markdown":"https://digestai.news/story/guide-configure-claude-code-sub-agents-for-read-only-file-access.md","slug":"guide-configure-claude-code-sub-agents-for-read-only-file-access","headline":"Guide: Configure Claude Code sub-agents for read-only file access","summary":"A new tutorial provides a method for configuring Claude Code to function as a strictly read-only assistant, addressing user concerns about AI agents overwriting files or sending data externally. The guide, verified on Windows 11 as of November 3, 2026, focuses on using Anthropic's sub-agent feature to limit tool access.\n\nThe core technique involves creating a dedicated agent configuration file that explicitly lists only `Read`, `Glob`, and `Grep` in the `tools` field. According to the author, this technical restriction prevents the agent from editing, creating, or deleting files, unlike instructions in the prompt body which are merely suggestions. The article includes templates for four types of assistants, such as a basic reader and a research assistant, along with approval rules to define when a human must intervene.\n\nThe author clarifies that this setup does not eliminate all risks or guarantee efficiency gains but aims to clarify the scope of delegation. The guide is intended for users who have already installed Claude Code and are hesitant to use it for work tasks due to safety concerns. It does not cover installation, Mac/Linux verification, or advanced permission hooks in `settings.json`.","keyPoints":["Limiting Claude Code sub-agents to Read, Glob, and Grep tools prevents file editing and creation.","The guide provides templates for four read-only assistant types and approval rules for human intervention.","Verification was performed on Windows 11 using the Claude desktop app, with no Mac or Linux testing."],"whyItMatters":"This guide offers a practical safety measure for developers using AI coding assistants, reducing the risk of accidental data loss or unauthorized file modifications by enforcing strict tool permissions at the configuration level.","category":{"slug":"agents","name":"Agents & Tools","url":"https://digestai.news/category/agents"},"entities":{"companies":["Anthropic"],"models":["Claude Code"],"people":[]},"firstPublishedAt":"2026-11-10T03:48:00Z","updatedAt":"2026-11-10T03:48:00Z","sourceCount":1,"hasPrimarySource":false,"sources":[{"outlet":"note.com","title":"Creating a 'Read-Only' AI Assistant with Claude Code: Settings to Prevent Rewrites and Templates for Approval Rules to Decide When to Stop","url":"https://note.com/ai_recipe_note/n/ndcd5ca8a0483?hl=en","publishedAt":"2026-11-10T03:48:00Z","type":"press","primary":false,"lead":true}],"sourceNotes":null,"discussions":[],"thread":{"title":"AI Coding Agents Face Rising Security Threats","url":"https://digestai.news/thread/claude-code-finds-all-5-planted-vulnerabilities-in-8-minutes","storyCount":6},"cite":{"text":"Digest AI, \"Guide: Configure Claude Code sub-agents for read-only file access\", 10 November 2026, https://digestai.news/story/guide-configure-claude-code-sub-agents-for-read-only-file-access","publisher":"Digest AI","title":"Guide: Configure Claude Code sub-agents for read-only file access","datePublished":"2026-11-10T03:48:00Z","url":"https://digestai.news/story/guide-configure-claude-code-sub-agents-for-read-only-file-access"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse"}