# Guide: Configure Claude Code sub-agents for read-only file access

Digest AI · Agents & Tools · published 2026-11-10T03:48:00Z

Canonical: https://digestai.news/story/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.

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`.

## 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.

## Why it matters

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.

## Sources

1. [Creating a 'Read-Only' AI Assistant with Claude Code: Settings to Prevent Rewrites and Templates for Approval Rules to Decide When to Stop](https://note.com/ai_recipe_note/n/ndcd5ca8a0483?hl=en) (note.com, 2026-11-10)

Part of the developing story: [AI Coding Agents Face Rising Security Threats](https://digestai.news/thread/claude-code-finds-all-5-planted-vulnerabilities-in-8-minutes) (6 stories)

## Cite

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

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. 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
JSON: https://digestai.news/story/guide-configure-claude-code-sub-agents-for-read-only-file-access.json
