Agent Skillsletta-ai/letta-code › finding-agents

finding-agents

GitHub

用于在 Letta 服务器上查找其他 Agent。支持按名称、标签或模糊查询筛选,获取 Agent ID 及详情,适用于迁移记忆、定位特定 Agent 或结合消息搜索分析话题归属等场景。

src/skills/builtin/finding-agents/SKILL.md letta-ai/letta-code

Trigger Scenarios

用户询问拥有的其他 Agent 需要按名称或标签查找特定 Agent 需要获取 Agent ID 以进行记忆迁移 通过消息搜索获得 agent_id 后需获取详细信息

Install

npx skills add letta-ai/letta-code --skill finding-agents -g -y
More Options

Non-standard path

npx skills add https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/finding-agents -g -y

Use without installing

npx skills use letta-ai/letta-code@finding-agents

指定 Agent (Claude Code)

npx skills add letta-ai/letta-code --skill finding-agents -a claude-code -g -y

安装 repo 全部 skill

npx skills add letta-ai/letta-code --all -g -y

预览 repo 内 skill

npx skills add letta-ai/letta-code --list

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
--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 Agents

If the user has agents created outside Letta Code (via ADE, SDK, etc.), search without the tag filter:

letta agents list

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 name
  • description - Agent description
  • tags - Agent tags
  • blocks - Memory blocks (if --include-blocks used)

Related Skills

  • migrating-memory - Once you find an agent, use this skill to copy/share memory blocks
  • searching-messages - Search messages across all agents to find which agent discussed a topic. Use --all-agents to get agent_id values, then use this skill to get full agent details.

Finding Agents by Topic

If you need to find which agent worked on a specific topic:

  1. Load both skills: searching-messages and finding-agents
  2. Search messages across all agents:
    letta messages search --query "topic" --all-agents --limit 10
    
  3. Note the agent_id values from matching messages
  4. Get agent details:
    letta agents list --query "partial-name"
    
    Or use the agent_id directly in the Letta API

Version History

  • b7b6330 Current 2026-07-05 20:11

Same Skill Collection

.skills/adding-models/SKILL.md
src/skills/builtin/acquiring-skills/SKILL.md
src/skills/builtin/context-doctor/SKILL.md
src/skills/builtin/converting-mcps-to-skills/SKILL.md
src/skills/builtin/creating-mods/SKILL.md
src/skills/builtin/creating-skills/SKILL.md
src/skills/builtin/customizing-commands/SKILL.md
src/skills/builtin/customizing-statusline/SKILL.md
src/skills/builtin/dispatching-coding-agents/SKILL.md
src/skills/builtin/editing-letta-code-desktop-preferences/SKILL.md
src/skills/builtin/generating-mod-envs/SKILL.md
src/skills/builtin/image-generation/SKILL.md
src/skills/builtin/initializing-memory/SKILL.md
src/skills/builtin/messaging-agents/SKILL.md
src/skills/builtin/migrating-memory/SKILL.md
src/skills/builtin/modifying-the-harness/SKILL.md
src/skills/builtin/scheduling-tasks/SKILL.md
src/skills/builtin/syncing-memory-filesystem/SKILL.md

Metadata

Files
0
Version
b7b6330
Hash
4860b954
Indexed
2026-07-05 20:11

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 20:37
浙ICP备14020137号-1 $bản đồ khách truy cập$