Skip to content
Subscribe

OpenClaw Integration Architecture

Status: Production (Phases 2-6 complete)

OpenClaw is a separate agent orchestration platform. The integration work unified OpenClaw agents with the Agent System, eliminating duplication and establishing clear routing between the two systems.

  • Smart routing across 3 systems: Agent System tools, OpenClaw agents, Claude Code
  • Weighted keyword scoring with multi-word bonus
  • Health-aware OC routing (30s cache, demotion when gateway down)
  • Retired 6 OC agents → redirected to AS equivalents
  • JSONL routing log for audit trail
  • 50-case test suite: 100% accuracy, under 15ms latency

Created SKILL.md wrappers for cross-platform access:

  • research-agent
  • quanta-analytics
  • deck-architect
  • qa-agent
  • shared_memory.py — write, read, search with namespace ownership
  • Synced 803 chunks from 10 OC agents to vault
  • Shared YAML frontmatter schema
  • Cross-system search: vault markdown + SQLite FTS in one query
  • Shared rate-limit store with file locking
  • COO + task_manager: COO handles calendar/reminders, task_manager handles CRUD
  • Academic + canvas_sync: canvas_sync for data sync, academic for interactive queries
  • Tutor consolidation: conversational tutoring + deep analysis split
  • Per-request cost estimates and weekly reports
  • Vault export with OpenClaw health data
  • Runbook for operations: restart, add agents, debug routing, emergencies

Architecture Decision: Hybrid Tiered Model

Section titled “Architecture Decision: Hybrid Tiered Model”

After analyzing 4 options, we settled on “Option D” hybrid:

  • MCP for shared services (tools, data access)
  • OC skills for OC-native features (channels, task management)
  • AI-OS engines for heavy compute (research, deck building, RAG)

This eliminates service overlap while preserving each system’s strengths.

  • 67 skills registered
  • 4 tiers: worker, specialist, orchestrator, executive
  • 5 backend types: mcp, oc-skill, cli, http, claude-code
  • 16 categories
  • Auto-registration hooks in scaffold tools
  • Validation script for registry integrity