### Perform initial setup and run Source: https://github.com/aliengiraffe/vigilante/blob/main/README.md Standard sequence for installing the binary, configuring the environment, and executing the watcher loop. ```sh brew install --cask aliengiraffe/spaceship/vigilante vigilante setup -d vigilante watch ~/hello-world-app vigilante daemon run --once ``` -------------------------------- ### Bootstrap Vigilante Setup Source: https://github.com/aliengiraffe/vigilante/blob/main/README.md Initialize the local machine and start the managed service. ```sh vigilante setup -d ``` -------------------------------- ### Install go-task Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Commands to install the task runner required for local workflows. ```sh brew install go-task/tap/go-task ``` ```sh go install github.com/go-task/task/v3/cmd/task@latest ``` -------------------------------- ### Install and verify Vigilante via pip Source: https://github.com/aliengiraffe/vigilante/blob/main/packaging/pypi/README.md Use pipx, pip, or uv to install the package and verify the installation with the help command. ```sh pipx install vigilante-cli # or: pip install / uv tool install vigilante --help ``` -------------------------------- ### Manage Installed Binary and Service Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Commands to refresh the installed binary, provider skills, and OS service configuration. ```sh task install task install-setup ``` ```sh task setup-daemon ``` -------------------------------- ### Verify packaging locally Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Use this sequence to test the build, check, and installation process for release artifacts without interacting with a remote index. ```bash python3 -m venv /tmp/venv && /tmp/venv/bin/pip install build gh release download v1.2.3 --pattern 'vigilante_*.tar.gz' --dir /tmp/archives /tmp/venv/bin/python packaging/pypi/build_wheels.py \ --version 1.2.3 --archives /tmp/archives --out /tmp/pypi-dist /tmp/venv/bin/python packaging/pypi/check_wheel.py \ --dist /tmp/pypi-dist --version 1.2.3 /tmp/venv/bin/pip install /tmp/pypi-dist/vigilante_cli-1.2.3-py3-none-macosx_11_0_arm64.whl file /tmp/venv/bin/vigilante # Mach-O/ELF executable, not a Python script /tmp/venv/bin/vigilante --help ``` -------------------------------- ### Install Vigilante via Python Package Managers Source: https://github.com/aliengiraffe/vigilante/blob/main/README.md Install the vigilante-cli package using pipx, pip, or uv. ```sh pipx install vigilante-cli # or: pip install vigilante-cli / uv tool install vigilante-cli ``` -------------------------------- ### Install Nightly Version via Homebrew Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Commands to tap the repository and install the nightly build of the Vigilante CLI. ```sh brew tap aliengiraffe/spaceship brew install --cask vigilante-nightly ``` -------------------------------- ### Register a repository for monitoring Source: https://github.com/aliengiraffe/vigilante/blob/main/README.md Initial command to start tracking a local repository for issue-to-PR automation. ```sh vigilante watch ~/path/to/repo ``` -------------------------------- ### Install Vigilante via Homebrew Source: https://github.com/aliengiraffe/vigilante/blob/main/packaging/pypi/README.md Use Homebrew for platforms where prebuilt wheels are not available. ```sh brew install --cask aliengiraffe/spaceship/vigilante ``` -------------------------------- ### Run Daemon from Source Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Commands to execute the daemon directly from the source code without installation. ```sh go run ./cmd/vigilante daemon run --once ``` ```sh go run ./cmd/vigilante daemon run --interval 30s ``` -------------------------------- ### Generating shell completions Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Generate and install completion scripts for bash, zsh, or fish shells. ```sh vigilante completion bash vigilante completion zsh vigilante completion fish ``` ```sh vigilante completion zsh > "${fpath[1]}/_vigilante" autoload -Uz compinit && compinit ``` ```sh vigilante completion bash > ~/.local/share/bash-completion/completions/vigilante ``` ```sh vigilante completion fish > ~/.config/fish/completions/vigilante.fish ``` -------------------------------- ### Upgrade Vigilante via Homebrew Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Update the installed Vigilante cask. ```sh brew upgrade --cask vigilante ``` -------------------------------- ### GET /api/sandbox/sessions/:session_id Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Retrieves the current state of a sandbox session. ```APIDOC ## GET /api/sandbox/sessions/:session_id ### Description Returns the current state of a sandbox session. ### Method GET ### Endpoint /api/sandbox/sessions/:session_id ### Parameters #### Path Parameters - **session_id** (string) - Required - The unique session identifier. ### Response #### Success Response (200) - **session_id** (string) - The session identifier. - **repository** (string) - The repository name. - **issue_number** (integer) - The issue number. - **provider** (string) - The provider name. - **status** (string) - The current status. - **created_at** (string) - Creation timestamp. - **expires_at** (string) - Expiration timestamp. - **container_id** (string) - The container identifier. - **resource_usage** (object) - Current resource usage metrics. #### Response Example { "session_id": "sbx_a1b2c3d4e5f6", "repository": "owner/repo", "issue_number": 42, "provider": "claude-code", "status": "running", "created_at": "2026-04-06T14:00:00Z", "expires_at": "2026-04-06T16:00:00Z", "container_id": "sha256:abc123...", "resource_usage": { "memory_mb": 2048, "cpu_percent": 35.2 } } ``` -------------------------------- ### vigilante service restart Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Restarts the installed Vigilante user service through the operating system service manager. ```APIDOC ## vigilante service restart ### Description Restarts the installed Vigilante user service using the platform-native service manager (launchctl on macOS or systemctl --user on Linux). ``` -------------------------------- ### Retrieve sandbox session state Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Response structure for querying the current status of a session via GET /api/sandbox/sessions/:session_id. ```json { "session_id": "sbx_a1b2c3d4e5f6", "repository": "owner/repo", "issue_number": 42, "provider": "claude-code", "status": "running", "created_at": "2026-04-06T14:00:00Z", "expires_at": "2026-04-06T16:00:00Z", "container_id": "sha256:abc123...", "resource_usage": { "memory_mb": 2048, "cpu_percent": 35.2 } } ``` -------------------------------- ### Recommended Development Loop Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Standard sequence of commands for testing, building, and running the daemon during development. ```sh task test task build task setup ./vigilante watch /path/to/repo ./vigilante daemon run --once ``` -------------------------------- ### Run Linting Source: https://github.com/aliengiraffe/vigilante/blob/main/CONTRIBUTING.md Execute golangci-lint to enforce Go-style documentation comments and code standards. ```sh golangci-lint run ``` -------------------------------- ### Register a repository for monitoring Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Use the watch command to add a local repository to the watchlist with various configuration options. ```sh vigilante watch ~/hello-world-app ``` ```sh vigilante watch --assignee nicobistolfi ~/hello-world-app ``` ```sh vigilante watch --max-parallel 3 ~/hello-world-app ``` ```sh vigilante watch --max-parallel 0 ~/hello-world-app ``` ```sh vigilante watch --provider claude ~/hello-world-app ``` ```sh vigilante watch --provider gemini ~/hello-world-app ``` ```sh vigilante watch --provider opencode ~/hello-world-app ``` ```sh vigilante watch --branch develop ~/hello-world-app ``` ```sh vigilante watch --track-default-branch ~/hello-world-app ``` -------------------------------- ### Accessing command help Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Display help information for the top-level CLI or specific subcommands. ```sh vigilante clone --help vigilante watch --help vigilante daemon run --help ``` -------------------------------- ### Validate and build local snapshots Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Use these commands to check configuration and perform ad-hoc signed builds for local testing. ```bash goreleaser check # Full snapshot: ad-hoc signs each macOS artifact and runs the execution gate. # The OTEL_* keys must exist because the ldflags template reads them. NIGHTLY_VERSION=0.0.0-local OTEL_ENDPOINT= OTEL_TOKEN= OTEL_URL_PATH= \ goreleaser release --snapshot --clean # Or run the gate by hand against one binary: bash scripts/sign-macos-binary.sh dist/vigilante_darwin_arm64_v8.0/vigilante darwin ``` -------------------------------- ### Verify GitHub Environment Configuration Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Commands to list the currently configured secrets and variables for the main environment. ```bash gh secret list --env main --repo aliengiraffe/vigilante gh variable list --env main --repo aliengiraffe/vigilante ``` -------------------------------- ### Cloning and registering repositories Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Clone a repository and automatically add it to the Vigilante watch list. ```sh vigilante clone git@github.com:owner/hello-world-app.git ``` ```sh vigilante clone --depth 1 https://github.com/owner/hello-world-app.git ~/src/hello-world-app ``` -------------------------------- ### Validate Packaging Configuration Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Command to verify the GoReleaser configuration locally before cutting a release. ```sh goreleaser check ``` -------------------------------- ### POST /api/sandbox/provision Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Creates a new sandbox session for issue dispatch. ```APIDOC ## POST /api/sandbox/provision ### Description Creates a new sandbox session. This is called by the daemon when dispatching an issue in sandbox mode. ### Method POST ### Endpoint /api/sandbox/provision ### Request Body - **repository** (string) - Required - The owner/repo identifier. - **issue_number** (integer) - Required - The issue number. - **provider** (string) - Required - The provider name. - **ttl_seconds** (integer) - Required - Time to live in seconds. - **resource_limits** (object) - Required - Resource constraints including memory, cpus, and disk. ### Request Example { "repository": "owner/repo", "issue_number": 42, "provider": "claude-code", "ttl_seconds": 7200, "resource_limits": { "memory": "8g", "cpus": 4, "disk": "20g" } } ### Response #### Success Response (200) - **session_id** (string) - The unique session identifier. - **container_id** (string) - The container identifier. - **sandbox_token** (string) - The authentication token. - **proxy_port** (integer) - The proxy port number. - **ssh_public_key** (string) - The SSH public key. - **deploy_key_id** (integer) - The deploy key identifier. - **expires_at** (string) - The expiration timestamp. - **status** (string) - The current status. #### Response Example { "session_id": "sbx_a1b2c3d4e5f6", "container_id": "sha256:abc123...", "sandbox_token": "eyJhbGciOi...", "proxy_port": 9821, "ssh_public_key": "ssh-ed25519 AAAA...", "deploy_key_id": 98765432, "expires_at": "2026-04-06T16:00:00Z", "status": "provisioning" } ``` -------------------------------- ### POST /api/sandbox/gh Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Proxies gh CLI execution. ```APIDOC ## POST /api/sandbox/gh ### Description Proxied `gh` CLI execution. Called by the `gh` mirror binary inside the container. ### Method POST ### Endpoint /api/sandbox/gh ### Request Body - **command** (string) - Required - The command to execute. - **token** (string) - Required - The authentication token. ### Request Example { "command": "pr create --title 'Fix issue' --body '...'", "token": "eyJhbGciOi..." } ### Response #### Success Response (200) - **exit_code** (integer) - The process exit code. - **stdout** (string) - Standard output. - **stderr** (string) - Standard error. #### Response Example { "exit_code": 0, "stdout": "https://github.com/owner/repo/pull/43\n", "stderr": "" } ``` -------------------------------- ### Verify published binary Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Perform manual verification of a downloaded binary to ensure it is properly signed and notarized. ```bash tar -xf vigilante__macOS_arm64.tar.gz ./vigilante --help # (1) MUST exit 0 echo "exit=$?" # exit 137 = SIGKILL = broken codesign --verify --deep --strict --verbose=2 vigilante # (2) MUST exit 0 codesign -d --requirements - vigilante # (3) expect `certificate 1[...6.2.6]`, # NOT `certificate root[...]` spctl -a -vvv -t exec vigilante # (4) accepted, source=Notarized Developer ID ``` -------------------------------- ### Using tool proxy commands Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Execute external CLI tools through the Vigilante proxy to enable privacy-aware telemetry. ```sh vigilante gh repo view aliengiraffe/vigilante vigilante git status --short vigilante docker compose ps ``` -------------------------------- ### Configure Fork-Based Workflow Source: https://github.com/aliengiraffe/vigilante/blob/main/CONTRIBUTING.md Commands to enable fork-based development, allowing pull requests to be opened from a fork. ```sh vigilante watch --fork ~/path/to/repo ``` ```sh vigilante watch --fork --fork-owner my-bot-org ~/path/to/repo ``` -------------------------------- ### Capture kernel logs for signature failures Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Use this command to inspect AppleMobileFileIntegrity logs if a binary fails to execute. ```bash sudo log show --last 5m --predicate \ 'sender == "AppleMobileFileIntegrity" OR eventMessage CONTAINS "code signature"' \ --info --debug ``` -------------------------------- ### Watch a repository with Vigilante Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Register a local directory for the Vigilante agent to monitor and process. ```sh vigilante watch ~/hello-world-app ``` -------------------------------- ### Execute Tagged Release Flow Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Standard git commands to prepare and push a version tag for triggering the release workflow. ```sh git checkout main git pull --ff-only git tag 1.2.3 git push origin 1.2.3 ``` -------------------------------- ### Cut a new release Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Commands to switch to the main branch, pull latest changes, tag the release, and push the tag to the remote repository. ```bash git switch main && git pull git tag v1.2.0 # must be vX.Y.Z and already merged into main git push origin v1.2.0 ``` -------------------------------- ### Test shell scripts Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Run Go tests to verify the integrity of the shell scripts. ```bash go test ./scripts/... ``` -------------------------------- ### Run Test Coverage Source: https://github.com/aliengiraffe/vigilante/blob/main/CONTRIBUTING.md Execute the project's coverage analysis tool to verify statement-based test coverage. ```sh task coverage # or: ./scripts/coverage.sh ``` -------------------------------- ### Provision a new sandbox session Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Request and response structure for creating a new sandbox session via POST /api/sandbox/provision. ```json { "repository": "owner/repo", "issue_number": 42, "provider": "claude-code", "ttl_seconds": 7200, "resource_limits": { "memory": "8g", "cpus": 4, "disk": "20g" } } ``` ```json { "session_id": "sbx_a1b2c3d4e5f6", "container_id": "sha256:abc123...", "sandbox_token": "eyJhbGciOi...", "proxy_port": 9821, "ssh_public_key": "ssh-ed25519 AAAA...", "deploy_key_id": 98765432, "expires_at": "2026-04-06T16:00:00Z", "status": "provisioning" } ``` -------------------------------- ### Manage and monitor Vigilante Source: https://github.com/aliengiraffe/vigilante/blob/main/README.md Common commands for listing repositories, checking status, viewing logs, and managing the service. ```sh vigilante list vigilante list --running vigilante status vigilante logs vigilante service restart ``` -------------------------------- ### Configure Vigilante daemon settings Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md The JSON structure for the config.json file, used to define inactivity timeouts and log rotation policies. ```json { "blocked_session_inactivity_timeout": "20m", "log_max_total_size": "500MB", "log_max_file_size": "50MB", "log_max_backups": 3 } ``` -------------------------------- ### Committing changes via Vigilante Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Use the commit entrypoint to ensure agent-produced commits maintain user identity and signing. ```sh vigilante commit -m "Fix validation logic" vigilante commit --amend --no-edit ``` -------------------------------- ### Watchlist Configuration Structure Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Defines the required JSON schema for the watchlist.json file used to track repositories and session parameters. ```json [ { "path": "/Users/example/hello-world-app", "repo": "owner/hello-world-app", "branch_mode": "auto", "branch": "main", "assignee": "me", "max_parallel_sessions": 0, "last_scan_at": "2026-03-10T12:00:00Z" } ] ``` -------------------------------- ### POST /api/sandbox/token/refresh Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Extends the TTL of a sandbox token. ```APIDOC ## POST /api/sandbox/token/refresh ### Description Extends the TTL of a sandbox token when the daemon determines additional time is needed. Only callable by the daemon. ### Method POST ### Endpoint /api/sandbox/token/refresh ### Request Body - **session_id** (string) - Required - The session identifier. - **extend_seconds** (integer) - Required - The duration to extend in seconds. ### Request Example { "session_id": "sbx_a1b2c3d4e5f6", "extend_seconds": 3600 } ``` -------------------------------- ### Package Hardening Configuration Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md The JSON configuration structure for enabling or disabling the package hardening feature in the local Vigilante config file. ```json { "package_hardening_enabled": true } ``` -------------------------------- ### Sync Secrets and Variables from 1Password Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md This script retrieves certificates and keys from 1Password and sets them as GitHub environment secrets and variables. It includes workarounds for 1Password CLI limitations regarding binary files and item titles with special characters. ```bash set -euo pipefail REPO=aliengiraffe/vigilante VAULT=Engineering # UUID of "Apple Developer ID — Lander Code Signing"; confirm with `op item list`. NOTE_ID=stfwdaukd5mtodowuejck2obsu WORK="$(mktemp -d)" trap 'rm -rf "$WORK"' EXIT umask 077 op document get "Apple Developer ID — Lander (.p12)" --vault "$VAULT" --out-file "$WORK/cert.p12" op document get "Apple Notary API Key — Lander (.p8)" --vault "$VAULT" --out-file "$WORK/notary.p8" # --- secrets --- # `tr -d '\n'` gives the single-line encoding the workflows decode. base64 < "$WORK/cert.p12" | tr -d '\n' \ | gh secret set APPLE_DEVELOPER_ID_CERT_P12_BASE64 --env main --repo "$REPO" base64 < "$WORK/notary.p8" | tr -d '\n' \ | gh secret set APPLE_NOTARY_API_KEY_P8_BASE64 --env main --repo "$REPO" # `printf '%s' "$(...)"` guarantees no trailing newline reaches the secret value, # independently of how gh handles stdin. A stray newline in the .p12 password # fails the keychain import in CI with a misleading error. printf '%s' "$(op read "op://$VAULT/$NOTE_ID/p12 password")" \ | gh secret set APPLE_DEVELOPER_ID_CERT_PASSWORD --env main --repo "$REPO" printf '%s' "$(op read "op://$VAULT/$NOTE_ID/notary key id")" \ | gh secret set APPLE_NOTARY_API_KEY_ID --env main --repo "$REPO" printf '%s' "$(op read "op://$VAULT/$NOTE_ID/notary issuer id")" \ | gh secret set APPLE_NOTARY_API_ISSUER_ID --env main --repo "$REPO" # --- non-secret variable --- printf '%s' "$(op read "op://$VAULT/$NOTE_ID/identity")" \ | gh variable set APPLE_DEVELOPER_ID_IDENTITY --env main --repo "$REPO" ``` -------------------------------- ### Enable fork mode Source: https://github.com/aliengiraffe/vigilante/blob/main/README.md Configures the watcher to open pull requests from a fork rather than pushing branches to the upstream repository. ```sh vigilante watch --fork ~/hello-world-app ``` -------------------------------- ### Verify Apple Developer Certificate with OpenSSL Source: https://github.com/aliengiraffe/vigilante/blob/main/docs/releasing.md Use this script to validate a .p12 certificate file and its associated private key before CI deployment. It handles macOS LibreSSL compatibility issues using sed. ```bash op document get "Apple Developer ID — Lander (.p12)" --vault Engineering --out-file /tmp/c.p12 export P12PW="$(op read "op://Engineering/$NOTE_ID/p12 password")" openssl pkcs12 -in /tmp/c.p12 -passin env:P12PW -nokeys -clcerts 2>/dev/null \ | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > /tmp/c.crt openssl x509 -in /tmp/c.crt -noout -subject -enddate -issuer openssl x509 -in /tmp/c.crt -noout -checkend 7776000 # nonzero => expires within 90 days # Must report at least one private key; codesign cannot sign without it. openssl pkcs12 -in /tmp/c.p12 -passin env:P12PW -nocerts -nodes 2>/dev/null | grep -c "PRIVATE KEY" unset P12PW; rm -f /tmp/c.p12 /tmp/c.crt ``` -------------------------------- ### POST /api/sandbox/sessions/:session_id/teardown Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Initiates graceful teardown of a sandbox session. ```APIDOC ## POST /api/sandbox/sessions/:session_id/teardown ### Description Initiates graceful teardown of a sandbox session. ### Method POST ### Endpoint /api/sandbox/sessions/:session_id/teardown ### Parameters #### Path Parameters - **session_id** (string) - Required - The unique session identifier. ### Request Body - **reason** (string) - Required - The reason for teardown. - **extract_artifacts** (boolean) - Required - Whether to extract artifacts. ### Request Example { "reason": "completed", "extract_artifacts": true } ``` -------------------------------- ### vigilante logs Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Inspects local log files located under ~/.vigilante/logs/. ```APIDOC ## vigilante logs [--access] [--repo ] [--issue ] ### Description Lists or prints the contents of daemon, access, and per-issue session logs for troubleshooting and recovery. ### Parameters #### Options - **--access** (flag) - Optional - Prints the structured access log at ~/.vigilante/logs/access.jsonl. - **--repo** (string) - Optional - Filters logs for a specific repository (owner/name). - **--issue** (number) - Optional - Filters logs for a specific issue session. ``` -------------------------------- ### vigilante list Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Displays metadata for currently watched repositories or active running sessions. ```APIDOC ## vigilante list ### Description Shows the currently watched repositories and their metadata, including local path, GitHub slug, daemon status, and branch tracking mode. ### Parameters - **--running** (flag) - Optional - If provided, shows only currently running sessions with issue details. ``` -------------------------------- ### vigilante watch Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Registers a local repository for issue monitoring with configurable options for assignees, parallel processing, AI providers, and issue trackers. ```APIDOC ## vigilante watch ### Description Registers a local repository for issue monitoring. It validates the repository, discovers remotes, and stores configuration in ~/.vigilante/watchlist.json. ### Parameters - **path** (string) - Required - The local path to the repository. - **--assignee** (string) - Optional - GitHub login to filter issues; defaults to 'me'. - **--max-parallel** (integer) - Optional - Maximum parallel sessions; defaults to 0 (unlimited). - **--provider** (string) - Optional - AI provider (codex, claude, gemini, opencode); defaults to 'claude'. - **--issue-tracker** (string) - Optional - Tracker type (github, linear); defaults to 'github'. - **--issue-tracker-stage** (string) - Optional - Filter for issue tracker stage. - **--branch** (string) - Optional - Pin the base branch. - **--track-default-branch** (flag) - Optional - Track the repository's default branch. ### Example `vigilante watch ~/hello-world-app --assignee nicobistolfi` ``` -------------------------------- ### Proxy gh CLI execution Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Request and response structures for executing proxied gh CLI commands via POST /api/sandbox/gh. ```json { "command": "pr create --title 'Fix issue' --body '...'", "token": "eyJhbGciOi..." } ``` ```json { "exit_code": 0, "stdout": "https://github.com/owner/repo/pull/43\n", "stderr": "" } ``` ```json { "exit_code": 1, "stdout": "", "stderr": "sandbox: operation denied — target repository 'other/repo' is outside session scope" } ``` -------------------------------- ### Teardown a sandbox session Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Request structure for initiating a graceful teardown via POST /api/sandbox/sessions/:session_id/teardown. ```json { "reason": "completed", "extract_artifacts": true } ``` -------------------------------- ### vigilante cleanup Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Cleans up running sessions for specific repositories or issues. ```APIDOC ## vigilante cleanup --repo [--issue ] ### Description Cleans up running sessions, removes local worktrees, and deletes issue branches. This command is useful for retrying cleanup after automatic attempts have failed. ### Parameters #### Options - **--repo** (string) - Required - The repository slug (owner/name) to clean up. - **--issue** (number) - Optional - The specific issue number to clean up. ``` -------------------------------- ### Issue Body Markdown Template Source: https://github.com/aliengiraffe/vigilante/blob/main/skills/vigilante-create-issue/SKILL.md Standard template structure for generating issue bodies. Ensure all sections are populated to provide sufficient context for implementation. ```markdown ## Summary Issue Type: [ (inferred)] ## Problem - - ## Context - - - ## Desired Outcome - - ## Implementation Notes - - - ## Acceptance Criteria - [ ] - [ ] ## Testing Expectations - - ## Operational / UX Considerations - ``` -------------------------------- ### Define Vigilante local state directory Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md The default directory path where Vigilante maintains its local state. ```text ~/.vigilante/ ``` -------------------------------- ### Remediation Checkbox Syntax Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md The specific Markdown checkbox syntax used within PR comments to trigger automated remediation sessions. ```markdown - [ ] **implement fixes** — Vigilante will launch an automated remediation session for the findings above. ``` -------------------------------- ### Recover from macOS Gatekeeper binary rejection Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Use this sequence to manually clear extended attributes and re-sign the Vigilante binary if Gatekeeper blocks execution. ```sh realbin="$(python3 -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' /opt/homebrew/bin/vigilante)" xattr "$realbin" xattr -dr com.apple.provenance "$(dirname "$realbin")" 2>/dev/null || true xattr -dr com.apple.quarantine "$(dirname "$realbin")" 2>/dev/null || true xattr -d com.apple.provenance "$realbin" 2>/dev/null || true xattr -d com.apple.quarantine "$realbin" 2>/dev/null || true codesign --force --sign - "$realbin" spctl --assess --type execute -vv "$realbin" ``` -------------------------------- ### vigilante status Source: https://github.com/aliengiraffe/vigilante/blob/main/DOCS.md Displays a compact operational overview of the Vigilante OS-managed user service, watched repositories, sessions, and GitHub rate limits. ```APIDOC ## vigilante status [--plain] [-w] ### Description Show a compact operational overview of the Vigilante OS-managed user service, watched repositories, sessions, and GitHub rate limits. On a terminal, this renders a live dashboard; otherwise, it prints plain text. ### Parameters #### Options - **--plain** (flag) - Optional - Forces plain text output even on a terminal. - **-w** (flag) - Optional - Refreshes the plain text output in place about once per second. ``` -------------------------------- ### Refresh sandbox token Source: https://github.com/aliengiraffe/vigilante/blob/main/SANDBOX.md Request structure for extending the TTL of a sandbox token via POST /api/sandbox/token/refresh. ```json { "session_id": "sbx_a1b2c3d4e5f6", "extend_seconds": 3600 } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.