Repository navigation
Commit b06e33f
feat(agent): add optional title field for better display in agent lists
This PR addresses issue anomalyco#4825 where agent descriptions are too long
and unreadable in the `/agents` command list.
**Changes:**
- Added optional `title` field to Agent config schema (recommended: 2-5 words)
- Updated agent dialog UI to prioritize title over description
- Added fallback logic:
1. Use `title` if provided
2. Otherwise truncate `description` to 60 characters
3. Fall back to agent name if neither exists
**Benefits:**
- Agent lists are now readable with concise titles
- Long descriptions can still be used for AI context
- Backward compatible - existing agents work without changes
- Users can optionally add `title` to new or existing agents
**Example:**
```json
{
"title": "Database Query Expert",
"description": "This agent specializes in writing and optimizing SQL queries..."
}
```
In the agent list, this will show as "Database Query Expert" instead of
the full description.
Fixes anomalyco#4825
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 1d041c8 commit b06e33f
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | | - | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
| |||
0 commit comments