Version: 1.0
Date: 2025-10-29
Status: Planning Phase
NexusAgent is an open-source, universal AI agent orchestration system that combines:
Target Users: Developers, data teams, content creators, AI engineers
Primary Use Cases: Any domain requiring intelligent AI workflows with governed context
nexus# One-command installation from GitHub
curl -sSL https://raw.githubusercontent.com/nextsystems/nexus/main/scripts/install.sh | bash
# Or manual
git clone https://github.com/nextsystems/nexus.git ~/nexus
~/nexus/scripts/base-install.sh
From Building Context-Aware Systems:
3-Level Context Allocation
Hierarchical Agent Architecture
XML Prompt Engineering
Modular Context Files
From Data Governance Agent System:
Request ID Protocol
tmp/requests/{uuid}.jsonDual Metadata System
metadata-index.json (fast JSON queries, no file I/O)Explicit Context Passing
Quality & Lifecycle Management
┌─────────────────────────────────────────────────────────────┐
│ USER REQUEST │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────▼────────────────────────────────────┐
│ MAIN ORCHESTRATOR AGENT │
│ • Analyzes request complexity (simple/moderate/complex) │
│ • Determines context level (1/2/3) │
│ • Routes to appropriate specialists │
│ • Creates request files for coordination │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────┼────────────────┐
│ │ │
┌───────▼──────┐ ┌─────▼─────┐ ┌──────▼──────┐
│ LEVEL 1 │ │ LEVEL 2 │ │ LEVEL 3 │
│ Direct │ │ Context │ │ Context │
│ Execute │ │ Provider │ │ Manager │
│ (80%) │ │ (15%) │ │ (5%) │
└──────────────┘ └─────┬──────┘ └──────┬──────┘
│ │
↓ ↓
Smart Context Full Governance
Selection + Quality Checks
│ │
↓ ↓
tmp/requests/ metadata-index.json
req-{uuid}.json Lifecycle Management
│ │
└────────┬───────┘
│
┌────────────┼────────────┐
│ │ │
┌─────▼────┐ ┌────▼─────┐ ┌───▼──────┐
│Specialist│ │Specialist│ │Specialist│
│ A │ │ B │ │ C │
└──────────┘ └──────────┘ └──────────┘
~/nexus/)~/nexus/
├── README.md
├── LICENSE (MIT)
├── config.example.yml
├── config.yml (user's config)
│
├── profiles/ # Pre-built profiles
│ ├── default/ # Basic orchestration
│ ├── governance/ # Data governance
│ ├── content/ # Content creation
│ └── custom-example/ # Example custom profile
│
├── scripts/
│ ├── install.sh # Main installation script
│ ├── project-install.sh # Install into project
│ ├── update.sh # Update installation
│ ├── create-profile.sh # Create custom profile
│ └── lib/
│ ├── colors.sh
│ ├── validation.sh
│ └── utils.sh
│
├── templates/ # Templates for custom creation
│ ├── agent-template.md
│ ├── command-template.md
│ ├── context-template.md
│ └── profile-template/
│
└── docs/
├── quick-start.md
├── architecture.md
├── profiles.md
└── customization.md
project/.nexus/)your-project/
└── .nexus/ # or .opencode, .ai, etc.
├── nexus.json # Project configuration
├── README.md # Auto-generated guide
│
├── agent/
│ ├── main-orchestrator.md
│ ├── context-provider.md # (Level 2+ contexts)
│ └── subagents/
│ ├── specialist-a.md
│ └── specialist-b.md
│
├── command/ # Slash commands
│ ├── workflow.md
│ └── execute.md
│
├── context/ # Domain knowledge
│ ├── core/ # Always available
│ ├── domain/ # Domain-specific
│ ├── processes/ # Workflows
│ ├── standards/ # Quality rules
│ └── templates/ # Reusable patterns
│
└── governance/ # (If governance enabled)
├── metadata-index.json # PRIMARY metadata
├── workflow-state.json # Workflow state machine
├── tmp/
│ └── requests/ # Request context files
└── logs/
├── access.log
├── changes.log
└── workflows.log
Purpose: Universal hierarchical orchestration for any domain
Components:
agents:
- main-orchestrator.md # Intelligent routing
- context-provider.md # Smart context selection
- task-planner.md # Multi-step planning
- subagents/
- code-reviewer.md
- test-writer.md
- doc-writer.md
commands:
- workflow.md # Main entry point
- plan-task.md # Complex planning
- execute-task.md # Step execution
context:
- core/essential-patterns.md
- architecture/project-structure.md
- workflows/simple-task.md
- workflows/complex-feature.md
governance: minimal
- metadata-index.json (basic tracking)
- No automated workflows
config:
context_level: 2
enable_governance: false
Purpose: Full data governance for context as data assets
Components:
agents:
- main-orchestrator.md # Routes to governance
- governance/
- context-manager.md # Primary governance agent
- subagents/
- quality-validator.md
- lifecycle-manager.md
- metadata-updater.md
- catalog-maintainer.md
commands:
- get-context.md # Retrieve with quality check
- update-context.md # Update after changes
- validate-quality.md # Quality validation
- lifecycle-review.md # Lifecycle management
- sync-metadata.md # Force metadata sync
context:
- governance/
- metadata-schema.md
- quality-dimensions.md
- lifecycle-states.md
- sync-strategies.md
- workflows/
- context-retrieval.md
- context-update.md
- quality-validation.md
governance: full
- metadata-index.json (PRIMARY with indexes)
- workflow-state.json (state machine)
- Automated workflows:
- daily_quality_sample
- weekly_lifecycle_review
- monthly_deep_audit
- Nightly sync job
- Full audit logging
- Lock-based concurrency
config:
context_level: 3
enable_governance: true
metadata_sync: "0 4 * * *"
quality_workflows: true
Purpose: Content creation with platform optimization and governance
Components:
agents:
# Orchestration
- content-orchestrator.md
- context-provider.md
# Content specialists
- subagents/
- twitter-specialist.md
- linkedin-specialist.md
- blog-specialist.md
- research-assistant.md
- content-validator.md
# Governance (inherited)
- governance/context-manager.md
- governance/subagents/ (all)
commands:
- create-content.md
- new-project.md
- work-on.md
- validate.md
- publish.md
context:
# Content domain
- brand/voice.md
- brand/accuracy-guidelines.md
- platforms/twitter/specs.md
- platforms/linkedin/specs.md
- workflows/multi-platform.md
# Governance (inherited)
- governance/ (all)
governance: full
- All governance features enabled
- Content lifecycle tracking
- Quality validation for content
config:
context_level: 2
enable_governance: true
enable_research: true
~/nexus/config.yml)# NexusAgent Configuration
version: "1.0.0"
# User information
user:
name: "Your Name"
email: "your@email.com"
# Installation defaults
defaults:
profile: "default"
ai_tool: "opencode"
folder_name: ".nexus"
context_level: 2
enable_governance: false
backup_existing: true
# Profile-specific overrides
profiles:
governance:
context_level: 3
enable_governance: true
metadata_sync: "0 4 * * *"
quality_workflows: true
content:
context_level: 2
enable_governance: true
enable_research: true
# AI tool integration
ai_tools:
opencode:
commands_folder: "command"
agents_folder: "agent/subagents"
context_folder: "context"
use_skills: true
cursor:
prompts_folder: ".cursor/prompts"
agents_folder: ".cursor/agents"
use_skills: false
# Advanced settings
advanced:
verbose_logging: false
telemetry: false # Privacy-first
auto_update_check: true
update_channel: "stable"
# Installation behavior
install:
create_examples: true
create_docs: true
run_validation: true
show_tips: true
.nexus/nexus.json){
"version": "1.0.0",
"profile": "governance",
"ai_tool": "opencode",
"installed_at": "2025-10-29T10:00:00Z",
"nexus_version": "1.0.0",
"config": {
"context_level": 3,
"enable_governance": true
},
"metadata": {
"project_name": "My Project",
"project_type": "data-governance"
}
}
Mitigation:
Mitigation:
Mitigation:
Mitigation:
Status: Ready for review and approval
Next Action: Get feedback on master plan, then proceed to detailed specifications