Aurelion AI Agent Team

One workspace. Specialized AI agents. Human-controlled execution.

How Mahak Patel designed and built Aurelion, a private AI engineering system for MSPixelPulse that combines specialized agents, reusable skills, workflow orchestration and human approval.

Aurelion is the private AI operating system behind MSPixelPulse, Mahak Patel's web agency. My role: product design, full-stack development and AI systems engineering.

The problem

AI tools were powerful. Managing their context, responsibilities and workflows was the harder part: context reset in every chat, no clear ownership, no safe execution boundary and unpredictable cost.

What I wanted to build

  • Organize specialists: Give every responsibility a named agent with a charter.
  • Reuse skills and knowledge: Keep engineering procedures and standards in files, not chats.
  • Route work: Match a request to the right specialist and skills.
  • Keep project context: Scope work to a repository, site and its evidence.
  • Integrate operations: Connect GitHub, Vercel, Gmail and Google data behind one policy.
  • Keep humans in control: Sensitive actions wait for an exact owner approval.
  • Keep cost predictable: Nothing paid runs without a budget and an explicit switch.

A tour of the real product

Screens from a local build seeded with fictional businesses.

  • Overview: The owner's day starts with what needs a decision: approvals, replies, inquiries and drafts.
  • Atlas chat: Status chips show the current boundary before a message is sent: tools limited, AI reasoning off, voice off.
  • Agent directory: Atlas sits above 19 specialists grouped by responsibility, each with its skill and tool count and run history.
  • Skills inventory: 45 registered workflows with readiness filters: available, model disabled, needs connection, needs approval.
  • Tools & MCP: 99 policy-tiered tools; write actions are labelled and approval-gated actions say so.
  • Knowledge: Reviewed documents, research notes, skills and approved memories, searchable in one place.
  • Discover: Find local businesses from open-data sources; only published emails count and nothing is sent.
  • Outreach: Drafts are reviewed in batches; email approvals are decided here and nothing leaves without one.
  • Approval Center: An approval shows the exact action, arguments, cost, reversibility and level; it runs once, exactly as shown.
  • Automations: Recurring checks with explicit schedules, costs and connection needs; the schedule stays paused until enabled.
  • Autonomy ladder: Five levels from automatic read to prohibited, each with examples, reviewed on a dated policy.
  • Security & devices: Passkey-only sign-in, device-bound passkeys, a 10-minute enrollment window and revocable sessions.

How I designed and built it

One console, organized around the daily workflow

Problem: An agent system with dozens of registries is hard to understand from a chat box.

Decision: Design the console as a product first: a short workflow navigation, an Overview that lists what needs the owner, and status chips that always show what the system can currently do.

Implementation: React 19 single-page app with six workflow sections (Discover, Outreach, Demos, Leads, Projects, Settings), a collapsible More group for Approvals, Chat, Agents, Knowledge, Reports, Activity and Automations, a ⌘K command palette and a phone tab bar.

Why it matters: The interface explains the system's boundaries instead of hiding them. 'AI reasoning · Off' is a feature, not an error.

Twenty agents with charters, not twenty prompts

Problem: Agents defined only inside a vendor's UI cannot be reviewed, versioned or reused across tools.

Decision: Keep every agent as a Markdown charter plus a registry entry, and generate tool-specific adapters from that single source.

Implementation: agents/registry.json records 20 agents: Atlas, the orchestrator, and 19 specialists grouped into Build, Quality, Ship, Research & content, Growth and Intelligence. Each entry carries a nickname, purpose, model role, risk level and the approvals it must request. Adapters for Claude Code, Codex, Gemini CLI and GitHub Copilot are rendered by a script and checked in CI.

Why it matters: The same specialist definition serves the console and my local coding tools, so responsibilities stay consistent everywhere.

Procedures and standards live in files

Problem: Useful instructions were scattered across chats and could not be audited.

Decision: Adopt the open SKILL.md format for procedures and a provenance-checked knowledge folder for standards.

Implementation: 45 skills across growth, quality, delivery, engineering, governance, maintenance, design and intelligence. The registry links each skill to its owning agent, tools, connections, console view and approval rule. 36 knowledge files carry frontmatter that a validate script enforces. Context loads progressively: project instructions, then the relevant skill, then repository evidence, then the organization standard.

Why it matters: Readiness is shown honestly: a skill can be registered yet 'model disabled' or 'needs connection'. Nothing pretends to be executable.

A deterministic layer first, a model second

Problem: Routing every request through a paid model is slow, expensive and hard to reason about.

Decision: Answer what can be answered from stored data at $0, suggest a route deterministically, and only then let a model run inside strict limits.

