Version: 1.0
Date: 2025-10-29
Philosophy: OpenCode first, other tools optional via shared core
Primary: Build for OpenCode (the best tool)
Secondary: Share core context/governance with other tools if they can use it
No Maintenance Burden: Don't maintain tool-specific versions
project/
└── .opencode/ # PRIMARY - OpenCode standard
├── agent/
│ ├── main-orchestrator.md
│ ├── context-provider.md
│ └── subagents/
│ ├── code-reviewer.md
│ ├── quality-validator.md
│ └── content-creator.md
│
├── command/
│ ├── workflow.md
│ ├── plan-task.md
│ └── execute-task.md
│
├── context/ # SHARED - Other tools can read this
│ ├── core/
│ ├── domain/
│ ├── processes/
│ └── standards/
│
├── governance/ # SHARED - Universal governance
│ ├── metadata-index.json
│ ├── workflow-state.json
│ └── tmp/requests/
│
└── nexus.json # Configuration
Key Insight: Other AI tools can READ .opencode/context/ and .opencode/governance/ if they're compatible. We don't maintain separate versions.
project/
├── .opencode/ # OpenCode uses this
│ ├── agent/
│ ├── command/
│ ├── context/ ← Cursor can read this!
│ └── governance/ ← Cursor can read this!
│
└── .cursor/ # User creates if they want
├── prompts/
│ └── workflow.md # Points to: ../.opencode/context/
└── rules.md
Cursor prompt example (user-created):
# Workflow
Load context from `.opencode/context/core/`
Follow patterns defined there.
[Rest of prompt]
# User runs installer
~/nexus/scripts/install.sh --profile governance
# Installer detects:
✓ Found .cursor/ folder
? Also create Cursor-compatible structure? (Y/n)
# If yes:
✓ Created .opencode/ (primary)
✓ Created .cursor/prompts/ pointing to .opencode/context/
ℹ Cursor can now read shared context
# User wants to use Cursor too
~/nexus/scripts/bridge-to-cursor.sh
# Creates minimal .cursor/ structure:
# .cursor/
# └── prompts/
# └── shared-context.md # Points to .opencode/context/
✓ Bridge created
ℹ Cursor prompts can now reference .opencode/context/
curl -sSL https://raw.githubusercontent.com/nextsystems/nexus/main/scripts/install.sh | bash
cd my-project
~/nexus/scripts/install.sh --profile governance
# Creates:
# .opencode/
# ├── agent/
# ├── command/
# ├── context/
# └── governance/
# That's it!
We don't maintain them, but we make it easy:
# IF user wants Cursor support:
~/nexus/scripts/optional/bridge-cursor.sh
# Creates minimal bridge
# User can customize from there
Installation Scripts
install.sh - Install to ~/nexus/project-install.sh - Install .opencode/ into projectOpenCode Profiles
OpenCode Agents
Shared Context System
Bridge Scripts (optional, user-run)
optional/bridge-cursor.shoptional/bridge-claude.shoptional/bridge-aider.shExamples (documentation)
.opencode/context/)#!/bin/bash
# ~/nexus/scripts/install.sh
set -e
PROFILE="${1:-default}"
DETECT_OTHER_TOOLS="${2:-true}"
echo "🚀 Installing NexusAgent for OpenCode..."
echo " Profile: $PROFILE"
echo ""
# Create .opencode/ structure
create_opencode_structure "$PROFILE"
echo "✅ NexusAgent installed for OpenCode!"
echo ""
# Optional: Detect other tools
if [ "$DETECT_OTHER_TOOLS" = "true" ]; then
if [ -d ".cursor" ]; then
echo "ℹ️ Detected .cursor/ folder"
echo " You can create a bridge to share context:"
echo " ~/nexus/scripts/optional/bridge-cursor.sh"
echo ""
fi
if [ -d ".claude" ]; then
echo "ℹ️ Detected .claude/ folder"
echo " You can configure Claude to read .opencode/context/"
echo " See: ~/nexus/docs/claude-integration.md"
echo ""
fi
fi
echo "📚 Next steps:"
echo " 1. Try: /workflow \"your request\""
echo " 2. Configure: .opencode/nexus.json"
echo " 3. Read: ~/nexus/docs/getting-started.md"
~/nexus/ # Base installation
├── README.md
├── LICENSE
├── install.sh # Main installer
├── scripts/
│ ├── install.sh # Project installer (creates .opencode/)
│ ├── update.sh
│ └── optional/ # Optional bridge scripts
│ ├── bridge-cursor.sh
│ ├── bridge-claude.sh
│ └── README.md
│
├── profiles/
│ ├── default/
│ │ ├── agent/
│ │ ├── command/
│ │ └── context/
│ ├── governance/
│ │ ├── agent/
│ │ ├── command/
│ │ ├── context/
│ │ └── governance/
│ └── content/
│ ├── agent/
│ ├── command/
│ └── context/
│
└── docs/
├── getting-started.md
├── profiles.md
├── opencode-usage.md
└── optional/
├── cursor-integration.md # Example, not automated
├── claude-integration.md # Example, not automated
└── aider-integration.md # Example, not automated
project/
└── .opencode/ # Standard OpenCode structure
├── nexus.json # NexusAgent config
│
├── agent/ # OpenCode agents
│ ├── main-orchestrator.md
│ ├── context-provider.md
│ └── subagents/
│ └── *.md
│
├── command/ # OpenCode commands
│ ├── workflow.md
│ ├── plan-task.md
│ └── *.md
│
├── context/ # SHARED - other tools can read
│ ├── core/
│ ├── domain/
│ ├── processes/
│ └── standards/
│
└── governance/ # SHARED - other tools can read
├── metadata-index.json
├── workflow-state.json
└── tmp/requests/
File: ~/nexus/scripts/optional/bridge-cursor.sh
#!/bin/bash
# Optional bridge for Cursor users
set -e
if [ ! -d ".opencode" ]; then
echo "❌ No .opencode/ folder found"
echo " Run: ~/nexus/scripts/install.sh first"
exit 1
fi
echo "🌉 Creating Cursor bridge to NexusAgent..."
mkdir -p .cursor/prompts
cat > .cursor/prompts/nexus-workflow.md << 'EOF'
# NexusAgent Workflow (via shared context)
You are using NexusAgent context-aware orchestration.
## Context Available
All context from `.opencode/context/` is available:
- Core patterns: `.opencode/context/core/`
- Domain knowledge: `.opencode/context/domain/`
- Workflows: `.opencode/context/processes/`
- Standards: `.opencode/context/standards/`
## Governance
Quality metadata available at: `.opencode/governance/metadata-index.json`
## Your Task
[Cursor AI will use this prompt with access to shared context]
Follow the patterns and standards defined in the shared context.
EOF
echo "✅ Cursor bridge created!"
echo ""
echo "📝 Created:"
echo " .cursor/prompts/nexus-workflow.md"
echo ""
echo "ℹ️ Cursor can now reference shared context from .opencode/"
echo " Edit .cursor/prompts/ to customize for your needs"
✅ Focus: Perfect OpenCode experience
✅ Build: Full profiles, agents, governance
✅ Test: With real OpenCode projects
✅ Document: OpenCode usage (primary)
✅ Document: How to share context with other tools (examples)
✅ Create: Optional bridge scripts (minimal)
✅ Test: Installation process
✅ Polish: Error handling, UX
✅ Launch: GitHub repo public
Recommendation: This is the way. Build for OpenCode, make context shareable, let users bridge to other tools if they want.
Ready to update the master plan and start building?