Plan · ox CLI · builds on Galex's 2026-10-12 ox feedback plan
ox feedback: one command, two depths
Anyone, human or AI coworker, logged in or not, can tell SageOx what got in the way. By default nothing sensitive is captured. --diagnose goes deeper, and only after you've seen and approved every byte.
Overview
How it flows
Decision Experience What's sent Safety Rollout
Decision
Three calls made, one left for you.
★ decided
One verb
ox bug becomes --diagnose. A stuck agent only needs to find one command.
vs. two commands: two pipelines, two things to discover ★ decided
Default sends only what you typed
Plus plain facts. No logs, env, paths or tokens, like firegoat.
vs. auto-attach logs: convenient, but leaks ★ decided
Refuse, don't redact
On a secret match nothing is sent, and it names the line to fix.
vs. silent redaction: you never see what was cut gate · Ryan
Works without login
The firegoat evals showed agents get stuck first, before they've logged in.
Proposed default; your call team context Galex drafted ox feedback on 2026-10-12. Kept from it: stdin only (arguments can leak through typo reporting), a preview before sending, and Ryan ruling on the name, since ADR-025 reserves "feedback" for plan review. New here: one command with two depths (--diagnose absorbs ox bug), and the open question of working without login. biggest riskA cloud endpoint has to ship first. It's private work. Until it exists, reports wait in a local outbox.
Experience
Four moments, mocked. Pick one.
Human AI coworker Secret caught --diagnose ~/src/my-project
$ echo "ox team list says no teams, but status shows 9" | ox feedback --type bug --file -checking for secrets… none✓ Sent to the SageOx team · receipt fbk_01a1…7c2 Stuck on something bigger? ox feedback --diagnose$
$ ox feedback --type bug --json --file - <<'EOF'init --no-input needs --endpoint while logged inran ox init --no-input in a fresh repo → "--no-input requires --endpoint"EOF{ "id": "fbk_01a1…9e4", "status": "sent", "guidance": "Tell the user it was reported, then retry with --endpoint."}
$ echo "login fails, my token is oxp_9f…" | ox feedback --file -✗ Not sent: line 1 looks like a SageOx token. Remove it and run again. Nothing left this machine.$
$ echo "ledger sync stuck since Tuesday" | ox feedback --diagnose --file -● collecting: ledger git state · last 200 log lines · daemon status● redacting: 3 paths → <home>, 1 token removedReview exactly what will be sent: ~/.local/state/sageox/feedback/fbk-draft.md 4.1 KB · sha256 9c1e…a07Send these exact bytes to SageOx? [y/N] y✓ Sent · receipt fbk_01a1…b31 Also file it as a public GitHub issue? ox feedback --diagnose --github fbk_01a1…b31
Mock output. Flag names are the proposed interface.
What's sent
The default lane carries firegoat's guarantee. Deeper data is opt-in and shown to you first.
| Data | Default | --diagnose |
|---|---|---|
| Your title and body | sent | sent |
| ox version · OS · arch | sent | sent |
| Human or which AI coworker | sent | sent |
| Logged in? (yes/no) | sent | sent |
| Team and repo IDs | when known | when known |
| Logs · ledger git state | never | after preview |
| Repro recipe · what was tried | never | after preview |
| Session link | never | --session |
| Env vars · file paths · tokens | never | never |
titleyou write typeyou pick actor · agent_typeautomatic authenticatedautomatic bundle--diagnose receipt idreturned
title
The first line of what you pipe in, 8–200 characters. It's what triage reads first, so it should name the problem.
type
bug · feature-request · feedback (default). Kebab-case slugs.
actor · agent_type
Human, or claude-code / codex / …. Same detector friction reports use, so it shows which AI coworkers struggle where.
authenticated
True or false, never the token. Separates first-run failures from logged-in ones.
bundle
Diagnose only: redacted logs, ledger git state, the repro recipe. Written to a draft file, hashed, and sent only if the bytes you approved are still the bytes on disk.
receipt id
fbk_…, printed or in --json. Lets SageOx reply about a specific report without knowing who you are.
Safety
Five layers. Each one fails closed.
Secret check on everything you typed
The patterns that clean session recordings, run as pass/fail.
A match refuses the whole send
Exit 1, names the line. Nothing leaves the machine.
Facts, never dumps
"Logged in: yes", not the token. IDs, not names.
--dry-run prints the exact bytes
Diagnose sends only the hash you approved.
Rate limit in the cloud
Per install, per day, so a looping agent can't flood the queue.
Rollout
Ship the light lane first; the deep lane reuses its pipe.
| ox feedback | --diagnose | friction (shipped) | |
|---|---|---|---|
| Started by | you or your AI coworker | you, when stuck | automatic |
| Carries | your words + facts | + redacted diagnostics | one error event |
| Consent | sending it | preview, then yes | telemetry setting |
Implementation notes
Command surface
ox feedback --file - [--type bug|feature-request|feedback] [--dry-run] [--json]. The report comes on stdin, never in arguments: ox's typo reporting can send arguments to SageOx (Galex's plan fixes that first). The first line is the title (8–200 chars); the body is ≤ 4 KiB, per Galex's limits.- Phase 2:
--diagnose(builds the bundle, writes a draft, asks y/N on the exact sha256),--yesfor non-interactive consent after--dry-run,--session, and--github <receipt>for the explicit public-issue step. This replaces the Aug 11ox bugdraft'sissue --preview/--submitsteps. - Top-level, in the Diagnostics group next to
doctor. Help text speaks to AI coworkers directly: "if ox confused you, failed you, or cost you tokens, say so here". --jsonviacli.PrintJSONTo:{"id","status":"sent|queued","guidance"}. Errors go to stderr, keeping stdout a single JSON document.
Files
cmd/ox/feedback.go+feedback_test.go: command, validation, payload, send, outbox fallback.internal/redaction: addDetect(b []byte) []Match, a fail-closed check built from the session redactor's patterns plus the generated gitleaks detectors. The Augox bugreview found no such gate exists (runPrePushSecretGatealways returns nil).--diagnosereuses it.internal/api:PostFeedback(ctx, payload) (id, error)on the existing client. Bearer token when logged in, otherwise the install'sclient_id.- Outbox: reuse
internal/telemetry/file_queue.gounder the XDG state dir. The daemon flushes it on its telemetry tick. Never blocks the CLI. - Endpoint via
endpoint.GetForProject(root), normalized. No new env vars, so noSAGEOX_*review is needed.
Tests
- Table-driven validation: title bounds, body size, type slugs, stdin body.
- Secret check, red-first: AWS key, GitHub PAT,
oxp_/oxt_tokens, a private-key block → exit 1, zero requests. Watch it fail before the check exists. - E2E on
httptest.Server: sent (id echoed), 429 (clear message), offline (queued, outbox written, daemon flush delivers). Isolate HOME/XDG and use a loopback endpoint. - BDD:
tests/acceptance/features/feedback/report-friction.feature, where Devon's AI coworker hits a confusing error, reports it, and gets a receipt. - firegoat: add a test where a stuck agent is never told about
ox feedback; pass = it finds and uses it.
Private follow-up
- Endpoint, per-install rate limit, routing and triage are server-owned. File a private issue in the owning repo and keep server details out of public PRs.
Open questions
- Should
DO_NOT_TRACKblock explicit feedback? Proposed: no. Sending is an explicit act, and--dry-runshows the bytes. - Mention it in
ox agent prime? Proposed: no, to protect the context budget. Put it in theguidancefield on ox error JSON instead, at the moment an agent is stuck.

