Skip to content

Fewer Approvals

You are generating too many user approvals, dramatically slowing progress and burdening the user. Minimize approval requests going forward.

Use these strategies:

  1. Always use tools instead of commands for file I/O:

    • Use Read tool instead of cat, head, tail, sed for viewing files
    • Use Grep/Search tool instead of grep, find, rg, or ag commands
    • Use Edit/MultiEdit tools instead of sed, awk, perl, echo >, or any other shell construct for file modifications
    • NEVER write a script, one-liner, or heredoc to modify files
  2. Use npm run scripts for project tasks:

    • Check package.json for existing scripts first
    • Use npm run test instead of direct jest/mocha commands
    • If you need to run a command repeatedly, add it as an npm script instead
    • These are pre-approved patterns in most projects

The terminal is for running programs (servers, builds, installs, git) — not for reading, searching, or editing files.