Is this GitHub repo safe to open?
repo_agent_checkBefore opening a public GitHub repository in an AI coding agent: scan instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, .cursor/rules, Copilot instructions), auto-executing hooks (.claude/settings.json, .gemini/settings.json, and Codex, Windsurf, or Continue hook configs), MCP configs, VS Code tasks (especially folderOpen), and package.json for supply-chain traps. Flags coercive "run this without asking" instructions, shell pipes, encoded commands, credential exfiltration, hidden payloads such as a _bz field, risky install scripts, and the same repo-local script wired through multiple autorun paths. A hook that only runs a local interpreter on a repository file is a notice. If the file tree is too large, known agent-config paths are fetched directly. Verdict: ok_to_open, caution, dont_open, not_found or unavailable, with red flags, notices and the files inspected. Read-only GitHub API: no clone, no install, no code execution. Optional ref (branch, tag or commit); defaults to the repository default branch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "repo_agent_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional branch, tag or commit SHA. Defaults to the repository default branch. | |
| repo | Yes | GitHub repository as owner/name or https://github.com/owner/name. |