Multi-agent codebase review for PRs, CI, and downstream fork syncs.
SaferSkills independently audited codebase-argus (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this portable agent playbook for evidence-first codebase review across GitHub PRs, CI failures, and downstream fork integration work. It works as an OpenClaw/ClawHub skill, Codex project instruction, Claude Code project instruction, or a plain Markdown playbook for any coding agent that can run local shell commands.
Both upstream and downstream workflows can send the same evidence package to one provider or a multi-agent tribunal.
From a Codebase Argus checkout:
npm install
npm run argus -- review owner/repo#123For private repositories or higher GitHub API limits:
GITHUB_TOKEN=<read-only-token> npm run argus -- review owner/repo#123Do not print tokens. Do not write tokens to files.
Default review is deterministic and rule-based:
npm run argus -- review owner/repo#123 --format markdownUse a policy file when the repository has local rules:
npm run argus -- review owner/repo#123 --policy .codebase-argus.ymlUse API providers when credentials are available in the environment:
OPENAI_API_KEY=<key> npm run argus -- review owner/repo#123 --provider openai-api
ANTHROPIC_API_KEY=<key> npm run argus -- review owner/repo#123 --provider anthropic-api
GEMINI_API_KEY=<key> npm run argus -- review owner/repo#123 --provider gemini-apiUse local CLI providers only in trusted local workspaces:
npm run argus -- review owner/repo#123 --provider codex-cli
npm run argus -- review owner/repo#123 --provider claude-cli
npm run argus -- review owner/repo#123 --provider gemini-cliFor multi-agent review:
npm run argus -- review owner/repo#123 --tribunal openai-api,claude-cli,codex-cliTreat output as review assistance. Do not approve, merge, push, or post comments automatically unless the user explicitly asks.
When the user provides a failing job log or local log file, review it through the same provider system:
npm run argus -- ci-log logs/failure.txt
npm run argus -- ci-log logs/failure.txt --provider codex-cli
npm run argus -- ci-log logs/failure.txt --tribunal codex-cli,claude-cli,gemini-cliWhen the user points at a GitHub PR with failing Actions checks, fetch the job logs directly:
GITHUB_TOKEN=<read-only-token> npm run argus -- ci-github owner/repo#123
GITHUB_TOKEN=<read-only-token> npm run argus -- ci-github owner/repo#123 --provider codex-cliFocus on the first failing command, the most likely root cause, and the smallest fix that can be verified locally.
Use autofix-plan when the user asks for suggested fixes, safe automatic repair, or a branch plan for narrow mechanical failures:
npm run argus -- autofix-plan owner/repo#123The plan covers gated lanes such as npm lockfile refreshes, snapshot updates, and formatter/linter fixes. Treat it as a command plan; do not execute, push, or open a PR unless the user explicitly asks.
For automatic PR review, the deployed Next.js server exposes:
POST /api/github/webhook
GET /api/github/app-manifestRequired environment:
GITHUB_WEBHOOK_SECRET=<secret>
GITHUB_APP_ID=<app-id>
GITHUB_APP_PRIVATE_KEY=<pem-or-escaped-pem>Use GITHUB_APP_PRIVATE_KEY_BASE64 if storing multiline PEM is awkward. The webhook verifies X-Hub-Signature-256, reviews opened, reopened, ready_for_review, and synchronize, ignores draft PRs, posts COMMENT reviews only, and can add inline comments when ARGUS_WEBHOOK_INLINE_COMMENTS=true.
Supported PR comment commands:
/argus help
/argus review
/argus ci
/argus autofix
/argus pause
/argus resume/argus pause applies argus:paused; automatic review skips PRs with that label. /argus resume removes it.
Do not approve, request changes, merge, push, or post comments outside this configured webhook path unless the user explicitly asks.
Prioritize findings with concrete evidence:
pull_request_target;Low-confidence model-only claims need manual verification before reporting them as facts.
For long-lived fork maintenance, use the downstream CLI first:
npm run argus -- downstream owner/upstream me/fork
npm run argus -- downstream owner/upstream me/fork --upstream-branch main --fork-branch feature/demoFor AI CLI review of merge/rebase risk:
npm run argus -- downstream owner/upstream me/fork --fork-branch feature/demo --provider codex-cli
npm run argus -- downstream owner/upstream me/fork --fork-branch feature/demo --tribunal codex-cli,claude-cli,gemini-cliWhen the user explicitly asks the agent to perform the downstream integration, use sync. It prints a dry-run plan unless --execute is present:
npm run argus -- sync owner/upstream me/fork --mode merge --fork-branch feature/demo --test "npm test"
npm run argus -- sync owner/upstream me/fork --mode rebase --fork-branch feature/demo --test "npm test" --execute --push --create-prExecution rules:
downstream with a provider or tribunal first for risky branches;sync/upstream-main;--push;--create-pr;The downstream prompt must consider both integration paths:
git merge-tree conflict evidence;git cherry -v;git range-diff;Use the local dashboard when a human needs to inspect the same evidence visually:
npm run devOpen the Downstream Fork Sync, Downstream Merge/Rebase Risk, and Downstream Agent Workflow panels. The local analyzer works in .cache/repos and temporary worktrees, and must not push or force-push by itself. Actual sync execution belongs to the CLI sync command and only runs after explicit flags.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.