# Executive briefs with Claude

`spiderfootplus summarize` turns a finished scan into a short, plain-language
brief for the people who own the target: what the grade means, what to fix
first and why, what is exposed, and a checklist of next steps. Claude writes
it, using **your own** Anthropic API key. It is optional: nothing is sent to
Anthropic unless you run this command.

```sh
export ANTHROPIC_API_KEY=sk-ant-...        # or: spiderfootplus keys set anthropic
spiderfootplus scan example.com
spiderfootplus summarize                   # the newest scan; prints Markdown
spiderfootplus summarize b565f370 --out brief.md
```

Get a key at [console.anthropic.com](https://console.anthropic.com). Usage is
billed to your Anthropic account; the command prints the tokens used.

## Options

| Option | Default | What it does |
| --- | --- | --- |
| `[scan]` | `last` | Which scan: `last`, a short id, the full id, or a target you scanned |
| `--model` | `claude-opus-5-5` | The Claude model |
| `--effort` | `medium` | How hard the model thinks: `low`, `medium`, `high`, `xhigh` or `max`. Higher is slower and costs more |
| `--out FILE` | stdout | Write the Markdown brief to a file |
| `--dry-run` | | Print exactly what would be sent, and send nothing |

## What is sent

Not the raw event dump, but a digest of the scan:

- the target, scan status and date, and the number of modules run;
- the grade and score, and the scan's confidence with its reasons;
- every finding: severity, title, rule, the rule's description and up to ten
  pieces of evidence (each cut to 300 characters);
- the number of events of each type;
- hostnames, open ports, software (with end-of-life notes) and networks, up
  to 200 of each, with exact counts;
- email addresses **only as a count**.

Run `spiderfootplus summarize --dry-run` to see the digest for your scan
before you send it. If the scan holds data you may not share with a third
party, don't summarize it.

## Notes

- The brief is written only from the digest. The model is told not to invent
  hosts, versions, CVEs or findings, and to say when the data is thin; still,
  read it before you forward it.
- Requests opt in to the API's server-side refusal fallback: if the model
  declines a request on safety grounds, the API retries it on a fallback model
  in the same call. If every model declines, the command says so and exits
  non-zero.
- `--proxy` and `--tor` do not apply to this call; it goes to
  `api.anthropic.com` directly, though the standard `HTTPS_PROXY` variable is
  honoured.
