Case Study

Cortex Agent Fleet

A production multi-agent AI system that autonomously manages engineering operations — from PR lifecycle to job search infrastructure — with 73+ tasks completed and 5 repos under active AI-driven development.

73+
Tasks completed autonomously
20+
PRs in D's review queue
5
Repos actively maintained
14.5M
Tokens/week (post-efficiency trim)

The Problem

Managing a multi-project engineering operation solo — active job search, client projects (ALCBF non-profit, SCF Dance), and open-source infrastructure — created a coordination bottleneck. Context evaporated between sessions, tasks fell through cracks, and driving work from idea to merged PR required constant manual steering.

The deeper problem: AI coding tools are stateless. Each session starts cold. Without a durable cross-session memory architecture and a systematic way to delegate and verify, any "AI-assisted" workflow is just autocomplete with extra steps.

The Solution

Cortex is a production multi-agent platform running 2 gateway agents — Dara Fox (Distinguished Engineer) and Clara Nova (Chief of Staff) — each with distinct domain authority, shared infrastructure, and a dispatched sub-agent model for implementation work.

Fleet Architecture

Autonomous Scheduling

PR Quality Gates

No PR reaches "In Review" (D's queue) until three gates pass: (1) CI fully green on all required checks, (2) all CodeRabbit review threads resolved via automated triage, and (3) PR mergeable with no conflicts or stale base. The Execute cron drives PRs through these gates across successive runs — D clicks Merge on a clean queue.

Key Engineering Decisions

Tech Stack

TypeScript / Next.js 15
Anthropic Claude API
Opus 4 / Sonnet 4 / Haiku 4
Notion API
Slack Socket Mode
Telegram Bot API
GitHub Apps (10 identities)
launchd + tmux
Vercel (Next.js hosting)
age encryption (secrets at rest)
flock (dispatch concurrency)
SQLite / LibSQL / Turso

What I Learned

GitHub →Weekly Activity →← All Projects