Agent commands

asc snitch: draft, preview or log an issue report about a problem with the asc command line itself.

asc snitch drafts a report about a problem with the asc command line itself (a bug, friction or a missing feature). Without --confirm it only prints a preview; with --confirm it files the report as a public GitHub issue on the asc project. With --local it keeps the report in a file in your project instead, to review later. It needs no Apple team; see asc for the flags every command shares.

Subcommand What it does
asc snitch "description" Drafts, previews, files or logs a report.
flush Prints the reports logged with --local.

Report an issue

asc snitch [flags] "description" drafts an issue from the description and the flags. The title is the description, starting with Friction: or Feature: for those severities; the body adds the reproduction, expected and actual behavior, the asc version and the operating system.

Flag What it does Default
--actual Actual behavior or error message. —
--confirm File the issue after searching for duplicates. false
--dry-run Search for duplicates and preview without filing. false
--expected Expected behavior. —
--label Label to attach; it must already exist. Repeatable. —
--local Write the entry to .asc/snitch.log in the current folder instead of filing it. false
--repro Reproduction command, such as the exact asc command that failed. —
--severity Severity: bug, friction or feature-request. bug

Notes:

  • The description is required: without it the command exits 2 with description is required. Put the flags before the description, and quote the whole description when it contains text that looks like a flag; a flag after the description is refused.
  • Before anything is shown, logged or filed, values that look like secrets (passwords, tokens, keys, credential headers) are replaced with [REDACTED], and the command prints Note: sensitive values were redacted from the snitch report.
  • Without --confirm, the command looks for similar existing issues, lists any it finds as Potentially related issues, and prints the draft (title, labels and body) on stderr. --dry-run does the same and never files, even with --confirm.
  • Searching for duplicates and filing need a GitHub token in GITHUB_TOKEN or GH_TOKEN. Without one, the duplicate search is skipped with “Note: skipping duplicate search because GITHUB_TOKEN or GH_TOKEN is not set.” and --confirm fails with “snitch: GITHUB_TOKEN or GH_TOKEN is required to create issues”.
  • --label values are checked against the labels that exist: an unknown label is refused before anything is filed, and when the check itself can’t run, the command warns and goes on (not with --local, which logs the labels as given).
  • With --confirm, it prints Issue created: with the issue number and link on stderr, and a JSON receipt with number, html_url and title on stdout.
  • With --local (and no --dry-run), nothing leaves your machine: the entry is added to .asc/snitch.log and the command prints Friction logged to .asc/snitch.log.
Terminal window
asc snitch --repro 'asc crashes --app "1234567890"' --expected "Should resolve bundle ID" --actual "Error: AppId is invalid" --dry-run "crashes --app doesn't support bundle ID"

flush

Prints the entries logged with asc snitch --local, numbered, with their severity, description, time, asc version, operating system and any reproduction, expected, actual and labels. Nothing is filed: to file one, run asc snitch again with its description and --confirm. With no entries it prints No local snitch entries found. and exits 0. It takes no arguments; use --file for another log.

Flag What it does Default
--file Path to the log file. .asc/snitch.log
Terminal window
asc snitch flush