Guide: Configure Claude Code sub-agents for read-only file access
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.
Key points
- 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.
The 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.
The 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.
The story so far
6 episodes →- Guide: Configure Claude Code sub-agents for read-only file accessthis story
Creating a 'Read-Only' AI Assistant with Claude Code: Settings to Prevent Rewrites and Templates for Approval Rules to Decide When to Stop
note.com · 10 November 2026
Loading the full article…
This text was published by note.com and written by AI活用レシピ. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- A thought on why Docker Sandboxes might be the only choice for safely letting Claude Code 'run autonomously'. · 1 src
- Apple reportedly hires manager to build AI agent rivaling OpenAI, Meta, Anthropic · 2 src
- Sarvam AI ships 105B checkpoint for on-premises enterprise agents at $0.15 per million tokens · 1 src
- Anthropic adds Code and Projects tabs to Claude mobile app · 1 src
- Visa CLI adds card verification for AI agents and OUSD payouts · 1 src
Comments
via GitHub Discussions