CLAUDE.md

From wikieduonline
Jump to navigation Jump to search

Instructions you write to give Claude persistent context.


## Shell command style

When reading multiple files via Bash, avoid constructs that trigger unnecessary
permission prompts:
- Don't use `for` loops with variable expansion (e.g. `for f in ...; do cat "$f"; done`).
- Don't use `xargs -I{} sh -c '...'` or similar exec wrappers.

Instead, either:
- Use the Read tool directly on each file, or
- Write literal `cat`/`echo` statements per file (no loop variables), e.g.:
  `echo "=== a.md ==="; cat "/path/a.md"; echo "=== b.md ==="; cat "/path/b.md"`

These forms match Claude Code's built-in read-only command allowlist and run
without approval prompts.

Related

See also

Advertising: