warden-sweep
Audited by Runlayer on Feb 27, 2026
Malicious tool definition detected
**Step 5: Record and cleanup** Append to `data/patches.jsonl`: ```json {"findingId": "...", "prUrl": "https://...", "branch": "...", "reviewers": ["user1", "user2"], "filesChanged": ["..."], "status": "created|existing|error"} ``` Remove the worktree: ```bash cd "$(git rev-parse --show-toplevel)" git worktree remove "${WORKTREE}" --force ``` **Error handling**: On failure at any step, write to `data/patches.jsonl` with `"status": "error"` and `"error": "..."`, clean up the worktree, and continue
Malicious tool definition detected
Malicious tool definition detected
Malicious tool definition detected
Usage: uv run index_prs.py <sweep-dir> Stdout: JSON summary (for LLM consumption) Stderr: Progress lines Side effects: - Creates data/existing-prs.json - Creates data/pr-diffs/<number>.diff for overlapping PRs """ from __future__ import annotations import argparse import json import os import subprocess import sys from typing import Any sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from _utils import read_jsonl, run_cmd # noqa: E402 def fetch_warden_prs(sweep_dir: str) -> list[
Passed Files (5)Click to expand
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan