This guide walks you through the complete setup from GitHub OAuth to getting your first automated PR review.
Prerequisites
Before you begin, ensure you have:- A GitHub account with access to at least one repository
- Repository admin permissions (required to install webhooks)
- A modern web browser
Step 1: Sign Up with GitHub OAuth
Nectr uses GitHub OAuth for secure authentication and repository access.Authorize Nectr
You’ll be redirected to GitHub’s authorization page. Review the requested permissions:
repo— Read and write access to code (required to post PR reviews)read:user— Read your GitHub profileuser:email— Access your email address
Your GitHub access token is encrypted using Fernet (AES-128-CBC) before storage. The JWT cookie is httpOnly, Secure (in production), and SameSite=None for cross-origin support.
Step 2: Connect Your First Repository
Now that you’re authenticated, connect a repository to enable automatic PR reviews.Navigate to Code Providers
Click Repos in the sidebar or navigate to
/repos.You’ll see all repositories your GitHub account has access to, grouped into:- Connected — repositories with active Nectr webhooks
- Available — repositories you can connect
Connect a Repository
Find the repository you want to enable AI reviews for and click Connect.This triggers the following actions:
Step 3: Open a Pull Request
With your repository connected, any new PR will trigger an automatic AI review.Open Pull Request on GitHub
- Go to your repository on GitHub
- Click Compare & pull request
- Add a title and description (mention issues with
Fixes #123) - Click Create pull request
Step 4: AI Analysis in Progress
While you wait, here’s what happens behind the scenes:1. Fetch PR Data from GitHub
1. Fetch PR Data from GitHub
2. Build Review Context (Parallel)
2. Build Review Context (Parallel)
Nectr gathers contextual intelligence from multiple sources:
3. Agentic AI Review
3. Agentic AI Review
Claude Sonnet 4.6 analyzes your PR with on-demand tool access:The AI produces:
- Summary: High-level verdict with reasoning
- Verdict:
APPROVE,REQUEST_CHANGES, orNEEDS_DISCUSSION - Inline Comments: Line-specific suggestions with ````suggestion` blocks
- Semantic Issue Matches: Issues resolved without explicit
Fixes #Nmention
4. Post Review Comment
4. Post Review Comment
5. Index PR in Neo4j
5. Index PR in Neo4j
6. Extract Learned Memories
6. Extract Learned Memories
After posting the review, Claude extracts new memories from the PR:
Step 5: Review the AI Feedback
Navigate to your PR on GitHub — you’ll see a new comment from Nectr:
The review includes:
AI Summary
High-level verdict with reasoning:
- Verdict: APPROVE / REQUEST_CHANGES / NEEDS_DISCUSSION
- Key concerns (bugs, security, performance, style)
- Overall recommendation
Resolved Issues
Lists GitHub issues closed by this PR:
- Auto-detected from
Fixes #123,Closes #456 - Shows issue state (open/closed)
Semantic Matches
Issues likely resolved without explicit mention:
- Claude analyzes open issues for keyword/semantic overlap
- Confidence: high (🟢) or medium (🟡)
Open PR Conflicts
Other PRs touching the same files:
- Warns about potential merge conflicts
- Links to conflicting PRs with authors
Inline Suggestions
Nectr posts GitHub review comments with ````suggestion` blocks:Next Steps
Dashboard
View PR review history, verdict distribution, and team analytics
Knowledge Graph
Explore how Nectr tracks file experts and code ownership
Semantic Memory
Learn how Nectr remembers project patterns and developer habits
AI Analysis
Deep dive into the agentic review process and tool usage
Troubleshooting
No review comment appeared on my PR
No review comment appeared on my PR
Check the following:
- Webhook installed? Go to your repo → Settings → Webhooks. Verify the Nectr webhook exists and has a green checkmark for recent deliveries.
- Event status: Navigate to
/reviewsin the Nectr dashboard. Find your PR — status should becompleted. Iffailed, hover for error details. - GitHub permissions: Nectr requires a Personal Access Token (PAT) with
reposcope to post reviews. Check Railway logs for403 Forbiddenerrors. - Railway logs: SSH into Railway container and run
docker logs <container_id>to see detailed error traces.
Review posted but verdict is missing
Review posted but verdict is missing
The AI verdict is extracted from the summary text via regex:If the pattern doesn’t match, the verdict won’t display. This is a frontend parsing issue — the backend still recorded the correct verdict in the
workflow table.Graph build failed (0 files indexed)
Graph build failed (0 files indexed)
Common causes:
- Empty repository: GitHub returns 0 files for repos with no commits
- Token lacks repo scope: GitHub OAuth token must have
repoaccess - API rate limit: GitHub caps recursive tree fetches at 5,000/hour
MCP integrations (Linear/Sentry) not working
MCP integrations (Linear/Sentry) not working
MCP integrations are optional. If you see warnings like:This is expected if you haven’t set those env vars. Nectr gracefully skips unavailable integrations.
What’s Next?
You’ve successfully:- ✅ Authenticated with GitHub OAuth
- ✅ Connected a repository and built the knowledge graph
- ✅ Received your first AI PR review
- PR Review Deep Dive — Understand the review workflow in detail
- Team Analytics — Track team productivity and code quality
- Custom Memories — Add project-specific rules for Nectr to enforce