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

  1. Open Claude Code
  2. Go to Settings โ†’ Plugins
  3. Search for "NEXUS"
  4. Install "NEXUS - Enterprise Multi-Agent Orchestration"
  5. 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:

autonomous-buildOpus
Full feature implementation with org orchestration
"build me", "create a", "implement"
code-review-orgSonnet
Multi-perspective code review with 4 specialized reviewers
"review this code", "check my code"
debug-investigateSonnet
Deep debugging with semantic search over past errors
"debug", "investigate", "root cause"
semantic-searchHaiku
Search past knowledge and error resolutions
"search knowledge", "have we done this"
cost-reportHaiku
Comprehensive cost analysis and budget tracking
"cost report", "show costs", "burn rate"
context-rulesHaiku
Automatically loads CLAUDE.md, AGENTS.md, and project-specific rules into context when editing files. No user action needed.
Background ยท Always active

2. Commands (Manual Invocation)

Slash commands for direct access to NEXUS capabilities:

/nexus-status
Show org status and system health
/nexus-cost
Quick cost summary for current session
/nexus-hire <specialist>
Add specialist agent to session team
/nexus-debug --domain <area>
Launch semantic debug investigation
/nexus-search --mode <type>
Search knowledge base

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:

  1. Planning Phase: VP of Engineering analyzes requirements
  2. Team Building: Dynamically hires specialists (Security Engineer for auth, Frontend Engineer for React)
  3. Implementation: Multi-agent parallel execution across backend API, frontend components, database schema
  4. Quality Gates: QA Lead reviews, Security Engineer validates
  5. 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:

  1. Error Analysis: Classify the error type and domain
  2. Knowledge Retrieval: Search RAG database for similar past errors
  3. Pattern Recognition: Identify common failure patterns
  4. Solution Synthesis: Combine past solutions with current context
  5. 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 sessions
  • tasks: Completed task outcomes and agent performance
  • code: Code changes and their impacts
  • conversations: Past Q&A and decision discussions
  • all: 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 analysis
  • performance-engineer: Optimization, caching, scalability
  • frontend-engineer: React, Vue, Angular, UI/UX
  • backend-engineer: APIs, databases, microservices
  • devops-engineer: CI/CD, Docker, Kubernetes
  • database-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

PatternContext Attached
**/*.pyPython coding standards, Django/Flask patterns
**/*.ts, **/*.tsxTypeScript strict mode, React/Next.js patterns
**/*.js, **/*.jsxJavaScript best practices, Node.js patterns
**/test/**Testing strategies, QA requirements
**/docs/**Documentation standards, technical writing

@Mention Rules

MentionAgent ActivatedContext
@securitySecurity EngineerOWASP Top 10, security scanning
@performancePerformance EngineerOptimization patterns, profiling
@qaQA LeadTesting strategies, quality gates
@architectSystems ArchitectDesign 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

  1. Be Specific: "Build a REST API with JWT auth" works better than "build an API"
  2. Use Natural Language: The plugin understands intent, not just commands
  3. Leverage Specialists: Let the VP hire appropriate experts for complex tasks
  4. Review Recommendations: The plugin learns from feedback and corrections
  5. Connect to Server: Run the NEXUS server for full capabilities

Cost Optimization

  1. Use Appropriate Models: Haiku for simple tasks, Opus for complex planning
  2. Set Budget Limits: Configure cost alerts and hard caps
  3. Leverage Learning: The system gets more efficient as it learns your patterns
  4. Batch Related Work: Group similar tasks to maximize specialist efficiency

Security Considerations

  1. Review Generated Code: Always review security-sensitive implementations
  2. Use Security Engineer: Explicitly hire security engineers for auth/crypto work
  3. Follow Compliance: The plugin supports enterprise security workflows when server is connected
  4. 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

  1. Documentation: Full docs at buildwithnexus.dev
  2. Community: Join the NEXUS Discord for support and discussion
  3. Issues: Report bugs on GitHub Issues
  4. 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.