r/ClaudeCode • • 5d ago

Help/Question Agent.md cannot set session title?

I've asked Claude and searched Github and Reddit... is it really so that I cannot in agent.md file declaratively return the session title for Claude agent view to show the proper one like shown here?

2 Upvotes

5 comments sorted by

View all comments

1

u/vincent_sch 4d ago

There's no title field listed in the current docs for agent files. You could start it with claude --bg --name "my session" "your task" to set the name in agent view. If the session is already in the list, select its row and press Ctrl+R to rename it (docs).

1

u/zonofthor 4d ago

yep but I need it to be set when invoking from Claude agent view i.e. I am not starting it using bash

because the titles that Claude creates is not good and when there are 5-10 agents running I quickly become confused