Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

local-gh-dev

БесплатноБез исполняемых скриптовНе проверен

Run the Open SWE dashboard locally against real GitHub data, signed in with the `gh` CLI instead of a per-machine GitHub App. Use when asked to run the app…

langchain-aiот langchain-ai★ 11 279 звёзд на GitHub

Об этом скилле

Local dashboard on real GitHub data

The dashboard's per-user reads — the PR list, one PR's details, a PR preview — run on the signed-in person's own OAuth token. gh already holds one, so local development needs no GitHub App: /dashboard/api/auth/dev-login turns gh's credentials into a session. It is refused unless langgraph dev is the runtime, and the ALLOWED_GITHUB_USERS gate still applies.

Start it

  1. Confirm gh is logged in. gh auth status — if not, gh auth login.

  2. Check the ports. The backend wants 2024 and Vite wants 3000:

    lsof -nP -iTCP:3000,2024 -sTCP:LISTEN
    

    Other worktrees run their own backends and E2E harnesses on 2024. Never kill one without asking. Use another port instead and point Vite at it — every command below takes PORT for exactly that reason.

  3. Make sure .env has these. The GitHub App keys are not needed; these are:

    Key Why
    DASHBOARD_JWT_SECRET signs the session; any random string
    ALLOWED_GITHUB_USERS your gh api user --jq .login
    POSTGRES_URI skips the container step when one is already up
    DASHBOARD_BASE_URL http://localhost:3000
    DASHBOARD_API_BASE_URL http://localhost:3000

    Startup aborts with ALLOWED_GITHUB_ORGS or ALLOWED_GITHUB_USERS must be configured when the allowlist is missing.

  4. Start the backend. make dev covers this when 2024 is free and you want its postgres container; otherwise run it directly:

    uv run langgraph dev --no-browser --port 2026 --n-jobs-per-worker 10
    
  5. Start Vite against it:

    DASHBOARD_API_URL=http://127.0.0.1:2026 pnpm run dev
    
  6. Open http://localhost:3000 and press Continue with GitHub. With no App configured it redirects to the gh login and lands you signed in. To skip the page, go straight to /dashboard/api/auth/dev-login?redirect_to=/agents/reviews.

Postgres

make dev starts an open-swe-postgres container unless POSTGRES_URI is set, and fails with a name conflict when another worktree already started one. Reuse it:

docker ps --filter name=open-swe-postgres --format '{{.Names}} {{.Status}} {{.Ports}}'

It binds 127.0.0.1:5433, so POSTGRES_URI=postgresql://postgres:[email protected]:5433/postgres.

The App token, and why gh covers it

Code paths that want an App installation token rather than the caller's — a published review and its diff, inline review comments, the reviewer trigger — fall back to the gh CLI's token under langgraph dev (openswe/github/app.py::_local_dev_token). So they work locally, and 503 GitHub App token unavailable means gh is logged out, not that the feature needs an App.

The fallback is gated on the runtime being langgraph dev, so it never widens a deployed installation's reach. That gate is why a standalone script cannot trigger agent work: uv run python -c "...trigger_re_review(...)" fails with No GitHub App token available, because dev_login_enabled() is false outside the server. Drive those paths over HTTP instead (below).

Running a real agent

Agent and reviewer runs work locally against real models and real sandboxes. Nothing is stubbed; runs cost money and take minutes.

  1. .env needs LANGSMITH_GATEWAY_API_KEY (or LANGSMITH_API_KEY) with gateway:invoke. Configure provider keys in LangSmith workspace Provider Secrets; Robin never calls providers directly.

  2. Expose the dashboard on a real hostname (make tunnel, see docs/DEVELOPMENT.md). Every run's sandbox is a LangSmith one Managed Deep Agents creates, and those cannot work from a laptop's localhost: the run PATCHes a proxy config whose match_hosts is the hostname of your DASHBOARD_API_BASE_URL, and the sandbox API rejects localhost with a bare 422 unknown whose body never reaches the log. It fails in PrepareReviewerRunMiddleware.before_agent, so the agent never starts and the review settles with zero findings — which reads exactly like a model that chose to say nothing.

  3. Get a session cookie, then post the trigger. Mutations are CSRF-checked against DASHBOARD_BASE_URL, so send a matching Origin — without it you get 403 CSRF check failed:

    curl -sS -c /tmp/osw.txt -o /dev/null 'http://127.0.0.1:2026/dashboard/api/auth/dev-login?redirect_to=/review'
    curl -sS -b /tmp/osw.txt -X POST -H 'Origin: http://localhost:3000' \
      http://127.0.0.1:2026/dashboard/api/reviews/OWNER/REPO/NUMBER/re-review
    

    A {"success": true, "thread_id": "..."} means the run is queued, not finished.

  4. Watch it in the backend log. The run is minutes long and the failures worth catching are sandbox provisioning and model auth, so grep for both rather than only for the tool you care about:

    tail -f logs/backend.log | grep -E --line-buffered "sandbox|Traceback|error_detail=[^N]|publish_review"
    
  5. Reviewer output lands wh

Полный SKILL.md на GitHub

Установить local-gh-dev в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл local-gh-dev?

Run the Open SWE dashboard locally against real GitHub data, signed in with the `gh` CLI instead of a per-machine GitHub App. Use when asked to run the app locally, test a dashboard change against real PRs, reproduce something a screenshot shows, or when local login fails with "GITHUB_APP_CLIENT_ID not configured".

Как установить скилл local-gh-dev?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл local-gh-dev запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить local-gh-dev с