Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLI
Assigneesstack72

#276 Add 'swamp workflow list' as alias for 'swamp workflow search'

Opened by bixu · 5/7/2026· Shipped 5/7/2026

Problem

AI agents (and humans coming from other CLIs like kubectl, docker, gh) instinctively reach for list as the verb for enumerating resources. With swamp, swamp workflow list errors out:

$ swamp workflow list --json
"list" is not a subcommand of "workflow".

  Did you mean one of these?

    swamp workflow get list
    swamp workflow run list
    swamp workflow validate list

The "did you mean" hint is misleading because list there is a positional argument (a workflow named "list"), not the enumerate-everything command the user actually wanted. The correct command is swamp workflow search (with empty query returning all workflows).

This costs an extra round-trip for every agent that hits it, and the suggestion list actively points away from the right answer.

Proposed solution

Add list as an alias / synonym for search on resource-enumerating commands, at minimum:

  • swamp workflow listswamp workflow search
  • swamp model listswamp model search (same ergonomic gap exists)
  • Any other <resource> search commands

list with no query would behave identically to search with no query (return all). list <query> could either be rejected or treated as search <query> — either is fine, but the bare list case is the important one.

Alternatives considered

  1. Improve the "did you mean" hint to suggest search when the user types list. Cheaper but doesn't fix the muscle-memory mismatch — agents still have to learn swamp-specific vocabulary.
  2. Rename search to list. Breaking change, and search is the more accurate verb when a query is provided.
  3. Document it. Already documented, but agents don't read docs before their first try.

Adding list as an alias is the smallest change with the biggest ergonomic win, especially for agent integrations.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGEDSHIPPED

Shipped

5/7/2026, 4:25:03 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/7/2026, 3:39:14 PM

Sign in to post a ripple.