MCPcopy Create free account
hub / github.com/cli/cli / AgentNames

Function AgentNames

internal/skills/registry/registry.go:384–390  ·  view source on GitHub ↗

AgentNames returns the display names of all agents for prompting.

()

Source from the content-addressed store, hash-verified

382
383// AgentNames returns the display names of all agents for prompting.
384func AgentNames() []string {
385 names := make([]string, len(Agents))
386 for i, h := range Agents {
387 names[i] = h.Name
388 }
389 return names
390}
391
392// UniqueProjectDirs returns the deduplicated set of project-scope skill
393// directories from the Agents list, preserving insertion order.

Callers 1

promptInstallFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected