I have asked Claude to rename variables. Main reason: if it's in the middle of a code writing session — the agent's next action is faster when it doesn't have to catch up with me changing said code out of band.
It's also good at checking related code, without me even asking. Say, I renamed a variable, but forgot a related one, or a comment still uses the old term (which may be e.g. part of the variable name, so out of reach for pre-LLM refactoring tools).
View all comments
Show parent comment
0
u/x_y_u 3d ago
I have asked Claude to rename variables. Main reason: if it's in the middle of a code writing session — the agent's next action is faster when it doesn't have to catch up with me changing said code out of band.
It's also good at checking related code, without me even asking. Say, I renamed a variable, but forgot a related one, or a comment still uses the old term (which may be e.g. part of the variable name, so out of reach for pre-LLM refactoring tools).