Implementation: Every chat message becomes a task. A routing table with 24 intents suggests a specialist, skills and project; the suggestion is advisory, shown as a routing hint. Model execution uses the OpenAI Agents SDK with orchestrator hand-offs to specialists, one policy-checked use_capability tool, per-task and daily budgets, turn and hand-off limits, and a worst-case cost reservation taken in a database transaction before each run.

Why it matters: Atlas is useful before any API key exists, and when a model does run, its cost and reach are bounded in code.

A typed client, one server boundary, bundled registries

Problem: A private operations system needs a small, reviewable surface, not a microservice fleet.

Decision: Ship one React client and one Express application, deploy the API as a single serverless function and bundle the canonical agents, skills, policy and knowledge with it.

Implementation: React 19, TypeScript and Vite for the client, served under /play/ai with a service worker that caches only the public shell. Express 5 with Zod validation and Helmet on the server, deployed as one Vercel function with a 240-second limit. PostgreSQL on Neon in production; SQLite for local development and tests. A strict Content-Security-Policy is sent for static files and the API.

Why it matters: Every route, policy check and registry can be read in one repository, which is what makes the human-control story credible.

Connections that report their own state

Problem: An integration that exists in code is not the same as an integration that is authorized and healthy.

Decision: Treat every connection as a card with a verified status, and never infer 'connected' from configuration alone.

Implementation: 14 connection cards: a GitHub App, a private Vercel integration, Gmail, Search Console, Google Analytics 4, Google Ads and Drive & Sheets over Google OAuth, PageSpeed Insights, report email, OpenAI, voice transcription, knowledge watch, the agency leads API and the automation scheduler. OAuth refresh tokens are encrypted at rest. An inbound, read-only MCP server with 11 tools lets ChatGPT read Aurelion data, and is off unless enabled.

Why it matters: Tool availability in the Agents view is computed from these states, so an agent can only be offered what is actually reachable.

Owner-only access and exact-action approvals

Problem: An AI system that can email clients and deploy websites must not act on an ambiguous 'yes'.

Decision: Make the owner the only user, make sensitive requests expire, and bind every approval to one exact action.

Implementation: Sign-in is passkey-only (WebAuthn); Google owner verification is used just for first-time setup, adding a device or recovery. Sensitive calls need a fresh sign-in within 10 minutes, confirmed with Touch ID. Level 2 and 3 tools hash the tool id and arguments into an approval that is pending for one hour and consumed once. Level 4 actions, such as billing and spend, have no executor at all. An owner security audit log, noindex headers, a strict CSP and SSRF-safe fetching round out the boundary.

Why it matters: The console can prepare a lot and send nothing. The boundary is enforced in the server, not in the prompt.

Verified before it ships, paused until it is switched on

Problem: A fast-moving private project still needs release discipline.

Decision: Make CI the gate for every pull request and keep automation and deployments opt-in.

Implementation: 89 console test files run with node:test under a no-network harness; CI runs adapter checks, system validation, tests, TypeScript checks and a build on every PR and push to main, and a Playwright smoke suite runs locally against the production build. Vercel deployments are CLI-only, never automatic from Git. 21 scheduled jobs exist, but all of them stay paused unless an automation switch is set, and the daily cron tick is authenticated with a secret.

Why it matters: Growth of the system did not outrun my ability to verify it.

Agent team

20 registered agents and 45 skills, audited October 15, 2026. Defined responsibilities do not imply autonomous execution.

Orchestrator

  • Atlas: Routes work, retrieves context, coordinates specialists, verifies outcomes

Build

  • Forge: Web engineer
  • Build: Application engineer
  • Pixel: UI/UX designer
  • Blueprint: Architecture engineer
  • Bridge: Data & integrations

Quality

  • Check: QA engineer
  • Access: Accessibility engineer
  • Shield: Security & privacy
  • Speed: Performance & SEO
  • Lens: Code reviewer

Ship

  • Bolt: Release engineer

Research & content

  • Sage: Research agent
  • Story: Content strategist

Growth

  • Radar: SEO strategist
  • Pulse: Analytics & conversion
  • Hunt: Lead research
  • Echo: Outreach & CRM
  • Inbox: Inquiry triage

Intelligence

  • Scout: AI capability scout

How a request flows

  • Request: The owner states the goal, optionally scoped to a project.
  • Routing table: 24 intents suggest a specialist, skills and project. The hint is advisory.
  • Context: Skill instructions, top knowledge results and approved memories are loaded.
  • Specialist: Atlas or a specialist works within budgets, turn limits and one policy-checked tool.
  • Tools & connections: Every call is authorized against the tool registry and live connection state.
  • Approval: Level 2–3 actions wait for an exact, single-use owner approval.
  • Result: Task events record tool, agent and status; the owner decides what to accept.

Architecture

