The term agent is very broad. It encompasses all sorts of levels of function. Claude code runs when you give it instructions, and it will keep running until it finishes those instructions but then it stops.
A persistent agent would find a new task. Even if the user didn't explicitly tell it to work on that.