The Core Loop
Claude Code operates on a loop often called ReAct (Reason + Act):
- Observe: Look at user input and current environment (files, errors, git status)
- Think: Formulate a plan - "To fix this bug, I need to read app.py first"
- Act: Call a tool like
read_file('app.py') - Loop: Receive tool output and go back to step 1