惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
博客园_首页
IT之家
IT之家
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
小众软件
小众软件
有赞技术团队
有赞技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a Graph-Native Multi-Agent Runtime with Supabase...
Wan Satya · 2026-05-13 · via DEV Community

Most AI workflow builders today are still “chatbot chains.”

Linear.
Provider-locked.
Hardcoded.
Not designed for real multi-agent execution.

I wanted something different:

  • graph-native execution
  • recursive agent orchestration
  • BYOK (Bring Your Own Key)
  • multi-provider support
  • visual workflows
  • Supabase-native backend
  • portable JSON runtime

The result is an agent swarm runtime powered by:

  • React Flow
  • Supabase Edge Functions
  • TypeScript
  • recursive DAG execution
  • provider adapters


The Core Idea

Instead of hardcoding workflows into backend logic, the workflow itself becomes the runtime definition.

Example:

{
  "agents": [
    {
      "id": "ceo",
      "provider": "openrouter",
      "model": "anthropic/claude-sonnet-4",
      "instructionRef": "ceo.md"
    }
  ],

  "connections": [
    {
      "source": "ceo",
      "target": "market-agent"
    }
  ]
}

Enter fullscreen mode Exit fullscreen mode

This graph defines:

  • execution topology
  • agent hierarchy
  • orchestration flow
  • provider routing

The backend simply executes the graph.


Why Graph-Native Matters

Most “AI agents” are still sequential pipelines:

Prompt A → Prompt B → Prompt C

Enter fullscreen mode Exit fullscreen mode

But real collaborative reasoning looks more like this:

CEO
 ├── Market Research
 ├── Competitor Analysis
 │     ├── Pricing Worker
 │     └── Location Worker
 └── Regulation Analysis

Enter fullscreen mode Exit fullscreen mode

This is a DAG (Directed Acyclic Graph).

That means:

  • workers can execute in parallel
  • parent nodes synthesize child outputs
  • workflows become composable

Architecture

React Flow
    ↓
Workflow JSON
    ↓
Supabase Edge Function
    ↓
Graph Compiler
    ↓
Execution Scheduler
    ↓
Parallel Node Executors
    ↓
Provider Router
    ↓
LLM APIs

Enter fullscreen mode Exit fullscreen mode


BYOK (Bring Your Own Key)

One important decision:

Users own their API keys.

Not us.

That changes everything.

Instead of becoming an inference reseller, the platform becomes:

  • orchestration infrastructure
  • execution runtime
  • agent operating system

Workflow JSON only stores:

{
  "credentialId": "openrouter-main"
}

Enter fullscreen mode Exit fullscreen mode

Credentials are encrypted separately.

This allows:

  • OpenAI
  • Anthropic
  • Groq
  • Gemini
  • Ollama
  • OpenRouter
  • self-hosted endpoints

all inside the same workflow.


Recursive Execution

The runtime works recursively.

Each node:

  1. executes children first
  2. collects outputs
  3. synthesizes results
  4. returns upstream

Example:

async function executeNode(nodeId) {
  const children = await Promise.all(
    node.children.map(executeNode)
  )

  const output = await llm.generate({
    prompt: buildPrompt(children)
  })

  return output
}

Enter fullscreen mode Exit fullscreen mode

This single pattern unlocks:

  • swarm reasoning
  • parallel execution
  • hierarchical synthesis

Why Supabase Edge Functions?

Because the architecture fits surprisingly well.

We use:

  • Edge Functions for execution
  • Postgres for workflow persistence
  • Realtime for live updates
  • RLS for ownership isolation

The result:

  • serverless execution
  • scalable orchestration
  • no dedicated infra initially

Provider Router

Every provider behaves differently.

Some support:

  • streaming
  • tools
  • JSON mode
  • reasoning tokens
  • vision

So the runtime uses adapters:

interface ProviderAdapter {
  generate(input): Promise<Output>
}

Enter fullscreen mode Exit fullscreen mode

Adapters:

  • OpenAI
  • Anthropic
  • Groq
  • Gemini
  • OpenRouter
  • Ollama

The graph runtime doesn’t care which provider executes the node.


Parallelism Is The Superpower

This is where the system starts feeling alive.

These workers can execute simultaneously:

Pricing Worker
Location Worker
Fleet Worker
Market Worker

Enter fullscreen mode Exit fullscreen mode

Then a higher-level agent synthesizes everything into strategy.

Latency drops dramatically compared to sequential chains.


Shared Memory Bus

Agents shouldn’t operate in isolation.

Each node can publish summaries into shared memory:

memory.push({
  nodeId,
  summary
})

Enter fullscreen mode Exit fullscreen mode

Later agents can retrieve relevant context.

This creates emergent collaboration behavior.


Deterministic DAG vs Planner Mode

Most workflows do NOT need an orchestrator LLM.

For simple graphs:

execute children
then synthesize parent

Enter fullscreen mode Exit fullscreen mode

is enough.

Planner agents are only useful for:

  • dynamic routing
  • retries
  • adaptive decomposition
  • auto-spawning agents

This keeps costs low.


What This Actually Becomes

The architecture starts looking less like “AI workflow builder” and more like:

Temporal + Kubernetes + Airflow
for AI agents

Enter fullscreen mode Exit fullscreen mode

Where:

  • React Flow = visual programming
  • Supabase = orchestration backend
  • provider router = universal inference layer
  • workflows = portable execution graphs

Biggest Lesson

The moat is probably not:

  • prompts
  • models
  • UI

The moat is:

  • portable execution runtime
  • graph orchestration
  • provider neutrality
  • recursive multi-agent execution

The future AI stack may look less like “chat apps”
and more like distributed operating systems for agents.


Building CampShure

We’re building this architecture as part of CampShure — an AI-native platform for graph-based multi-agent workflows, swarm execution, and BYOK orchestration.

If you’re exploring:

  • agent infrastructure
  • visual orchestration
  • recursive AI systems
  • workflow runtimes
  • AI operating systems

we’d love to connect.