GitHubWatchdog Command Patterns
Use `search` for broad repository discovery.
GitHubWatchdog Command Patterns
Search
Use search for broad repository discovery.
Auth can come from GITHUB_TOKEN, GH_TOKEN, or a logged-in gh session.
For agent flows, derive --since, --created-since, and related upper bounds from the user's prompt instead of inventing unrelated fixed dates.
go run ./cmd/app search --profile recent --only-flagged --format ndjson
go run ./cmd/app search --query 'stars:>20' --since 2026-03-01 --updated-before 2026-03-13
go run ./cmd/app search --activity created --created-since 2026-03-01 --created-before 2026-03-13
go run ./cmd/app search --activity either --created-since 2026-03-10 --since 2026-03-10
go run ./cmd/app search --profile backfill --checkpoint backlog
go run ./cmd/app search --checkpoint backlog --resume
Useful flags:
--only-flagged--include-skipped=false--fail-on-findings--format json|ndjson|text--profile recent|high-signal|backfill--checkpoint <name>--resume--activity updated|created|either--since--updated-before--created-since--created-before--persist=false
Output notes:
jsonreturns a single search report.ndjsonstreams per-result objects and ends with a summary object.--fail-on-findingsreturns exit code10when flagged results are present.- Add the global
-quietflag when the caller wants clean stderr during machine-readable runs.
Repository and User Scans
Use repo or user when the target type is known.
go run ./cmd/app repo owner/repo --summary --format json
go run ./cmd/app user octocat --summary --format json
Useful flags:
--summary--fail-on-findings--format json|ndjson|text--persist=false
Verdict
Use verdict when the target may be either a repo or a user, or when running mixed-target batches.
go run ./cmd/app verdict owner/repo --format json
go run ./cmd/app verdict octocat --format json
go run ./cmd/app verdict --input targets.txt --format ndjson --continue-on-error
Batch input rules:
- Pass newline-delimited targets with
--input <path>or--input -for stdin. - Use
--continue-on-errorif one bad target should not abort the whole run. - In batch mode,
jsonreturns an array;ndjsonreturns one object per line.
Checkpoints
Use checkpoints to manage saved search cursors.
go run ./cmd/app checkpoints list
go run ./cmd/app checkpoints show backlog
go run ./cmd/app checkpoints export backlog --format json
go run ./cmd/app checkpoints import --input backlog.json
go run ./cmd/app checkpoints delete backlog
Discovery and Planning
Use capabilities when another agent needs the current binary contract:
go run ./cmd/app capabilities --format json
Use recommend when another agent needs a deterministic suggested invocation from a user task:
go run ./cmd/app recommend --prompt 'find new or updated repos from the last 3 days' --format json
High-Signal Fields
When summarizing machine-readable output, preserve these fields when present:
entity_typerepo_idusernameis_flaggedis_maliciousowner_suspiciousis_suspiciousrepo_flagsheuristicserrorsprofile_namequeryqueriesactivitycreated_sincecreated_beforeupdated_sincecheckpoint_namenext_created_beforenext_updated_before
Related Documents
FA Command List
Below is the list of available commands:
Command Reference
Complete reference for all 12 `/cro` commands. Each command can be run
Repo | Age | Last active | Active on | Commits | Uncommitted | Branch
- [`git abort`](#git-abort)
doing CLI
A CLI for a What Was I Doing system