Skip to content
Login

Agent CLI: feedback & crash triage ​

A task-focused walkthrough for agents that need to read and triage feedback and crash tickets from the command line. For the broader auth model and release/share operations, see the Agent Guide; for the full command surface, the CLI Reference.

Choose the right auth surface ​

@botiverse/hands-cli is the supported surface for interactive agent/admin actions and CI. The Raft manifest retains only agent-login and migration-help, plus the five feedback actions temporarily needed while support consumers finish migrating to this CLI flow. Other manifest actions are no longer exposed; their HTTP API routes are unchanged.

The Raft Agent Login session and the CLI session are intentionally separate. Do not scrape cookies or callback handoffs to bridge them. Inside a managed Raft agent, hands login uses the manifest's agent-login action and stores a refreshable Hands session for subsequent commands. Humans use the browser login flow; CI uses an explicit deploy token.

1. Authenticate the CLI ​

bash
npm install -g @botiverse/hands-cli
hands login
hands whoami

For app-scoped CI automation, an app admin can instead create a deploy token:

bash
hands deploy-tokens create <app> --name agent-cli --role publisher --json

Store the one-time raw token in a private secret manager, then export it as HANDS_AUTH_TOKEN for the CLI. Use a viewer token for read-only triage and publisher only when the script must mutate tickets or releases. Revoke and replace any token whose initial secret-store write fails.

2. Run the CLI ​

No global install needed:

bash
npm exec --package @botiverse/hands-cli -- hands whoami

(Pin a version with @botiverse/hands-cli@0.3.2 if you want reproducibility.) Every command below takes --json for scripting.

Triage commands ​

The first argument is the app slug (or id), e.g. raft-android.

bash
# List tickets, newest first (filterable)
hands feedback list raft-android --status open --kind crash
hands feedback list raft-android --kind crash --crash-type system_kill
hands feedback list raft-android --kind bug

# For an iOS app with external report separation enabled:
hands feedback list raft-ios --build-scope external

# Show one ticket: description, device context, attachments, comments.
# Use the full UUID from the submitted ticket response/reference.
hands feedback show raft-android 389d855b-0000-0000-0000-000000000000

# Triage: change status, closure reason, and/or (re)assign
hands feedback update raft-android 389d855b-0000-0000-0000-000000000000 --status in_progress --assignee me
hands feedback update raft-android 389d855b-0000-0000-0000-000000000000 --status resolved
hands feedback update raft-android 389d855b-0000-0000-0000-000000000000 --status closed --closure-reason not_planned
hands feedback update raft-android 389d855b-0000-0000-0000-000000000000 --closure-reason duplicate --duplicate-of 11111111
hands feedback update raft-android 389d855b-0000-0000-0000-000000000000 --assignee none   # unassign

# Reply to the reporter (public — they see it in their feedback thread)
hands feedback comment raft-android 389d855b-0000-0000-0000-000000000000 "reproduced on SGT-AL10; fix in progress"

# Staff-only internal note (needs feedback:triage or publisher role)
hands feedback comment raft-android 389d855b-0000-0000-0000-000000000000 "root cause: null listItemId in badge render" --internal

Status flow: open → in_progress → resolved → closed. Closing a ticket requires --closure-reason (completed, not_planned, cannot_reproduce, or duplicate), plus --duplicate-of <ticketId> when the reason is duplicate. no_longer_needed appears only on tickets the reporter closed themselves. Assignee is independent of status.

When an app enables external iOS report separation, the default list retains configured and unknown origins. --build-scope external shows mismatches; --build-scope all shows both. The reported bundle ID comes from the client and is a triage hint, not proof of identity.

An app publisher can enable this in iOS app settings after configuring at least one channel bundle ID. New reports with a mismatching ID do not create ordinary feedback or crash notification cards; dedicated reporter notifications still work. Reports and existing queued deliveries are not deleted.

The authenticated /api/apps/:appId/feedback/material-delta feed keeps all reports and its existing cursor semantics. Its build_origin field is configured, external, or unknown when enabled and null when disabled. Consumers can skip external reports, then advance their cursor only after processing the whole page. Channel changes immediately affect classification but do not create new delta entries for old reports; scan the list or rescan from an earlier cursor idempotently when those reports must be reconsidered.

Quick lookup by feedback id ​

When a user pastes a Hands feedback id, first identify the app slug. For Raft Android/mobile, that slug is normally raft-android.

New Hands feedback responses include the full UUID in both id and the copyable reference field, for example:

text
raft-android · 1.0.4 (1000400) · ticket 389d855b-0000-0000-0000-000000000000

Use that UUID directly:

bash
TICKET_ID=389d855b-0000-0000-0000-000000000000
APP=raft-android

hands feedback show "$APP" "$TICKET_ID"

The CLI now prints full UUIDs in human output. You can also pass a short id or any unique prefix — the feedback read/detail/attachment endpoints resolve it to the full ticket automatically (an ambiguous prefix returns 409; use a longer prefix or the full UUID):

bash
hands feedback show raft-android 389d855b   # 8-char short id works

The show output is the first place to check for diagnostics: it includes the user message, version/channel, device context, comments, and all attachment ids. Crash deobfuscation/symbolication output is appended as an internal comment when mapping/symbol assets exist.

For scripts, keep the raw JSON:

bash
hands feedback show "$APP" "$TICKET_ID" --json > ticket.json

Crashes ​

Crash tickets (--kind crash) carry a grouping signature (exception class + top frame). When the build's mapping.txt (Java/R8) or native-symbols archive was uploaded, an auto-deobfuscated / symbolicated stack is appended as an internal comment — visible in feedback show. To aggregate by signature across a fleet, call the API directly:

bash
curl -s -H "Authorization: Bearer $HANDS_BEARER_TOKEN" \
  https://hands.build/api/apps/<appId>/feedback/crash-groups

Attachments (diagnostics zips, logs) ​

feedback show lists each attachment's id, filename, and size. Download one with the CLI (accepts a slug and a short/prefix ticket id):

bash
hands feedback download-attachment raft-android 389d855b <attachmentId>
# → Saved 445539 bytes to raft-feedback-....zip   (use -o to choose the path)

Hands saves the raw bytes as-is — it does not unzip or interpret the contents. Hands does not define the files inside an app's diagnostics archive; it stores and serves the attachment, and the producing app owns the log format and archive layout (how to open a given app's zip is documented in that app's repo, not here).

The same downloads and ticket detail can also be fetched directly via REST (the API path uses the app UUID, not the slug):

bash
APP_ID="$(hands apps get "$APP" --json \
  | python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')"

curl -s -H "Authorization: Bearer $HANDS_BEARER_TOKEN" \
  "https://hands.build/api/apps/$APP_ID/feedback/$TICKET_ID"                       # ticket detail
curl -s -H "Authorization: Bearer $HANDS_BEARER_TOKEN" \
  "https://hands.build/api/apps/$APP_ID/feedback/$TICKET_ID/attachments/<attachmentId>" \
  -o diagnostics.zip                                                                     # raw attachment

Other environment knobs ​

  • HANDS_API — point the CLI at a non-production Worker (defaults to the production origin).
  • --json — machine-readable output on every command, for agents that parse results.