Cortex Persistent-Agent & Code-Mode Runtime

Cortex Persistent-Agent & Code-Mode Runtime A architecture diagram generated by Archify. Persistent-Agent Host Pod bwrap / seatbelt (--unshare-net) Signal Registry · Watchdogs & Timers · Persistent-Agent Host Pod · SKIP LOCKED Signal Registry Watchdogs & Timers SKIP LOCKED Resident Agent · Goals & Compaction · Persistent-Agent Host Pod Resident Agent Goals & Compaction Graph Memory · pgvector + RRF · Persistent-Agent Host Pod · Learns & Fades Graph Memory pgvector + RRF Learns & Fades Code-Mode Sandbox · TS / Python REPL · Persistent-Agent Host Pod › bwrap / seatbelt (--unshare-net) · No Network Code-Mode Sandbox TS / Python REPL No Network Mediated Host Bridge · external_llm & MCP · Architecture component · stdio JSON-RPC Mediated Host Bridge external_llm & MCP stdio JSON-RPC MinIO Image Spill · 7-Day TTL Rehydrate · Architecture component MinIO Image Spill 7-Day TTL Rehydrate Strategy Judge · Reads Reasoning + Sim · Architecture component · 10-Drone Bench Strategy Judge Reads Reasoning + Sim 10-Drone Bench durable wake recall & link execute code stdio RPC spill >2MB frames reasoning + trace Legend Backend Database Cloud Security Message bus External

Zero-Socket Sandbox

  • • bubblewrap/seatbelt unshares network; zero exfiltration paths
  • • All MCP tools and external_llm calls traverse mediated stdio JSON-RPC

60-86% Token Reduction

  • • Deterministic loops fan out in TS; external_llm handles oneshot judgment
  • • Camera frames spill to MinIO and rehydrate once per model look

Reasoning-Aware Evals

  • • Strategy judge inspects operator reasoning chunks and working memory
  • • Graded against 10-drone simulator and classical solver baselines