Skip to content

0.3.0: aliases, help levels, annotations, trailing arguments, synonyms, the help command, described candidates; the completion protocol as a contract - #18

Merged
Sunrisepeak merged 6 commits into
mainfrom
feat/0.3-generic-capabilities
Dec 4, 2026

Conversation

@speak-agent

Copy link
Copy Markdown
Collaborator

Sub-design: .agents/docs/2026-12-05-generic-cli-capabilities-design.md (asked for by openxlings/xlings's ecosystem design §22: xlings declares its command tree with cmdline only, and these are the gaps every program built with cmdline has in common).

  • G1 App::alias -- parsed, listed beside the name, completed by name; a name or alias two subcommands share is refused when made (std::invalid_argument).
  • G2 Level (common / more / expert) on commands and options -- --help, --help --all, --help --all --expert; the help says what it left out. Parse and completion take every level.
  • G3 annotate(key, value) -- into the snapshot, not interpreted; agent_skills::check(..., {.required_annotations}).
  • G4 Arg::trailing() -- the word that fills it ends the options (tool script x.lua --help passes --help on; tool exec box --net none -- make keeps --net the command's).
  • G5 synonyms({{word, instead}}) -- an unknown command with what to type (ParseError::hint), never a run.
  • G6 HelpOptions::help_command -- tool help a b is tool a b --help.
  • G7 DescribedCandidates -- candidates with descriptions and the CompletionContext they stand in.
  • G8 docs/completion-protocol.md -- the protocol and adapters as a contract; its examples are run by the tests.

Additive: with none of it chosen, help, completion and snapshot are as in 0.2.0 (the existing tests are unchanged). Version 0.3.0.

Tests: tests/capabilities_test.cpp (new), the skills fixture checks the required annotation.

Co-authored-by: speak-agent 248744407+speak-agent@users.noreply.github.com

Sunrisepeak and others added 6 commits December 5, 2026 04:08
…lt with cmdline need in common

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…, the help command and described candidates -- one declaration answers them all (G1-G7)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…of 0.3.0

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…guments, as --help does (G9)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
`lst` near `list` and its alias `ls` suggested both; it suggests 'list'.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants