NEXUS Claude Code Plugin
The NEXUS plugin brings the power of a 56-agent autonomous software engineering organization directly into Claude Code. Instead of single-agent assistance, you get an entire org with leadership, engineers, designers, QA, and specialists.
Installation
From Claude Code Plugin Marketplace
- Open Claude Code
- Go to Settings โ Plugins
- Search for "NEXUS"
- Install "NEXUS - Enterprise Multi-Agent Orchestration"
- Restart Claude Code
Manual Installation
# Clone the plugin
git clone https://github.com/Garrett-s-Apps/nexus-plugin.git ~/.claude/plugins/nexus
# Install to Claude Code
claude plugin install ~/.claude/plugins/nexus
Plugin Architecture
The NEXUS plugin consists of three main components:
1. Skills (Auto-Triggered)
Skills automatically activate based on your natural language input:
2. Commands (Manual Invocation)
Slash commands for direct access to NEXUS capabilities:
/nexus-status/nexus-cost/nexus-hire <specialist>/nexus-debug --domain <area>/nexus-search --mode <type>3. Agent Integration
The plugin includes specialized agents that extend Claude Code's capabilities:
- VP Engineering: Strategic planning and technical architecture
- Senior Engineer: Implementation and code quality
- QA Lead: Quality assurance and testing strategy
- Security Engineer: Security review and vulnerability analysis
- Debug Investigator: Root cause analysis and error investigation
Skills Deep Dive
Autonomous Build Skill
What it does: Transforms high-level requests into complete feature implementations using the full NEXUS organization.
Example usage:
User: "Build me a user authentication API with React frontend"
What happens:
- Planning Phase: VP of Engineering analyzes requirements
- Team Building: Dynamically hires specialists (Security Engineer for auth, Frontend Engineer for React)
- Implementation: Multi-agent parallel execution across backend API, frontend components, database schema
- Quality Gates: QA Lead reviews, Security Engineer validates
- Completion: Working code committed to Git with cost report
Key Features:
- Dynamic team composition: VP decides which specialists to hire based on requirements
- Session persistence: Hired agents stay available for follow-up requests
- Parallel workstreams: Frontend, backend, testing, and documentation happen simultaneously
- Zero-tolerance quality: Warnings = errors, comprehensive review gates
Code Review Organization
What it does: Provides multi-perspective code review using 4 specialized reviewers running in parallel.
Reviewers:
- Style Reviewer: Formatting, naming conventions, code idioms
- Quality Reviewer: Logic defects, maintainability, anti-patterns
- Security Reviewer: Vulnerabilities, trust boundaries, authentication
- Performance Reviewer: Algorithmic complexity, memory usage, optimization opportunities
Output: Comprehensive review report with severity ratings and actionable recommendations.
Debug Investigation Skill
What it does: Deep debugging that leverages NEXUS's cross-session memory to find similar past errors and their resolutions.
Process:
- Error Analysis: Classify the error type and domain
- Knowledge Retrieval: Search RAG database for similar past errors
- Pattern Recognition: Identify common failure patterns
- Solution Synthesis: Combine past solutions with current context
- Prevention: Suggest changes to prevent similar issues
Knowledge Sources:
- Past error resolutions (weighted 1.3x for high value)
- Task outcomes and lessons learned
- Code change history and their impacts
- Cross-session conversation memory
Semantic Search Skill
What it does: Search institutional knowledge using semantic similarity rather than keyword matching.
Search Modes:
errors: Past error resolutions and debugging sessionstasks: Completed task outcomes and agent performancecode: Code changes and their impactsconversations: Past Q&A and decision discussionsall: Search across all knowledge types
Example:
/nexus-search --mode errors --domain backend "rate limiting"
Returns:
- Similar past errors with their resolutions
- Agents who successfully handled similar issues
- Cost estimates based on historical data
- Recommended approaches and gotchas to avoid
Commands Reference
/nexus-status
Shows comprehensive organization status:
# ๐ข NEXUS Organization Status
## Agents (56 total)
โ Executive Layer (10): Chief of Staff, CPO, CFO, CRO, CTO, CISO, COO, CMO, CLO, CDO
โ Management Layer (10): VP Eng, VP Product, VP Ops, Engineering Managers, Tech Leads
โ Senior Layer (12): Senior Engineers, Architects, Code Reviewers
โ Implementation Layer (15): Frontend, Backend, Full-Stack, DevOps, Data Engineers
โ Quality Layer (6): QA Leads, Test Engineers, Security Engineers
โ Consultant Layer (3): Security Architect, UX Consultant, Systems Architect
## System Health: โ Healthy
- Server: โ Running on port 4200
- Databases: โ 7 encrypted databases connected
- ML Models: โ Agent router, cost predictor trained
- RAG Knowledge: โ 1,247 chunks indexed
## Recent Activity (last 5 tasks)
1. [2024-01-15 14:30] Build auth API ($0.42, 45s) โ
2. [2024-01-15 13:15] Code review PR #123 ($0.18, 22s) โ
/nexus-hire
Adds specialist agents to your current session:
# Add a security engineer
/nexus-hire security-engineer
# Add a performance engineer
/nexus-hire performance-engineer
# Add a frontend specialist
/nexus-hire frontend-engineer
Available Specialists:
security-engineer: Authentication, encryption, vulnerability analysisperformance-engineer: Optimization, caching, scalabilityfrontend-engineer: React, Vue, Angular, UI/UXbackend-engineer: APIs, databases, microservicesdevops-engineer: CI/CD, Docker, Kubernetesdatabase-architect: Schema design, queries, migrations
/nexus-debug
Launches targeted debug investigations:
# Debug with domain filtering
/nexus-debug --domain backend "API returning 500 errors"
# Debug with specific error context
/nexus-debug --context "authentication failing after login"
# Debug with file scope
/nexus-debug --files "src/auth/login.py" "login timeout issues"
Parameters:
--domain: Filter knowledge by domain (frontend, backend, devops, security)--context: Additional context for the investigation--files: Specific files to focus the investigation on
/nexus-search
Search the knowledge base with advanced filtering:
# Search for error resolutions
/nexus-search --mode errors "database connection timeout"
# Search task outcomes
/nexus-search --mode tasks --domain frontend "React component optimization"
# Search code changes
/nexus-search --mode code "authentication middleware"
# Search conversations
/nexus-search --mode conversations "deployment strategy"
Context Rules System
The plugin automatically attaches relevant project context based on file patterns and @mentions:
File Pattern Rules
| Pattern | Context Attached |
|---|---|
**/*.py | Python coding standards, Django/Flask patterns |
**/*.ts, **/*.tsx | TypeScript strict mode, React/Next.js patterns |
**/*.js, **/*.jsx | JavaScript best practices, Node.js patterns |
**/test/** | Testing strategies, QA requirements |
**/docs/** | Documentation standards, technical writing |
@Mention Rules
| Mention | Agent Activated | Context |
|---|---|---|
@security | Security Engineer | OWASP Top 10, security scanning |
@performance | Performance Engineer | Optimization patterns, profiling |
@qa | QA Lead | Testing strategies, quality gates |
@architect | Systems Architect | Design patterns, scalability |
Integration with NEXUS Server
When the NEXUS server is running (localhost:4200), the plugin provides enhanced capabilities:
Server-Connected Features
- Real-time cost tracking: Live budget monitoring and alerts
- Cross-session memory: Access to full RAG knowledge base
- ML predictions: Cost estimation and agent routing recommendations
- Organizational persistence: Hired agents persist across Claude Code sessions
- Advanced analytics: Performance metrics and optimization suggestions
Offline Mode
When the server isn't available, the plugin operates with reduced functionality:
- Basic skills work with simplified logic
- No cross-session memory or RAG search
- No cost prediction or ML routing
- Limited to single-session agent interactions
Configuration
Plugin Settings
Configure the plugin via .claude-plugin/config.json:
{
"nexusServerUrl": "http://localhost:4200",
"defaultModel": "sonnet",
"maxCostPerSession": 5.00,
"autoAttachRules": true,
"enableMLRouting": true,
"logLevel": "info"
}
Environment Variables
# NEXUS server connection
export NEXUS_SERVER_URL=http://localhost:4200
export NEXUS_API_KEY=your-api-key
# Model preferences
export NEXUS_DEFAULT_MODEL=sonnet
export NEXUS_PLANNING_MODEL=opus
export NEXUS_QA_MODEL=haiku
# Cost controls
export NEXUS_MAX_SESSION_COST=5.00
export NEXUS_ENABLE_COST_ALERTS=true
Use Cases
1. Full Feature Development
User: "Build me a blog system with user auth, posts, and comments"
The autonomous-build skill activates, hiring specialists and delivering:
- Backend API with authentication
- Database schema with migrations
- Frontend components in React/Vue
- Test suites for all components
- Security review and performance optimization
- Complete deployment configuration
2. Code Quality Assurance
User: "Review this authentication module"
The code-review-org skill provides:
- Style and formatting review
- Security vulnerability analysis
- Performance optimization suggestions
- Logic error detection
- Maintainability improvements
3. Debugging Complex Issues
User: "Debug why our API is randomly timing out"
The debug-investigate skill:
- Searches past similar timeout issues
- Analyzes code patterns and dependencies
- Provides resolution steps based on past successes
- Suggests monitoring and prevention measures
4. Knowledge Discovery
User: "Have we built anything like a rate limiter before?"
The semantic-search skill finds:
- Past rate limiting implementations
- Cost and complexity estimates
- Successful approaches and gotchas
- Agent recommendations based on past performance
Best Practices
Getting Maximum Value
- Be Specific: "Build a REST API with JWT auth" works better than "build an API"
- Use Natural Language: The plugin understands intent, not just commands
- Leverage Specialists: Let the VP hire appropriate experts for complex tasks
- Review Recommendations: The plugin learns from feedback and corrections
- Connect to Server: Run the NEXUS server for full capabilities
Cost Optimization
- Use Appropriate Models: Haiku for simple tasks, Opus for complex planning
- Set Budget Limits: Configure cost alerts and hard caps
- Leverage Learning: The system gets more efficient as it learns your patterns
- Batch Related Work: Group similar tasks to maximize specialist efficiency
Security Considerations
- Review Generated Code: Always review security-sensitive implementations
- Use Security Engineer: Explicitly hire security engineers for auth/crypto work
- Follow Compliance: The plugin supports enterprise security workflows when server is connected
- Audit Trails: All actions are logged when connected to NEXUS server
Troubleshooting
Common Issues
Plugin not activating skills:
- Check trigger phrases match exactly
- Verify plugin is properly installed and enabled
- Restart Claude Code after configuration changes
Server connection issues:
- Verify NEXUS server is running on localhost:4200
- Check firewall settings allow connections
- Validate API key configuration
High costs:
- Set budget limits in configuration
- Use cheaper models for simple tasks (Haiku instead of Opus)
- Enable cost alerts and monitoring
Poor quality outputs:
- Provide more specific requirements
- Use the code-review-org skill for quality assurance
- Connect to NEXUS server for ML-improved routing
Getting Help
- Documentation: Full docs at buildwithnexus.dev
- Community: Join the NEXUS Discord for support and discussion
- Issues: Report bugs on GitHub Issues
- Enterprise: Contact enterprise@nexus.dev for commercial support
The NEXUS plugin transforms Claude Code from a single-agent assistant into a complete autonomous software engineering organization. Experience the difference of having an entire org working on your projects.