How do you move from for loop to “Claude Code“ behaviour in our agents? Hint: tools, hooks for cognitive durability, context engineeering.