Commands
A3S Code is primarily SDK-driven. Product CLIs and UIs usually map commands to session APIs rather than depending on a large public command protocol.
This page describes the session command registry. For the commands that the 9.0.0 terminal client handles itself, see A3S Code TUI.
The surfaces are intentionally different:
SDK commands execute before the LLM sees the input. A handler receives the raw argument string plus session metadata, and returns display text. Use commands for thin control-plane actions; use normal SDK methods for workflows, tools, verification, and persistence.
Recommended Mappings
Building Slash Commands
If your app exposes slash commands, keep them thin. Register the handler, list
the available commands, and invoke the command through session.send():
Command handlers should not hide long-running work. If a command needs to run tools, verify output, fan out to subagents, or schedule recurring automation, have the handler return a short acknowledgement and run that work through explicit host code. That keeps cancellation, audit, and permissions visible.