User-powered AtBot command provider

Run AtBot with a trusted, owner-supplied command wrapper around the user's selected model or CLI. It receives one JSON request on stdin and must return one JSON object on stdout. This is a generic transport; native Codex/Claude command syntax and login have not been qualified.

A provider configuration can select the transport explicitly

{
  "name": "user-cli",
  "kind": "command",
  "model": "user-selected-model",
  "command": ["/absolute/path/to/trusted-wrapper"],
  "egress_class": "remote",
  "timeout_seconds": 60
}

Use remote classification when the wrapper or underlying CLI sends data to a hosted model. Existing AtBot remote-egress authorization, sensitivity checks and explicit remote invocation still apply. User-funded processing does not imply local-only data processing. Local classification requires an actual local-only wrapper/model. The operator configures this boundary; AtBot cannot sandbox or verify arbitrary executables.

The request contains format atbot-command-request-v1, system, prompt, schema and model. Prompt content is passed as data, never interpolated into an argv or shell command. The process executes in a disposable directory. Requests are capped at 256 KiB and output at 1 MiB with a configurable deadline up to 300 seconds. Diagnostics are not echoed into service results. POSIX process groups are stopped on completion or failure. On Windows only the direct process is terminated; use a wrapper that owns child cleanup before qualifying that platform.

The process inherits the user's environment for existing CLI login and model configuration. Configure only trusted commands. The wrapper must enforce its own tool and network restrictions. AtBot's existing proposal validation remains in place, and AtMem retains authority over memory admission and changes.

Availability reports executable presence, not authenticated model health. No real model or paid CLI call was used in the command transport's fixture tests.

Configure from AtMem CLI

atmem atbot configure --provider user-cli --model user-selected-model \
  --command-json '["/absolute/path/to/trusted-wrapper"]' --command-egress remote

Use --command-egress local only for a local-only model. Configuration files stay owner-private. The profile defaults to remote egress because a locally launched CLI can still send data to a hosted provider. Existing remote invocation and sensitivity rules continue to control what the companion may submit. Use environment-based CLI login and credentials; never embed secrets in command arguments.