> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beacon.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# beacon feedback

> Send the Beacon team a bug report or feedback, drafted with your coding agent and sent only after you approve it

## Overview

`beacon feedback` sends the Beacon team a bug report or a piece of feedback. It is built for a
coding agent to draft with you: the agent writes the answers, shows you exactly what will be
sent, and sends it only after you say yes. You can also run it yourself.

```bash theme={null}
beacon feedback schema
```

```bash theme={null}
beacon feedback send --file draft.json --print
```

```bash theme={null}
beacon feedback send --file draft.json --yes
```

Nothing is sent by a hook, a plugin or a background job. A report leaves your machine only when
`beacon feedback send` runs without `--print` and you confirm it, at the terminal or by having
your agent pass `--yes` after you approved what `--print` showed.

## The draft

A draft is one JSON object: `kind` and that kind's answers by name. `beacon feedback schema`
(or `--json`) lists the questions.

| Kind | Answers |
| - | - |
| `bug` | `summary` (one line, at most 200 characters), `trying`, `expected`, `actual` (at most 4,000 characters each), and optional `context` (at most 8,000) |
| `general` | `feedback` (at most 8,000 characters) and optional `area` (one line) |

```json theme={null}
{
  "kind": "bug",
  "summary": "beacon scan exits 1 on an empty runtime log",
  "trying": "Run beacon scan right after installing, before any agent session.",
  "expected": "No findings and exit 0.",
  "actual": "It printed \"no events\" and exited 1."
}
```

The CLI refuses a draft with an unknown key, an answer of the other kind, a blank or over-long
answer, or a character that could hide text in the terminal review (carriage returns, escape
sequences, bidirectional overrides), and names the key at fault.

## What is sent

`--print` shows the report exactly as it will be sent and sends nothing; `--print --json` adds
the request body. Before anything is shown, every answer goes through the same secret redaction
Beacon applies to the runtime log, and your home directory is written as `~`.

The CLI adds an environment block from its own state: the Beacon version and edition, operating
system and architecture, install mode and method, the coding agent whose shell ran the command,
whether endpoint capture is installed, whether it forwards to Beacon Cloud, the system log's
access mode, the configured runtimes, and whether the report is signed. Each value is a short
token; no path, hostname, user name, repository, device or organization ID is ever included.

Each report has an id derived from exactly what it sends, keyed with a secret kept in
`~/.beacon/feedback/report-id.key` that never leaves your machine. Sending the same report again
after a lost response is stored once, the same words from two people are two reports, and the id
reveals nothing about text that redaction removed.

## Signed and anonymous reports

Reports go to Beacon Cloud (`https://api.beacon.sh/v1/feedback` for beacon.sh), or to the Beacon
service you signed in to. A report is signed, so the team can follow up, only when your sign-in
allows sending feedback; otherwise it is anonymous, and `--print` says why. `beacon login` does
not ask for that permission yet, so for now reports are anonymous, and attaching the session
(below) is not available yet. `--anonymous` never sends the sign-in.

## Attach the session

`--attach-share` first shares the agent session the report is about to beacon.sh, exactly as
[`beacon share`](https://docs.beacon.sh/cli/share) would, and links the shared trace to the report, so the Beacon
team can read what happened. By default it is the session the command runs inside; name
another with `--share-session <id>` (and `--share-harness` to pick a runtime). It needs a
sign-in that can both sign reports and share traces, which `beacon login` does not grant yet.

```bash theme={null}
beacon feedback send --file draft.json --attach-share --print
```

Uploading a whole session is a bigger step than sending a few answers, so it is a separate
opt-in:

* `--print` names the session and how many events it holds, and shows the trace the report
  will link, before anything is sent. A later `--yes` shares the session as it is by then,
  which includes what was recorded after the review.
* At a terminal, sharing the session is its own question, asked before the report's, and the
  upload sends exactly the events the question named.
* A new trace can be opened by anyone with its link (`direct`), never listed publicly. A
  session you shared before keeps its visibility, so a private trace stays private.
* If the share fails, the report is not sent; running the same command again resumes it.

It needs a `beacon login` sign-in that can both send feedback and share traces, because
beacon.sh links a report only to a trace of the person who sent it. An API key from
`BEACON_API_KEY` is never used for it.

## Telemetry opt-out

`BEACON_TELEMETRY=0` and `DO_NOT_TRACK` turn sending off: `send` refuses and points to
[GitHub issues](https://github.com/Asymptote-Labs/agent-beacon/issues). `--print` still works.

## Flags

### `beacon feedback send`

| Flag | Description |
| - | - |
| `--file <path>` | The draft, or `-` for standard input (then `--print` or `--yes` is required). |
| `--print` | Show the exact report and send nothing. |
| `--yes` | Send without asking. For an agent whose person approved what `--print` showed. |
| `--anonymous` | Send without the Beacon sign-in. |
| `--json` | Print JSON. |
| `--auth-url <url>` | The Beacon service to send to; defaults to `BEACON_AUTH_URL`, then `https://beacon.sh`. |
| `--attach-share` | Share the agent session to beacon.sh first and link it to the report. |
| `--share-session <id>` | With `--attach-share`, the session id (or a unique prefix) to share instead of the current one. |
| `--share-harness <runtime>` | With `--attach-share`, only sessions of this runtime. |

Without `--yes`, `send` asks at a terminal and refuses without one or in CI.

### `beacon feedback schema`

| Flag | Description |
| - | - |
| `--kind <bug\|general>` | Only that kind. |
| `--json` | Print JSON. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.