Available Feature Flags
Parallel Review Agents
Enable parallel review mode with 3 specialized agents running concurrently.
Parallel Review Agents
By default, Nectr uses a single agentic review loop where Claude iteratively fetches context using MCP-style tools. WhenPARALLEL_REVIEW_AGENTS=true, Nectr switches to a parallel architecture with three specialized agents.
Architecture Comparison
Standard Mode (Default)
Standard Mode (Default)
Single Agentic LoopCharacteristics:
- ✅ Faster for small PRs (1 API call)
- ✅ Lower token usage
- ✅ More efficient context fetching (only what’s needed)
- ✅ Better for budget-conscious deployments
- ❌ Single perspective on code review
Parallel Mode
Parallel Mode
Three Specialized Agents + SynthesisCharacteristics:
- ✅ More thorough analysis (3 specialized perspectives)
- ✅ Can be faster for large PRs (parallel execution)
- ✅ Better at catching domain-specific issues
- ✅ More comprehensive coverage
- ❌ 4x API calls (higher cost)
- ❌ Higher token usage
- ❌ Overkill for small PRs
How It Works
When to Use Parallel Mode
✅ Good Use Cases
✅ Good Use Cases
- Large PRs (>10 files or >500 lines changed)
- Parallel execution can be faster
- More thorough analysis justifies extra cost
- Security-critical codebases
- Dedicated security agent catches more vulnerabilities
- Authentication, authorization, input validation get focused review
- Performance-sensitive applications
- Dedicated performance agent analyzes database queries, caching, algorithms
- Better at identifying N+1 queries and memory leaks
- Team projects with strict style guides
- Style agent enforces consistency across codebase
- Catches pattern violations and readability issues
- High-stakes reviews
- Production deployments
- Public API changes
- Database migrations
❌ Avoid for
❌ Avoid for
- Small PRs (<5 files, <200 lines)
- Overkill for minor changes
- Standard mode is faster and cheaper
- Documentation-only changes
- No code to analyze
- Parallel agents provide no extra value
- Budget-constrained projects
- 4x Claude API calls = 4x cost
- Standard mode is sufficient for most PRs
- High-volume repositories
- Many PRs per day = high cost multiplier
- Consider enabling only for specific branches or file patterns
Cost Comparison
Assuming Claude Sonnet 4.5 pricing (as of March 2026):| Mode | API Calls | Avg Tokens | Approx Cost per Review |
|---|---|---|---|
| Standard | 1 main call + tool iterations | 8k-15k | 0.08 |
| Parallel | 4 calls (3 agents + synthesis) | 20k-40k | 0.30 |
- Standard: ~$6/month
- Parallel: ~$22/month
Configuring Feature Flags
Via Environment Variables
Via Settings Class
Feature flags are defined in the settings class:False if the environment variable is not set.
Runtime Changes
To change feature flags:- Update
.envfile - If using Railway/Heroku/etc, update environment variables in the platform dashboard
- Changes take effect immediately for new webhook events
Experimental Features (Planned)
The following feature flags are planned for future releases:ENABLE_SLACK_NOTIFICATIONS
ENABLE_SLACK_NOTIFICATIONS
Status: PlannedSend Slack notifications when reviews are posted.
ENABLE_LINEAR_SYNC
ENABLE_LINEAR_SYNC
Status: PlannedAutomatically update Linear issues when PRs are merged.
AUTO_APPROVE_SAFE_PRS
AUTO_APPROVE_SAFE_PRS
Status: PlannedAutomatically approve PRs that pass all checks and have no issues.
ENABLE_REVIEW_CACHING
ENABLE_REVIEW_CACHING
Status: PlannedCache review results for identical diffs to save API costs.
Debugging Feature Flags
Check Current Settings
View active feature flags via the health endpoint:Check Logs
Feature flags are logged when a review starts:Next Steps
Environment Variables
View all configuration options
Webhooks
Learn how PR events trigger reviews