AI Executive Command Center
A multi-agent orchestration system that works as a small brand's virtual executive team: one conversational orchestrator routes every request to six specialist agents, who produce campaign strategy, launch and event plans, roadmaps and print-ready apparel artwork. A full executive-team run takes about 60–90 seconds and $0.10–0.30.
From a chat message to a deliverable
- 1. Trigger
User asks in chat
One conversation, no agent picking
- 2. AI
Expand the brief
Goal, constraints, what to return, success criteria
- 3. AI
Classify intent
15 intents, Claude Haiku 4.5
- 4. Decision
Extract slots & clarify
Never re-asks what the user gave
- 5. Action
Route to a lane
Team run, specialist, workflow, resume or utility
- 6. AI
Specialist agents work
CEO, CMO, Creative, Sales, PM, Designer
- 7. Output
Deliverable
Strategy doc, exports, artwork, print kit
Overview
A multi-agent orchestration system that acts as the client's virtual executive team. The user talks to one conversational orchestrator agent, which works like a chief of staff: it works out what is being asked and hands the request to the right specialist. There are six specialists: a CEO, a CMO, a Creative Director, a Sales Planner, a Project Manager and a Graphic Designer. Together they produce campaign strategy, launch and event plans, roadmaps, and print-ready t-shirt and marketing artwork. The system also exposes its OpenAI image generation to Claude as a custom MCP connector, so the team can generate images without leaving Claude.
Problem
The client is a small founder-led apparel brand preparing a product launch of tees, hoodies, hats and stickers. Before this system, the founders did all the coordination by hand. Campaign and launch strategy was brainstormed manually, with no single source of truth. Marketing, creative, sales and timeline ideas lived in separate docs and conversations, so plans contradicted each other (a premium price next to a mass-market channel, for example) and nobody reconciled them. Every t-shirt design and every channel-sized marketing visual meant briefing a designer, waiting and re-briefing, and the brand drifted between designs. Event and pop-up decisions were made ad hoc, with no structured look at cost, risk or timeline. Print placement and size were specified by hand for each garment, and deliverables were copy-pasted into docs and emails, so context and history were lost.
Context
The goal was to replace the manual coordination layer with an AI team that thinks like an executive team, keeps to the brand rules, and produces deliverables the founders can use straight away. Why no agent framework. I built the orchestration from first principles in plain TypeScript, deliberately without LangChain, LangGraph, CrewAI or any other agent framework, and with direct calls to each model provider's own SDK. The trade-offs that decided it: - Determinism: code owns the control flow, so every routing decision is reproducible and testable, and a failed run resumes from its last saved step instead of starting again. - State control: one explicit handoff envelope carries what each step needs, so nothing hides inside framework memory and every step can be inspected. - Token efficiency: each agent gets only its own prompt, its slots and a compressed summary of earlier work, rather than a framework's generic scaffolding. - Dependency surface: fewer layers between the app and the model means fewer upgrades to chase and fewer places for behaviour to change underneath us. - Security: guardrails such as injection defence and cost gates sit in our own code path, where they can fail closed. This follows the widely recommended approach of starting with simple, composable patterns and direct API calls, and adding a framework only where it clearly earns its place.
Solution
One orchestrator, six specialists. The orchestrator is the only agent allowed to choose another agent, and it never produces deliverables itself. Each specialist is defined in a data-driven agent registry with its own prompt file, model, slot schema (the information it needs before it can work), the intents it handles, its default collaborators and a cost tier. An admin can bind any agent to a different provider and model from Settings. The user never picks an agent. Every message goes through the orchestrator's pipeline: a brief expander turns casual chat into a structured brief, an intent classifier picks one of 15 intents, slot extraction pulls out goal, audience, channel, timeline, budget and the rest, and a clarifier asks numbered questions when something is missing. If the classifier's confidence is below 0.7, the orchestrator must ask a clarifying question instead of guessing. the orchestrator also never re-asks for something the user has already given. The orchestrator then routes the request to a lane. Lane A runs the full executive team. Lane B opens a multi-turn session with one specialist. Lane W runs a multi-agent workflow defined as a JSON recipe. Lane C resumes a previous run. Lane D handles utility actions (list, show, export, email), and anything that writes outside the app needs a one-click confirmation first. Vague or conversational messages get a direct reply or a clarifying question and are not routed at all. The user sees each routing decision as a chip. The most important design decision was to sequence the agents and reconcile them, rather than run them side by side. Earlier prototypes ran the agents in parallel, each blind to the others, and the CEO never synthesised their results. In the redesigned pipeline the CMO lays the foundation first, the others build on it, and the CEO finds the real conflicts between their plans and resolves them into one strategy. Each downstream agent is told who worked before it and that the CEO will reconcile, which makes agents commit to specifics instead of hedging. Brand consistency is enforced in code, not only in prompts. A brand canon document and a workspace brand kit are filled into every prompt automatically, and logo and brand elements are appended server-side to every image prompt, so the brand holds even when the model forgets.
The orchestrator, explained
THE CONCEPT
An orchestrator agent routing to specialists
THINK OF IT LIKE
A hospital triage nurse
An orchestrator agent routing to specialists is like A hospital triage nurse
- Classify the request's intentis like Assess the patient's symptoms
- Confidence below 0.7 → ask a clarifying questionis like Unsure → ask more questions before deciding
- Route to a lane or specialistis like Send the patient to the right department
- The orchestrator never produces deliverables itselfis like The triage nurse doesn't operate
- Slot continuity: never re-ask a given detailis like The patient's chart travels with them
Which lane handles the request?
flowchart TD
M([User message]) --> B[Brief expander]
B --> C{Intent and confidence}
C -- vague or below 0.7 --> Q[Clarifying question or direct reply]
C -- whole plan --> A[Lane A: full executive team]
C -- one specialist --> S[Lane B: specialist session]
C -- several steps --> W[Lane W: JSON workflow recipe]
C -- earlier run --> R[Lane C: resume prior artifact]
C -- list, show, export, email --> D[Lane D: utility]
D --> K{External write?}
K -- yes --> U[One-click confirmation]
K -- no --> X[Run it]
U --> XMy Role
I developed the whole project myself, as an AI Solutions Engineer, and delivered it to the client. That covered the custom orchestration runtime (the orchestrator and specialists, routing lanes and the workflow engine), the prompt engineering (agent prompts, guardrails, the brief expander, the classifier and the prompt library), the authenticated MCP connector, the image and print pipeline, the Google integrations and exports, CI/CD, and the testing, security hardening and telemetry.
Architecture
The app is a single Next.js process with no separate agent backend, plus a lightweight embedded database for runs, memory and audit records. Orchestration layer: an orchestrator agent on a small, fast model at low temperature. A separate brief-expander call turns casual chat into a structured brief using recent conversation memory and the brand kit, and fails soft by passing the raw input through on error. Conversation memory is a short rolling window plus pointers to the active run, encrypted at rest. Specialists: the CEO, CMO, Creative Director, Sales Planner and Project Manager run on a stronger model; the Graphic Designer on the fast one. A provider factory supports several providers and binds them per agent, separately for text and image work, using each provider's native SDK. Workflow engine: workflows are configuration, so new ones can be composed from registered agent actions without code. Steps pass a handoff envelope containing the original request, accumulated slots, prior step outputs, the sub-task and the remaining budget. Envelopes are checked so that no credentials can ever travel between agents. Each run has a cost ceiling, and the engine refuses to start the next step once it is exceeded. Progress is saved after every step, so a retry resumes from the failed step, and workflows are validated at startup so loops can't be authored by mistake. Prompts are content, not code: each agent's prompt is a versioned file editable by product owners without a deploy. An invalid prompt falls back to a known-good built-in prompt. Image pipeline and MCP: the Graphic Designer feeds an image pipeline with templates, brand chrome, garment mockups and a print kit, and the same image generation is exposed to Claude through an authenticated MCP connector built into the app. Both are written up as separate automations. Integrations: Google sign-in, Google Drive (import files into agent context and save deliverables), Gmail (email a strategy PDF, always confirmed first), file uploads parsed to text, and exports to .docx and .pdf. User-facing modules: the orchestrator chat, a one-on-one Workspace with a single agent, Runs history with permalinks, a prompt library with presets, Files, Settings, and an Ops dashboard for telemetry and budget.
How the system fits together
flowchart TD
U([User chat]) --> ORC
CL([Claude connector]) --> MCP
subgraph Orchestration
ORC[Orchestrator agent] --> REG[Agent registry]
ORC --> WF[Workflow engine]
end
subgraph Specialists
CEO[CEO]
CMO[CMO]
CD[Creative Director]
SP[Sales Planner]
PM[Project Manager]
GD[Graphic Designer]
end
REG --> CEO
WF --> CMO
WF --> GD
subgraph Images
GD --> IP[Image pipeline]
MCP[MCP connector] --> IP
IP --> IMG[Image model API]
end
ORC --> DB[(Run store: runs, memory, audit)]
WF --> DB
ORC --> INT[Drive, Gmail, exports]Workflow
A full executive-team run (Lane A) works in seven rounds: Round 1: the CEO assesses the brief and writes 4 targeted sub-briefs. Round 2: the CMO defines market and positioning, which is the foundation for everyone else. Round 3: the Creative Director and Sales Planner work in parallel against the CMO's foundation. Round 4: the Project Manager builds a roadmap that accounts for everyone's plans. Round 5: the CEO scans all the reports, finds real conflicts, and asks 1–3 questions as structured JSON. Round 6: the flagged agents revise their positions. Round 7: the CEO writes one unified strategy document. Every round streams live, token by token, to a round-by-round timeline in the UI using Server-Sent Events. The output is the unified strategy plus appendices: every agent's report, the conflict scan and the resolutions. It exports to .docx and .pdf and gets a shareable permalink, and Lane C can later load it and continue from it. Smaller jobs don't need the whole team. A request for "a marketing plan and a hero image for it" runs a Lane W recipe: the CMO drafts the strategy, the CMO extracts a visual brief from it, and the Graphic Designer generates the image. Because the earlier step fills the Designer's required slots, the Designer skips its clarifying questions.
The 7-round executive-team run
- 1. AI
CEO writes sub-briefs
Round 1: 4 targeted sub-briefs
- 2. AI
CMO sets positioning
Round 2: the foundation
- 3. AI
Creative + Sales
Round 3: in parallel, on the CMO's foundation
- 4. AI
PM builds roadmap
Round 4: accounts for everyone
- 5. Decision
CEO conflict scan
Round 5: 1–3 questions as JSON
- 6. AI
Flagged agents revise
Round 6
- 7. Output
Unified strategy
Round 7: plus appendices, .docx/.pdf, permalink
AI Models
Challenges
Agents that contradict each other. Running specialists in parallel produced plans that disagreed, and nothing reconciled them, which was exactly the founders' original problem. Sequencing the agents and adding the CEO's conflict scan and revision rounds fixed this, at the cost of a longer run. Context between agents. When the user moves from one specialist to the next, the previous report is compressed to its headings and key sentences, which keeps context intact across chains of several agents without the token count blowing up. Prompt injection. Every agent treats user-supplied content as data, never as instructions, and the orchestrator's classifier is hardened so a user can't talk it into a different route. Both defences fail closed: if a guard is missing, the agent refuses to run. Multi-tenant security. Every record is scoped to its owner. Cross-account access is blocked without revealing whether the record exists, is written to the audit log, and is covered by automated isolation tests across the API. Secrets are encrypted at rest and kept out of code. Cost. Each workflow run has a budget ceiling, and the cost estimator refuses unknown models rather than letting a cost check be skipped.
Results
Measured system figures, from the project itself: a full executive-team run makes 10–12 LLM calls and takes about 60–90 seconds and $0.10–0.30. The codebase has 138 test files covering unit and integration tests, regression checks for prompt directives, acceptance gates, adversarial security probes, a multi-intent classifier corpus replay, and accessibility. The database schema is versioned with reversible migrations. I don't have measured business outcomes, so the before-and-after is qualitative. Cross-functional strategy that used to be founder meetings and scattered docs is now a single run with conflicts resolved automatically. Campaign visuals come back as 1–4 on-brand variants per request in every channel format. A design goes from request to printable graphic, mockups and a print kit in one flow. Event decisions get a structured go/no-go with cost, risk and timeline. And every run is saved with a permalink, so it can be resumed, exported or emailed. Operationally, structured telemetry separates alerting events from dashboard-only events, shown on the Ops dashboard, and delivery runs through a GitHub Actions CI/CD pipeline.
Where the numbers come from
- 1. AI
Classify intent
- 2. Decision
Workflow budget check
$0.20 ceiling per run (default) - 3. AI
Full team run
10–12 LLM calls - 4. Output
Unified strategy
~60–90 seconds · ~$0.10–0.30
Learnings
A single orchestrator beats self-routing agents. Having exactly one agent allowed to choose another made routing predictable, testable and easy to explain to the user. Sequencing plus reconciliation beats parallel, blind agents. The extra rounds cost time, but they produce one plan instead of six that disagree. Enforce brand rules in code, not only in prompts. Server-side brand chrome holds even when a model ignores an instruction. Security on prompts should fail closed. A missing preamble stops the agent rather than letting it run unprotected. Build the patterns by hand first. Working framework-free, I implemented the core agentic patterns directly: routing, orchestrator–workers, prompt chaining, parallelisation, a reflection loop, memory, guardrails and human-in-the-loop. That made every prompt and every routing decision easy to debug, and it shows clearly what a framework would and wouldn't add.
Future Scope
Where it stands today. In strict terms, most of the system is an agentic workflow, not a set of autonomous agents, and that was deliberate. Code decides the control flow, and each specialist is a single-pass LLM call with its own persona, prompt, model and slot schema. The specialists don't choose or call tools themselves; image generation, Drive and Gmail are triggered by code or parsed directives. The pipeline order is fixed, and the orchestrator picks a route but doesn't re-plan mid-run. Agents can't consult each other directly, nothing checks its own output yet, and workflow state is saved per step by our own runtime rather than by a durable graph engine. The architecture was designed so that autonomy can be added on top rather than rewritten around. What changes with tool-using agents. Each specialist becomes an agent loop: plan, call tools, observe the result, refine, and only then answer, so outputs are grounded and checked rather than single-shot text. Agents choose their own tools, such as image generation, trend search, past-run lookup and pricing, with external actions still behind the confirmation step. The orchestrator becomes a planner that builds a task graph with only the agents a request needs, and re-plans when a step fails. Agents can ask each other questions directly (Sales asking the CMO about the target segment, for example), which should mean fewer contradictions before the CEO's conflict scan; the blackboard experiment tests exactly this. Making it more robust. Evaluator agents check the work: a brand-compliance checker, a fact and number checker, and a vision model that compares each generated image with the brief and retries failures. Checkpointed state lets a run pause, resume, branch, replay a step or wait for human approval at any point. Parallel fan-out cuts latency. Long-term memory of past runs lets agents learn the brand. Full tracing plus continuous evaluation of routing accuracy, brand adherence, image-brief match and cost per deliverable make quality measurable, and dynamic model routing lowers cost at the same quality. Framework or not. A framework will be adopted only where it clearly earns its place. The Claude Agent SDK is the most natural candidate for each specialist's internal tool loop, because the stack is already Claude-first; a graph runtime such as LangGraph is the candidate for durable, checkpointed orchestration. CrewAI maps neatly onto the executive team and is quick to prototype, but gives less control. Each candidate will be compared against the current runtime before anything is replaced. The roadmap, in five phases: tool-using specialists first (Designer and CMO); then checkpointed orchestration with approval pauses; then brand and vision QA agents with retry loops under budget caps; then run memory, tracing and a continuous eval suite; and finally an action layer of calendar, social scheduling, commerce and print connectors through MCP, all behind the existing confirmation step. What stays. The production safeguards already built carry over unchanged: fail-closed prompt-injection defence, per-run cost ceilings, strict per-account data isolation, credential-free handoffs between agents, the authenticated MCP connector, confirm-before-act on external actions, and brand enforcement in code.
From one call to an agent loop
- 1. AI
Plan
- 2. Action
Call a tool
e.g. generate_image, calc_pricing
- 3. Input
Observe the result
- 4. Decision
Refine
- 5. Output
Answer
Back to step 2 — until the goal is met
A t-shirt drop, run the agentic way
- 1. AI
Planner builds task graph
Only the agents the request needs
- 2. AI
CMO researches
search_trends, get_past_runs
- 3. AI
Designer + vision QA
generate_image ×4, failures regenerated
- 4. AI
Sales prices
calc_pricing, asks the CMO directly
- 5. AI
PM plans the event
Run-of-show, calendar items
- 6. Decision
CEO reconciles
- 7. Human
Human approval
- 8. Output
Save, email, schedule
Traced, checkpointed, resumable
Where each framework fits
flowchart TD
U([Request]) --> G[Existing guardrails: classifier, injection defence, cost gates]
G --> P
subgraph LangGraph orchestration
P[Planner builds task graph] --> SP[Specialist nodes]
SP --> QA{Evaluator agents pass?}
QA -- no, within budget --> SP
QA -- yes --> H[Human approval interrupt]
CK[(Checkpointed state)]
end
SP --> CK
subgraph Claude Agent SDK
SP --> L[Tool-use loop per specialist]
end
L --> T[MCP tools: images, Drive, pricing, calendar]
H --> A[Action layer behind confirmation]From workflow to agents, in five phases
- 1. Action
Tool-using specialists
Phase 1: Designer and CMO first
- 2. Action
Graph orchestration
Phase 2: checkpoints, approval interrupts
- 3. AI
Reflection & QA agents
Phase 3: brand and vision QA
- 4. Data store
Memory & evals
Phase 4: vector memory, tracing
- 5. Output
Action layer
Phase 5: MCP connectors, still confirmed
Confidentiality note: Built for a direct-to-consumer lifestyle apparel brand. The client's name, founders, brand assets, prompts and deployed URL are withheld; the brand is referred to only as "the client".