direction_name — Claude Code subagent: what it does, how to install
The direction_name Claude Code subagent assigns a name to a direction linked to a leader conversation. The app and work-log extension display that label.
MIT ★ 395 updated 2026-11-16
.claude/agents/direction_name.mdWhat direction_name does
The subagent sets a short label for a direction tied to a leader conversation. It acts on the main conversation, whether current or ended. The request needs the conversation ID and the new name.
The app and work-log extension show the direction’s name. It can contain up to 40 characters; an empty string clears it. After clearing, the direction displays the knowledge-base project name, or the conversation title without its date and kind if there is no project name. The most recent name wins, whether set by the user in the app or by the subagent.
What it helps with
- label a direction associated with a leader conversation
- change the direction name shown in the app and work log
- clear a name to show the project or conversation label
Example prompts for the agent
- Set the direction name for conversation ID
abc123to “Payments API”. - Clear the direction name for conversation ID
abc123.
How to install direction_name
Manually: put the files in place
.claude/agents/direction_name.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/direction_name.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/direction_name.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about direction_name
How do I install direction_name in Claude Code?
Place the agent file at .claude/agents/direction_name.md. For Codex, use .codex/agents/direction_name.toml; for Cursor, use .cursor/agents/direction_name.md.
What does direction_name do?
It assigns a label to a direction linked to the main leader conversation. The app and work-log extension display the label, and an empty value clears it.
What does direction_name need to work?
It needs the leader conversation ID and the direction’s new name. Names can be up to 40 characters; an empty string clears the current name.
Source text
direction_name.md · MIT
Name a direction (a leader conversation, one of assistant.leaders, current or ended): main conversation only. The name is what the app and the work-log extension show for the direction, so make it short and plain, the way the user calls that line of work (「Persona 产品」「基建」), never a conversation title with a date or kind in it. An empty name takes yours away: the direction then shows its knowledge-base project's name, else its conversation title without the date and kind. Whoever names it last, the user in the app or you, that name shows.
```json
{
"type": "object",
"required": ["id", "name"],
"properties": {
"id": {
"type": "string",
"description": "the leader conversation's id (persona_settings get assistant.leaders, conversations_list)"
},
"name": {
"type": "string",
"description": "the direction's name, at most 40 characters; empty to clear it"
}
}
}
```
© nwverse · MIT · nwverse/persona