Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you know something is covered by the documentation it's useful to provide a link, especially if that documentation is difficult to find.

(I couldn't find that documentation when I went looking just now.)



Step 1: https://docs.anthropic.com

Step 2: Type 'Allowed Tools'

Step 3: Click: https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-headl...

Step 4: Read

Step 5: Example --allowedTools "Read,Grep,WebSearch"

Step 6: Profit?


The original question was about this:

> allow zoned access enforcement within files. I want to be able to say "this section of the file is for testing", delineated by comments, and forbid Claude from editing it without permission.


I think you missed a critical step: 1.5: know that "allowed tools" is the correct incantation required to summon the relevant documentation; which, at least to me, is not obvious at all in the context of the OP.


So you've completely misunderstood what the discussion is about...

Maybe rtft ? Read the fucking thread.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: