ranwhat scan
Score the authority your agent's credentials carry.
ranwhat scan reads the credentials an agent holds, read-only, and scores authority (what it may do), observability (whether a past action can be reconstructed) and reversibility (whether a wrong action can be undone).
What it's allowed to do next time.
The watcher tells you what the agent already ran. The scanner tells you what it could do next, from the credentials it holds, scored on the three things that determine your exposure.
From ranwhat demo, the bundled support-copilot example.
Catalogued capability semantics for 204 scopes across twelve providers: Google, GitHub, GitLab, Microsoft 365, Slack, Discord, Stripe, Shopify, HubSpot, Atlassian, Sentry and AWS. Unrecognised scopes are classified by action verb and flagged as unclassified, never assumed safe.
An example first, then your own credentials.
A profile is a JSON file naming the agent, each credential, the scopes it was granted and the controls around it, in the shape of the bundled example. live builds one by asking each provider instead.
ranwhat demo the bundled example, no setup ranwhat scan profile.json --html report.html score a profile, write a report read -rs RANWHAT_GITHUB_TOKEN paste it: not echoed, not saved to history export RANWHAT_GITHUB_TOKEN ranwhat live ask each provider, read-only ranwhat scan profile.json --pull-usage which grants were used
Pass tokens in the environment as RANWHAT_<PROVIDER>_TOKEN. A token passed as a flag still works, but prints a warning: argv is visible to every user on the machine through the process table.
Once you know what an agent can do, scope the tokens it holds down to what it uses.
Three questions, and one of them can veto.
| Axis | Question |
|---|---|
| Authority | What is it allowed to do? |
| Observability | Can you reconstruct a named past action? |
| Reversibility | Can a wrong action be undone? |
Observability vetoes the overall verdict. An agent that cannot reconstruct its own tool calls is indistinguishable from the worst case.
Which grants were used, and how anyone knows.
| State | Meaning |
|---|---|
| Verified | Pulled from the provider's own audit trail |
| Self-attested | Declared in the profile, not independently pulled |
| Unverified | No evidence at all, and the scopes are not assumed safe |