Skip to navigation

agent-context

Print a JSON description of the whole adacli command set, for an AI assistant. adacli builds it from its own commands, so it matches the release you run. agent-context acts on adacli, so run it without an instance handle: adacli agent-context. For how AI assistants use adacli, see AI assistants.

Commands

CommandWhat it does
agent-contextPrints every command, its options, the global options, the exit codes, and the error format as JSON.

Examples

Save the description to a file for your AI assistant:

adacli agent-context > adacli-context.json

Count the commands:

adacli agent-context | jq '.commands | length'

Show the exit codes:

adacli agent-context | jq '.exitCodes'

Details

  • The JSON has these top-level fields: schema_version, version, usage, globalFlags, exitCodes, errorContract, envVars, guidance, commands, and removed.
  • Each item in commands has its path, description, requiresInstance, args, and options.
  • removed lists the commands and options that a release removed, with the release and the replacement.

For every option, run adacli agent-context --help.