WebHost.Systems WebHost.Systems/docs/skills/SKILLS.md
WebHost.Systems is a multi-runtime AI agent deployment platform with:

WebHost.Systems — Operational Skills

Purpose: Teach engineers and AI agents how to operate, deploy to, and troubleshoot the WebHost.Systems multi-runtime AI agent deployment platform. Drop these files into your context so you know when, why, and how to perform each operation.

Quick Orientation

WebHost.Systems is a multi-runtime AI agent deployment platform with:

  • A control plane (Supabase: PostgreSQL + Edge Functions + Auth + Realtime + Vault) for agent management, deployment orchestration, billing, and telemetry.

  • A data plane (Cloudflare Workers/DO or AWS Bedrock AgentCore) for executing customer agent code.

  • A dashboard (Vite + React + Clerk) for visual management.

The core workflow is: create agent -> deploy bundle -> invoke -> observe metrics -> manage billing.

Skill Files

FileWhat It Teaches
01_AGENT_MANAGEMENT.mdAgent CRUD, status state machine, provider config, RLS isolation
02_DEPLOYMENT_PIPELINE.mdBundle upload, validation, immutable deployments, rollback
03_INVOCATION_GATEWAY.mdRequest/response shapes, auth checks, streaming, error codes
04_RUNTIME_PROVIDERS.mdRPI abstraction, Cloudflare and AgentCore adapters
05_TELEMETRY_AND_METRICS.mdMetrics schema, HMAC auth, pg_cron aggregation
06_BILLING_AND_LIMITS.mdSubscription tiers, enforcement, checkout + webhooks
07_SECURITY_AND_SECRETS.mdRLS isolation, Vault secrets, telemetry auth, audit
08_AMPERSAND_INTEGRATION.md[&] Protocol manifests, MCP sidecars, A2A routing
09_ANTI_PATTERNS.mdCommon mistakes and how to avoid them

API / CLI Tool Inventory

Control Plane (Supabase RPC + Edge Functions)

EndpointMethodPurpose
/rest/v1/rpc/create_agentPOSTCreate a new agent
/rest/v1/rpc/update_agentPOSTUpdate agent metadata
/rest/v1/rpc/disable_agentPOSTDisable an agent (reject invocations)
/rest/v1/agentsGETList agents (PostgREST, RLS-filtered)
/functions/v1/deployPOSTUpload bundle and deploy to runtime
/functions/v1/invoke/:agentIdPOSTInvoke an agent
/rest/v1/rpc/rollback_deploymentPOSTSwitch active deployment pointer
/functions/v1/metrics/reportPOSTIngest telemetry (HMAC-authenticated)
/rest/v1/rpc/get_usagePOSTQuery billing usage for a period
/functions/v1/billing/checkoutPOSTCreate billing checkout session
/functions/v1/billing/webhookPOSTHandle billing provider webhooks

Build / Dev Commands

CommandPurpose
npm installInstall all workspace dependencies
npm run devStart Vite dev server
npm run typecheckTypeScript check across workspaces
npm run lintESLint across workspaces
npm run format:checkPrettier formatting check

Reading Order

For new engineers: Start with 01_AGENT_MANAGEMENT through 03_INVOCATION_GATEWAY for the core workflow, then 07_SECURITY_AND_SECRETS for safety. Read the rest as needed.

For operations: Focus on 04_RUNTIME_PROVIDERS, 05_TELEMETRY_AND_METRICS, and 06_BILLING_AND_LIMITS.

For [&] Protocol integration: Read 08_AMPERSAND_INTEGRATION after understanding the base platform.

For everyone: Read 09_ANTI_PATTERNS to avoid common mistakes.

Spec References

These skills summarize and operationalize the authoritative spec:

  • docs/spec/00_MASTER_SPEC.md -- Master engineering spec

  • docs/spec/10_API_CONTRACTS.md -- API contracts

  • docs/spec/20_RUNTIME_PROVIDER_INTERFACE.md -- RPI spec

  • docs/spec/70_AMPERSAND_PROTOCOL_INTEGRATION.md -- [&] Protocol integration

Open in the interactive atlas