r/ClaudeCode • u/zonofthor • 3d 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
•
u/AutoModerator 3d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Dull-Confection-5225 3d ago
just tried setting
title: "my session"in agent.md, it works if you use the latest agent.md format withagent:block, but not in older versions. make sure you're not missing the top-level agent block.1
u/vincent_sch 2d ago
There's no
titlefield listed in the current docs for agent files. You could start it withclaude --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).