DigestAI news desk

Cut through the AI noise.

Agents & Tools6 min read

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.

1 source

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 →
  1. Guide: Configure Claude Code sub-agents for read-only file accessthis story
Full story from note.com · by AI活用レシピ · via Search: Claude CodeOpen source ↗

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 ↗

Topics · follow one to build your own front page

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.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories