Developer ToolsCLI

ba assist and Admin Agent

ba assist [--session <id>] opens an administrative conversation with the Tenant's single platform-managed Admin Agent. Unlike ordinary ba chat, BA Assist exposes a fixed catalog of hosted resource Tools and recovers durable approval state.

Before you begin

Complete CLI setup and authentication; stdin and stdout must both be TTYs. An API key grants Tenant-wide backend access, so follow the security and credentials and Tenant isolation boundaries.

Start or resume

ba assist
ba assist --session ss_0123456789abcdef

The CLI requires exactly one visible Admin Agent and never falls back to a tenant-created Agent. Without --session, its first successful Turn materializes a new Admin Agent Session. With --session, it verifies that the Session belongs to that Admin Agent. On exit from materialized work, it prints the Session ID and exact ba assist --session <id> resume command.

Supported administration

The Admin Agent can perform these implemented operations:

ResourceSupported operations
Tenant settingsRead and update
AgentsList, read, create, update, and delete
ProvidersList, read, and test an already-stored Provider
SandboxesList, read, create, update, and delete
SkillsList and read
PromptsList, read, create, update, and delete
TasksList, read, create, update, delete, and run
Task runsList, read, read messages, and cancel
UsageQuery totals and grouped buckets
SessionsList, read messages, and delete
ArtifactsList safe metadata

Tools execute on the platform under trusted Tenant, Admin Agent, and active Session scope. Lists are bounded, targeted mutations use platform IDs, and returned values omit credentials, internal object keys, signed URLs, and other internal-only fields. API-key management, Provider credential mutation, Skill mutation, avatar mutation, and Artifact content or deletion are unavailable.

Approval policy

Reads, creation, stored Provider tests, Task runs, and Task-run cancellation proceed without approval. Tenant updates and supported resource updates or deletes pause for explicit approval. The active BA Assist Session and the Admin Agent cannot delete or mutate themselves even after approval.

The prompt shows the trusted Tool name and validated JSON input. Answer yes to approve that exact call or no to deny it; denial executes no Tool and still allows the Agent to respond.

Expected: Tenant settings loaded.
Tool: tenant {"action":"get"}
Expected proposal: update an Agent name
Tool: agents {"action":"updateById","agentId":"ag_AAAAAAAAAAAAAAAA","changes":{"name":"Release Agent"}}
Approve? y/n
n
Expected: Denied; no update was executed.

Recover pending approvals

Resuming a Session first verifies it, loads durable approvals, and shows pending Tool names and inputs one at a time in stored order. Each decision persists before the next. After all decisions exist, BA Assist rejoins the single durable continuation and renders its progress before opening a clean TUI.

A repeated matching decision rereads trusted state and rejoins the same continuation rather than executing twice. Resume again with the printed command if the continuation has not settled.

Interrupt safely

Ctrl+C or Ctrl+D before a recovery decision leaves the approval pending and prints a resume receipt. After a decision admits the continuation, interruption detaches the local reader without canceling the durable platform work; resume to rejoin it. During an ordinary active TUI Turn, Esc or Ctrl+C aborts the client request, but cannot undo a Tool side effect already completed.

Reference

On this page