Client

  • React 19
  • TypeScript
  • Vite
  • PWA shell
  • Custom charts

Authentication

  • Better Auth
  • Passkeys (WebAuthn)
  • Google owner verification
  • 10-minute step-up

Application / API

  • Express 5
  • Zod
  • Helmet + strict CSP
  • One Vercel function

Orchestration

  • OpenAI Agents SDK
  • Routing registry
  • Tool policy
  • Budgets

Data

  • PostgreSQL on Neon
  • SQLite for local and tests
  • Encrypted OAuth tokens

Integrations

  • GitHub App
  • Vercel
  • Gmail
  • Search Console
  • GA4
  • Google Ads
  • Drive & Sheets
  • PageSpeed
  • Inbound MCP

Delivery

  • GitHub Actions CI
  • node:test
  • Playwright
  • CLI-only deploys
  • Daily cron

Security and human control

  • Owner-only: One owner account; every API route requires the owner session.
  • Passkeys: WebAuthn with user verification; biometrics never leave the device.
  • Step-up: Sensitive actions need a sign-in fresher than 10 minutes.
  • Exact approvals: Tool id plus arguments are hashed; one hour, one use.
  • Cost gate: Paid execution needs a key and an explicit switch; budgets cap every run.
  • Hardened surface: noindex, strict CSP, SSRF-safe fetch, encrypted tokens, audit log.

Engineering challenges

Keeping context useful across agents

Loading everything into every agent is slow and noisy; loading nothing makes agents generic. Routed skill bodies are injected with a size cap; knowledge search returns the top results and up to four approved memories per task.

Defining specialist responsibilities

Overlapping roles made routing ambiguous and reviews inconsistent. A versioned registry with 20 entries, grouped in the UI, generated into every coding host.

Controlling execution permissions

A broad 'approve' button would let an agent change what it sends after approval. The approval hashes the tool id and sorted arguments; it expires after an hour and is consumed once. Gmail sends bind to an immutable message snapshot.

Managing integrations honestly

Code for an integration can exist long before an account grants access. Connection cards compute their state from stored checks; tool availability inherits it.

Keeping costs predictable

Agent loops, retries and automations can spend money silently. Deterministic Atlas answers at no cost; model execution needs a key and a flag; per-task, daily and research budgets; a worst-case reservation before each run; cost-bearing automations disabled by default.

Making a complex system understandable

Twenty agents, 45 skills, 99 tools and 14 connections can overwhelm one screen. Six workflow sections, an Overview that lists what needs the owner, readiness filters everywhere, and status chips that state the current boundary.

What I built and learned

  • Implemented: Centralized AI engineering workspace. 25 console views with one navigation, command palette and phone layout.
  • Implemented: Defined specialist responsibilities. 20 agents with charters, risk levels and approval requirements.
  • Implemented: Reusable skills and knowledge. 45 SKILL.md workflows and 36 provenance-checked knowledge files.
  • Implemented: Project-aware routing. 24 routing intents, deterministic $0 answers and a project scope on every task.
  • Implemented: Controlled execution boundary. Five autonomy levels, exact-action approvals, step-up and budgets enforced server-side.
  • Implemented: Owner-restricted access. Passkey-only sign-in, Google verification for enrollment, audit log, strict CSP.
  • Connected: Operational integrations. 14 connection implementations; live state is read from verified health checks, not assumed.
  • Experimental: Model-backed execution. OpenAI Agents SDK runtime works locally and in tests; paid execution stays off by default.
  • Planned: Outbound MCP and other providers. Seven gateway servers are catalogued but not installed; Anthropic and Gemini runtimes are not built.

STAR summary

  • Situation: AI-assisted work for my agency needed the same context, roles and checks re-created in every tool, with no safe way to let an AI act.
  • Task: Build one private workspace where specialists, skills, project context, integrations and approvals live together under my control.
  • Action: Designed and developed Aurelion: a React and Express console with 20 charter-based agents, 45 skills, a 24-intent router, a 99-tool policy ladder, passkey-only access and exact-action approvals.
  • Result: A working owner console with verified registries and server-enforced boundaries, where AI prepares work and a person approves what leaves the system.

What I learned

  • Specialization needs ownership: Adding an agent was easy. It only helped once the charter said what it owns, what it must not do and what it has to ask for.
  • Context quality beats model choice: The useful work came from loading the right skill and the right repository evidence, not from picking a bigger model.
  • Automation needs edges: I kept every automation paused by default. The ones I trust are the ones whose cost and connections are visible on the row.
  • Approve actions, not intentions: The approval that hashes the exact arguments changed how I think about consent in software.
  • Developer tools deserve product design: The console only became usable when the first screen stopped listing registries and started listing what needed me.

Explore the separate CanSTEM Enrollment Portal project

Back to Work