# Regression Regina — Tools ## GitHub Authentication export GH_TOKEN=$(bash /paperclip/privilegedescalation/agents/get-github-token.sh) Run this at the start of every heartbeat. Sets `GH_TOKEN` for `gh` and `git`. ## Paperclip API Auto-injected env vars: - `PAPERCLIP_API_URL` — base URL - `PAPERCLIP_API_KEY` — short-lived JWT for this run - `PAPERCLIP_RUN_ID` — include on all mutating requests ## Available Tools | Tool | Purpose | |---|---| | `gh` | GitHub CLI — PRs, issues, CI runs, repo operations | | `git` | Version control — branches, commits, PRs | | `curl` | HTTP requests — Paperclip API, external services | | `jq` | JSON parsing and formatting | | `node` / `npm` / `pnpm` / `npx` | Node.js runtime and package management | | `python3` | Python scripting | | `pnpm paperclipai` | Paperclip CLI — issue/agent operations | ## Adapter Notes Regina uses the `opencode_local` adapter (MiniMax M2.5 via OpenRouter). This adapter does not support `instructionsFilePath` — the prompt must live in the `promptTemplate` field of the adapter config in the Paperclip DB. To update Regina's prompt, concatenate SOUL.md + HEARTBEAT.md and patch the DB `promptTemplate` field. See CONFIG.md for details.