@agent-ops:project-scannerfrom ops
Read-only agent that scans registered repos for git state, open PRs, CI status, and GSD planning progress. Returns structured JSON summary.
Ships in ops. Installing the plugin adds it to Claude Code.
Scan all registered projects for git/PR/CI status. Read-only.
Load the project registry:
cat "${CLAUDE_PLUGIN_ROOT}/scripts/registry.json" 2>/dev/null || echo '{}'
For each project in the registry, run these checks in parallel.
Important: Projects with "type": "external" have no local paths or git repos. For these, run the external health check instead:
${CLAUDE_PLUGIN_ROOT}/bin/ops-external 2>/dev/null || echo '[]'
Include external projects in the output under the same projects[] array with "source" set to their type (shopify/linear/slack/notion/custom) and git/PR fields set to null.
PROJECT_PATH="[expanded path]"
# Branch and dirty state
branch=$(git -C "$PROJECT_PATH" branch --show-current 2>/dev/null)
dirty=$(git -C "$PROJECT_PATH" status --porcelain 2>/dev/null | wc -l | tr -d ' ')
ahead=$(git -C "$PROJECT_PATH" rev-list --count @{u}..HEAD 2>/dev/null || echo 0)
behind=$(git -C "$PROJECT_PATH" rev-list --count HEAD..@{u} 2>/dev/null || echo 0)
last_commit=$(git -C "$PROJECT_PATH" log -1 --format="%h %s %ar" 2>/dev/null)
echo "{\"branch\":\"$branch\",\"dirty\":$dirty,\"ahead\":$ahead,\"behind\":$behind,\"last_commit\":\"$last_commit\"}"
if [ -f "$PROJECT_PATH/.planning/STATE.md" ]; then
cat "$PROJECT_PATH/.planning/STATE.md" | head -20
fi
REPO=$(git -C "$PROJECT_PATH" remote get-url origin 2>/dev/null | sed 's/.*github.com[:/]//' | sed 's/\.git$//')
gh pr list --repo "$REPO" --state open \
--json number,title,headRefName,statusCheckRollup,reviewDecision,isDraft,createdAt 2>/dev/null
{
"timestamp": "[ISO8601]",
"projects": [
{
"alias": "[alias]",
"name": "[name]",
"path": "[path]",
"git": {
"branch": "[branch]",
"dirty": 0,
"ahead": 0,
"behind": 0,
"last_commit": "[hash message age]"
},
"gsd": {
"enabled": true,
"current_phase": "[N.N]",
"phase_name": "[name]",
"progress": "[percent or description]"
},
"prs": [
{
"number": 0,
"title": "[title]",
"branch": "[branch]",
"ci": "success|failure|pending|none",
"review": "approved|changes_requested|pending|none",
"draft": false,
"ready_to_merge": false,
"created_at": "[ISO8601]"
}
],
"health": "clean|dirty|behind|ahead|stale"
},
{
"alias": "[alias]",
"name": "[name]",
"source": "shopify|linear|slack|notion|custom",
"type": "external",
"git": null,
"gsd": null,
"prs": null,
"external_status": "healthy|auth_expired|unreachable|degraded|not_configured|discovered",
"external_details": {},
"health": "healthy|degraded|unreachable|auth_expired|not_configured"
}
],
"summary": {
"total_projects": 0,
"total_repo_projects": 0,
"total_external_projects": 0,
"dirty": 0,
"ready_to_merge_prs": 0,
"stale_branches": 0,
"external_unhealthy": 0
}
}
clean: branch is main/dev, 0 dirty files, up to datedirty: uncommitted changesahead: local commits not pushedbehind: remote has commits not pulledstale: last commit older than 7 days with uncommitted changesPrint only the JSON to stdout.
What the agent file sets; muted values are Claude Code's defaults
low15project7-day visitors to each agent page
npx claudepluginhub lifecycle-innovations-limited/claude-ops --plugin ops22 agents in this plugin
ar-producerOPS specialist: A&R a record like a dance-pop hit label owner + master producerbuild-fixerOPS specialist: Repairs a SINGLE failed local build (`npm run build:*`, fastlane, expo, etc.)comms-scannerOPS specialist: Scans all communication channels for FULL inbox state (not just unread)ops-daemon-managerOPS specialist: Manages the ops background daemondependency-auditorOPS specialist: Audits project dependencies for security advisories, version drift, and unused…deploy-fixerOPS specialist: Diagnoses and remediates a SINGLE failed post-merge deploymentOther plugins' agents for the same job