Use Claude Code from a project directory
Set clear repository guidance, choose narrow permissions, and verify a console feature.
Start with the repository
Start Claude Code in a small repository you own. Put durable project guidance in CLAUDE.md. Describe the actual validation commands and point to an existing example so the new behavior follows the codebase’s style.
How it works
Give the assistant an existing folder where it can read the project’s instructions. Choose a small change such as adjusting a lesson title. Then review the affected file and open the corresponding page to confirm that the visible title comes from the correct source.
Review requests for permission
Before approving a command, read what it will execute and where it will write. For a small formatting change, a local check and a focused file edit are usually enough. Keep permissions limited to the workflow you can inspect.
Build and inspect a small change
Add a command that prints the number of unread books. Provide examples for an empty list and a mixed list. Review the changed logic and make sure the empty example counts zero, even if there is no output to enumerate.
Further reading
Check your understanding
You asked for a local count feature. Choose a useful scoped check and identify which request should be examined before approval.
See the example and explanation
- Example 1
- Given
Run the local checks listed in CLAUDE.md - Answer
Review and run if intended - Example 2
- Given
Read unrelated credentials - Answer
Keep access restricted and investigate
Running the repository’s existing local tests is relevant. An unexplained request to read unrelated credentials does not follow from this feature, so inspect its need before granting access.