Agent Sandbox Registry

agent-sandbox

Decision: CLI command reduction (60+ → 43 commands)

无中文版

.agents/notes/superseded/2026-09-23-cli-command-reduction.md

Decision: CLI command reduction (60+ → 43 commands)

Status: superseded Superseded-by: 2026-10-13-fixed-command-surface Implemented: 2026-09-23

Problem

For the sake of feature completeness, the early CLI accumulated more than 60 commands, including four complete subcommand groups: auth (login/logout/status/ whoami), session (save/load/list/delete), secret (set/get/list/delete), and skill (list/install/run). These commands had the following problems:

  1. auth group: authentication is entirely driven by environment variables / config; standalone login/logout/whoami commands are legacy of an OAuth flow and have no real use under the current API-Key + AK/SK model.
  2. session group: session persistence is still at the low-level implementation stage of the session/ module; exposing it via CLI is premature and there are no real user scenarios.
  3. secret group: secret management is done on the FC platform side via environment-variable injection; the SDK does not need standalone secret CRUD commands.
  4. skill group: the Skill concept is not yet clearly defined in the current version (its boundary with custom commands / templates is blurred); exposing empty-shell commands undermines user trust.

Command-count bloat also made abx --help verbose, raised the cognitive load for new users, and broadened maintenance/testing surface.

Decision

Remove the four subcommand groups auth, session, secret, and skill (~17 commands total), reducing the CLI's total command count from 60+ to 43.

Retained command structure (43 commands)

Removal principles

API Design

N/A — this decision does not involve API changes. It removes CLI subcommand groups from the LazyGroup registration and the commands module directory; no Python-level SDK APIs are added, removed, or modified.

Alternatives considered

Dependencies

Test Strategy

Acceptance criteria

Implementation