finding-agents
GitHub用于在 Letta 服务器中查找、列出或搜索其他智能体。支持按名称、标签模糊匹配,协助用户迁移记忆或获取特定智能体详情。
Trigger Scenarios
Install
npx skills add letta-ai/letta-code --skill finding-agents -g -y
SKILL.md
Frontmatter
{
"name": "finding-agents",
"description": "Find other agents on the same server. Use when the user asks about other agents, wants to migrate memory from another agent, or needs to find an agent by name or tags."
}
Finding Agents
This skill helps you find other agents on the same Letta server.
When to Use This Skill
- User asks about other agents they have
- User wants to find a specific agent by name
- User wants to list agents with certain tags
- You need to find an agent ID for memory migration
- You found an agent_id via message search and need details about that agent
CLI Usage
letta agents list [options]
Options
| Option | Description |
|---|---|
--name <name> |
Exact name match |
--query <text> |
Fuzzy search by name |
--tags <tag1,tag2> |
Filter by tags (comma-separated) |
--match-all-tags |
Require ALL tags (default: ANY) |
--include-blocks |
Include agent.blocks in response |
--shared |
List agents shared with the current user |
--limit <n> |
Max results (default: 20) |
Common Patterns
Finding Letta Code Agents
Agents created by Letta Code are tagged with origin:letta-code. To find only Letta Code agents:
letta agents list --tags "origin:letta-code"
This is useful when the user is looking for agents they've worked with in Letta Code CLI sessions.
Finding All Accessible Agents
List agents owned by the current user, then list agents shared with them:
letta agents list
letta agents list --shared
Use --query <text> with either command to search by name.
Examples
List all agents (up to 20):
letta agents list
Find agent by exact name:
letta agents list --name "ProjectX-v1"
Search agents by name (fuzzy):
letta agents list --query "project"
Find only Letta Code agents:
letta agents list --tags "origin:letta-code"
Find agents with multiple tags:
letta agents list --tags "frontend,production" --match-all-tags
Include memory blocks in results:
letta agents list --query "project" --include-blocks
Output
Returns the raw API response with full agent details. Key fields:
id- Agent ID (e.g.,agent-abc123)name- Agent namedescription- Agent descriptiontags- Agent tagsblocks- Memory blocks (if--include-blocksused)
Finding Agents by Topic
If you need to find which agent worked on a specific topic:
- Search messages across all agents:
letta messages search --query "topic" --all-agents --limit 10 - Note the
agent_idvalues from matching messages - Get agent details:
Or use the agent_id directly in the Letta APIletta agents list --query "partial-name"
Version History
-
6155d9f
Current 2026-11-02 16:45
移除过时的 migrating-memory 内置技能相关代码
-
13aad83
2026-09-22 06:45
修复A2A协议下发现当前发送者作为Agent的问题
-
b94afce
2026-08-27 15:21
移除对已废弃的 searching-messages skill 的过时引用。
- b7b6330 2026-07-05 20:11


