Reference
Tools
Every agent has these. repo is owner/name and can be omitted: it is inferred from the origin remote of the agent's working directory.
| Tool | What it does | Action | Parameters |
|---|---|---|---|
github_policy | What you may do on a repo (every action allowed or denied, with the reason) and the active rate-limit state. | — | repo |
github_repo_info | Description, default branch, visibility, open issue count. | read | repo |
github_list_branches | List branches. | read | repo, page, per_page |
github_delete_branch | Delete a branch. | delete_branch | repo, branch |
github_list_prs | List pull requests. | read | repo, state, head, base, page, per_page |
github_get_pr | One pull request; include files, reviews or comments. | read | repo, number, include |
github_create_pr | Open a pull request. | create_pr | repo, title, head, base, body, draft |
github_update_pr | Edit, close or reopen a pull request. | update_pr | repo, number, title, body, base, state |
github_merge_pr | Merge a pull request; pass sha to refuse if the branch moved. | merge | repo, number, merge_method, commit_title, commit_message, sha |
github_review_pr | Approve, request changes or comment, with optional line comments. | review | repo, number, event, body, comments |
github_comment | Comment on an issue or pull request. | comment | repo, number, body |
github_list_issues | List issues. | read | repo, state, labels, assignee, page, per_page |
github_get_issue | One issue, optionally with comments. | read | repo, number, include_comments |
github_create_issue | Open an issue. | create_issue | repo, title, body, labels, assignees |
github_checks | Check runs and commit status of a ref or pull request. | read | repo, ref or pr |
github_search | Search issues, PRs, code, repos or commits. Needs a repo, org or user scope. | read | query, type, repo, org, user, page, per_page |
github_api | REST or GraphQL for what the others do not cover. | generic_api_read / generic_api_write + the specific action | kind, method, path, params, body, query, variables, repo |
Lists accept page and per_page (default 30); when more results exist the answer says which page to ask for. Answers are capped at about 40,000 characters.
Policy
Actions
| Action | Covers | Risk |
|---|---|---|
read | Get and list PRs, issues, checks, branches, repo info, search. | safe |
comment | Comment on issues and pull requests. | low |
review | Submit a pull request review. | medium |
create_issue | Open issues. | low |
create_pr | Open pull requests. | low |
update_pr | Edit, close or reopen pull requests and issues. | medium |
merge | Merge pull requests. | high |
delete_branch | Delete branches. | high |
force_push | Non fast-forward update of a ref. | high |
generic_api_read | github_api GET and GraphQL queries. | low |
generic_api_write | github_api writes and GraphQL mutations. | high |
Presets
| Preset | Allows by default |
|---|---|
| Read-only (default) | read, generic_api_read |
| PR workflow | Read-only plus comment, review, create_issue, create_pr, update_pr |
| Full | Every action |
Changing an individual permission makes the policy Custom unless it matches a preset.
Rules
A rule has an effect (allow or deny), repository patterns, actions (or all), and an optional reason that is shown to the agent in the denial. For each needed action: a matching deny rule denies; otherwise a matching allow rule allows; otherwise the default permissions decide. Rule order does not matter.
Patterns are owner/repo, case-insensitive. * matches any run of characters inside one part: acme/*, */docs, acme/web-*. A lone * matches every repository.
How github_api is classified
| Request | Needs |
|---|---|
GET, HEAD, GraphQL query | generic_api_read |
POST .../issues | create_issue + generic_api_write |
POST .../issues/N/comments, .../pulls/N/comments | comment + generic_api_write |
POST .../pulls/N/reviews | review + generic_api_write |
POST .../pulls | create_pr + generic_api_write |
PATCH/PUT .../pulls/N, .../issues/N | update_pr + generic_api_write |
PUT .../pulls/N/merge, POST .../merges | merge + generic_api_write |
DELETE .../git/refs/... | delete_branch + generic_api_write |
PATCH .../git/refs/... with force: true | force_push + generic_api_write |
| Any other write | generic_api_write |
| GraphQL mutation | generic_api_write + the action of each root field (mergePullRequest → merge, addComment → comment, deleteRef → delete_branch, ...) |
Allowed owners
Checked before the policy. Exact, case-insensitive; * allows all; the default is *; an empty list refuses everything. Paths that name no owner (/user/repos, a search without repo:, org: or user:, a GraphQL call without repo) are refused unless * is allowed.
Settings
| Setting | Where | Default |
|---|---|---|
Active source (gh or app) | Auth | gh |
| Fall back to the other source on rate limit | Auth | off |
| Allowed owners | Auth | * (every owner) |
| GitHub Apps (organization, App ID, installation ID, also-serves owners, default) and their private keys | Auth | none |
| Preset, default permissions, rules | Policy | Read-only, no rules |
| Cache TTL in seconds (0 to 3600) | Policy | 30 |
| Forbid direct use of gh, curl and raw GitHub | Policy | off |
| Block gh/curl commands (hard) | Policy | off |
The page
- Overview: remaining and limit per credential (gh and each GitHub App) and resource, a reset countdown, a requests-per-minute chart, the cache hit rate, and banners when a limit is nearly or fully used up or no owner is allowed.
- Auth: source choice, gh check, the list of GitHub Apps (add, edit, remove, organization, also-serves owners, default, test connection), fallback toggle, allowed owners.
- Policy: presets, default permissions, rules, the dry-run box, the soft and hard rules, the cache TTL.
- Activity: a live log of calls per agent: tool, repository, allowed, cached, revalidated, denied or failed, HTTP status, the source (and the App that served it) and duration. Tap a row for the full message.
Files
$PASEO_HOME/plugin-data/lerenn/paseo-github-proxy/: config.json, secrets.json (mode 0600), cache.json.