Skip to main content

Agent Installation

This guide covers installing SO1 agents for use with OpenCode or other compatible AI coding assistants.

Prerequisites

Before installing, ensure you have:
  • OpenCode or compatible AI assistant installed
  • Git for cloning the repository
  • A project directory (for local install) or home directory (for global install)

Installation Methods

Directory Structure

After installation, your .opencode/agent/ directory will contain:
.opencode/agent/
├── factory-orchestrator.md        # Orchestration
├── forge-gatekeeper.md
├── workflow-architect.md          # Automation
├── webhook-engineer.md
├── schedule-optimizer.md
├── hono-backend.md                # Engineering
├── nextjs-frontend.md
├── typescript-shared.md
├── railway-deployer.md            # DevOps
├── github-actions.md
├── pipeline-auditor.md
├── mintlify-author.md             # Documentation
├── api-documenter.md
├── runbook-writer.md
├── prompt-refiner.md              # Prompts
├── chain-architect.md
├── fragment-curator.md
├── incident-commander.md          # Incident
├── triage-responder.md
└── postmortem-analyst.md

Configuration

OpenCode Configuration

Agents are automatically detected by OpenCode. You can reference them in your prompts:
Use the Workflow Architect agent to design an n8n workflow

Global vs. Local Installation

Installation TypeLocationScope
Global~/.opencode/agent/All projects
Local<project>/.opencode/agent/Single project
Recommendation: Use global installation for general use, local for project-specific customizations.

Validation

After installation, validate agents are correctly configured:
cd so1-agents
./scripts/validate-agents.sh
Expected output:
Validating 20 agents...
✓ factory-orchestrator.md (11 checks)
✓ forge-gatekeeper.md (11 checks)
✓ workflow-architect.md (11 checks)
✓ webhook-engineer.md (11 checks)
✓ schedule-optimizer.md (11 checks)
✓ hono-backend.md (11 checks)
✓ nextjs-frontend.md (11 checks)
✓ typescript-shared.md (11 checks)
✓ railway-deployer.md (11 checks)
✓ github-actions.md (11 checks)
✓ pipeline-auditor.md (11 checks)
✓ mintlify-author.md (11 checks)
✓ api-documenter.md (11 checks)
✓ runbook-writer.md (11 checks)
✓ prompt-refiner.md (11 checks)
✓ chain-architect.md (11 checks)
✓ fragment-curator.md (11 checks)
✓ incident-commander.md (11 checks)
✓ triage-responder.md (11 checks)
✓ postmortem-analyst.md (11 checks)

Results: 225 checks, 0 failures, 0 warnings

Troubleshooting

Solution: Verify the .opencode/agent/ directory exists and contains agent files.
# Check directory exists
ls -la .opencode/agent/

# Check files are markdown
file .opencode/agent/*.md
Solution: Check permissions and directory existence.
# Make script executable
chmod +x scripts/install-opencode.sh

# Check target directory is writable
ls -ld /path/to/target
Solution: Check for file corruption or incomplete installation.
# Re-clone repository
rm -rf so1-agents
git clone https://github.com/so1-io/so1-agents.git

# Re-run validation
cd so1-agents
./scripts/validate-agents.sh

Updating Agents

To update to the latest version:
# Pull latest changes
cd so1-agents
git pull origin main

# Re-run installation
./scripts/install-opencode.sh /path/to/your/project

# Verify update
./scripts/validate-agents.sh

Uninstallation

To remove agents:
# Local installation
rm -rf /path/to/project/.opencode/agent/*.md

# Global installation
rm -rf ~/.opencode/agent/

Next Steps