Skip to content

PowerSpy/AutoPR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoPR

Autonomous GitHub issue resolution. Point AutoPR at a repo, pick an issue, and it indexes the codebase, drafts a fix, runs tests in a sandbox, and opens a pull request.

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • Docker (for the sandbox agent)
  • A Nia account (codebase indexing)

Setup

1. Environment

cp .env.example .env

Fill in .env:

Variable Description
LLM_PROVIDER anthropic or openai
ANTHROPIC_API_KEY Required if using Anthropic
ANTHROPIC_MODEL Defaults to claude-sonnet-4-5
OPENAI_API_KEY Required if using OpenAI
OPENAI_MODEL Defaults to gpt-5
NIA_API_KEY Nia API key for codebase indexing
GITHUB_TOKEN Personal access token with repo scope
AGENT_PR_COMMENTS_ENABLED Set true to post agent commentary as PR comments

2. Backend

cd backend
pip install -r requirements.txt
uvicorn main:app --reload

Runs on http://localhost:8000.

3. Frontend

cd frontend
npm install
npm run dev

Runs on http://localhost:5173.

Usage

  1. Open http://localhost:5173
  2. Enter a GitHub repo URL (e.g. https://github.com/owner/repo)
  3. AutoPR indexes the codebase via Nia and loads open issues
  4. Select an issue, add optional context, and hit Start Resolution
  5. Watch the pipeline run live — indexing → code changes → tests → PR

Runs persist across page reloads. Cancel or dismiss any run from the dashboard.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors