Skip to content

agents list + agents tools list: expose search / archived / sort / cursor filters #6

@longevityboris

Description

@longevityboris

Context

Flagged by Codex audit. get_agents_route and get_tools_route both support a richer filter set than the CLI exposes.

Missing filters

agents list: search, archived, show_only_owned_agents, created_by_user_id, sort_by, sort_direction, cursor.

agents tools list: search, types (repeatable: system/client/webhook/mcp), show_only_owned_documents, created_by_user_id, sort_by, sort_direction, cursor.

Use case

Large workspaces need filtered views; agents triaging their own agents need show_only_owned_agents; automations need cursor pagination.

Files

  • src/cli.rs (AgentsAction::List, AgentsToolsAction::List)
  • src/commands/agents/list.rs, src/commands/agents/tools/list.rs
  • src/commands/agent_info.rs

Acceptance

  • Every filter translates to the matching query param.
  • Integration tests assert at least search, sort_by, cursor wire correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions