Skip to main content

Fleet Setup Guide

Benchmarked against: Anthropic — (No direct equivalent — SuperPortia SOP) Scope: Setting up a new ship from scratch Naming: SS{N} = SuperPortia Ship {N}, codename Beagle {N}

This guide covers how to set up a new ship in the SuperPortia fleet — from hardware to fully operational agent with UB access.


Fleet overview​

ShipPlatformLocationStatus
SS1Mac Mini M4 ProOfficeRunning
SS2Windows PCHomeBuilding
SS3Cloudflare WorkersCloudPlanning

Setup sequence​

Building a ship follows this order (AI Agent architect thinking, not traditional engineer thinking):

Key principle: Brain first, not repo first. UB is the agent's memory — without it, the agent is amnesiac.


Step 1: Device setup​

Hardware requirements​

ComponentMinimumRecommended
CPU4 cores8+ cores
RAM8 GB16+ GB
Storage256 GB SSD512+ GB SSD
NetworkStable internetLow latency

Software prerequisites​

SoftwarePurposeRequired
Python 3.11+LangGraph line, UBIYes
Node.js 18+Docusaurus, MCP serversYes
GitVersion controlYes
Claude Desktop App or CLIAgent runtimeYes

Step 2: Brain setup (Cloud UB)​

All ships connect to the same Cloud UB — no local UB setup needed.

Configure environment variables​

# Ship identity
export SP_SHIP_ID="SS2" # Ship identifier
export SP_AGENT_ID="win-cli" # Agent identifier

# Cloud UB connection
export SP_CLOUD_UB_URL="https://ub.superportia.dev"
export SP_API_KEY="your-api-key"

Verify connection​

# Test Cloud UB access
cloud_ub_health()
search_brain(query="test connection")

Step 3: Agent setup​

Install Claude Code​

Follow the official Claude Code installation for your platform.

Configure MCP servers​

Create the MCP configuration with servers appropriate for the ship:

ServerRequiredNotes
Cloud UBYesAll ships need UB access
Local UBIOptionalFor local file operations
CloudflareOptionalFor infrastructure management
SupabaseOptionalFor database operations
ChromeOptionalFor browser automation
MemoryRecommendedFor personal agent memory
FilesystemRecommendedFor file operations

Configure hooks​

Set up the SessionStart hook for boot sequence:

{
"hooks": {
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "bash .claude/hooks/session-start.sh"
}
]
}
]
}
}

Configure rules​

Copy the standard rule files to .claude/rules/:

Rule filePurpose
company-constitution.mdBehavioral standards
cost-awareness.mdToken discipline
agent-intelligence-protocol.mdMandatory behaviors
tech-freshness.mdPK defense
ub-governance.mdUB standards
gsta-alignment.mdStrategic alignment
compaction-recovery-protocol.mdMemory cliff defense
glossary.mdTerm navigation

Step 4: Verification checklist​

After setup, verify everything works:

CheckCommandExpected
Agent onlineagent_heartbeat()Success response
Mailbox workscheck_agent_mailbox()Message list (may be empty)
UB searchsearch_brain("test")Results from Cloud UB
UB ingestingest_fragment(path="Test entry", input_type="text")Entry ID returned
WO accesslist_work_orders()WO list
Factory floorfactory_floor_status()Shows all agents

Ship-specific considerations​

SS1 (Mac)​

FeatureDetails
Shellzsh (default on macOS)
Python.venv for LangGraph ecosystem
Local UBIAvailable (SQLite + Qdrant)
Photos LibraryAccessible via SQLite
Chrome MCPAvailable

SS2 (Windows)​

FeatureDetails
Shellcmd / powershell
Python.venv (different path format)
Local UBINeeds setup
File pathsC:\Users\... (backslashes)
Chrome MCPAvailable

SS3 (Cloudflare)​

FeatureDetails
RuntimeWorkers (serverless)
No local filesystemAll storage via D1/R2/KV
No shell accessOperations via API only
Cloud UBNative (runs on same infrastructure)

Dual-machine monitoring​

Ships should monitor each other for resilience:

Principle: Dual-machine mutual monitoring, not single-direction watchdog. Each ship checks the other.


Onboarding a new agent​

When a new agent joins the fleet, it must know:

  1. Company Constitution — behavioral standards
  2. WO System — how to receive and complete tasks
  3. Ingestion Rules — how to add knowledge to UB
  4. Cost Awareness — engine selection discipline
  5. UB Access — how to search and retrieve knowledge
  6. Role-appropriate tools — which MCP servers to connect

All onboarding information comes from Cloud UB, not local files (Captain directive: "don't check local").


PageRelationship
Setup MCPMCP configuration details
First HeartbeatAgent registration
Session StartBoot sequence
Fleet DeploymentFleet operations