Add list-subagents and delete-subagent CLI commands#129
Merged
Conversation
Mirror the existing skill `list`/`delete` commands for sub-agents,
wrapping the SkillServer subagent endpoints already exposed by the
HTTP API and Netclaw.SkillClient:
- `list-subagents` -> GET /subagents/ (supports `--output json`, no auth,
mirroring `list`)
- `delete-subagent <name> <version>` -> DELETE /subagents/{name}/{version}
(API-key authenticated, mirroring `delete`)
Reuses the existing HTTP client, auth gating, and output helpers. Adds
IReadOnlyList<SubAgentSummary> to the source-generated JSON context for
trim-safe JSON output. Updates `--help`/usage text and the CLI README,
and adds parser + dispatch/auth tests mirroring the skill command tests.
Claude-Session: https://claude.ai/code/session_01VYvvEehJtr1uEVFHxzjg7P
Merged
Aaronontheweb
added a commit
that referenced
this pull request
Jul 11, 2026
Cut prerelease 0.4.0-beta.6 covering the new list-subagents and delete-subagent CLI commands (#129).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the two missing sub-agent management commands to the
skillserverCLI, bringing it to parity with the skill commands and with the SkillServer HTTP API +Netclaw.SkillClient, which already expose full sub-agent list/delete support.list-subagents->GET /subagents/(supports--output json, no auth required, mirroringlist)delete-subagent <name> <version>->DELETE /subagents/{name}/{version}(API-key authenticated, mirroringdelete)Previously the CLI wrapped only the skill side (
list,delete,versions) plus the sub-agent publish/download commands, but had no way to enumerate or remove published sub-agents.Changes
ListSubAgentsCommandandDeleteSubAgentCommand, mirroringListCommand/DeleteCommand(confirmation prompt,--yes, HTTP error handling).Program.csdispatch; addlist-subagentsto the no-auth allowlist alongsidelist.IReadOnlyList<SubAgentSummary>to the source-generatedCliJsonContextfor trim-safe JSON output.--help/usage text and the CLIREADME.md.SkillServerClient.ListSubAgentsAsync/DeleteSubAgentVersionAsyncalready existed).Testing
dotnet buildclean (0 warnings; repo usesTreatWarningsAsErrors).dotnet test(CLI test project) green — 112 tests.Parse_ListSubAgentsCommand_WithJsonOutput,Parse_DeleteSubAgentCommand_WithArgs) and dispatch/auth tests (ListSubAgents_RequiresServerUrl,ListSubAgents_DoesNotRequireApiKey,DeleteSubAgent_RequiresApiKey) mirror the existing skill list/delete tests.linux-x64publish passes the trim-warning-as-error gate; smoke-tested the trimmed binary (--help,list-subagents,delete-subagent).https://claude.ai/code/session_01VYvvEehJtr1uEVFHxzjg7P