Skip to main content

What is inf-minds?

inf-minds is a TypeScript framework for building and orchestrating AI agents ("minds") with PostgreSQL-backed persistence and graph-based coordination.

The Problem

Building multi-agent AI systems is hard. You need to manage:

  • Individual agent execution - prompts, tools, context windows
  • Agent collaboration - sequential, parallel, loops, delegation
  • Data flow - what information passes between agents
  • Persistence and observability - job tracking, event logs, debugging

Most frameworks give you building blocks but leave orchestration to you. inf-minds provides opinionated solutions for all of these, built on Vercel AI SDK and Neon PostgreSQL.

Key Capabilities

CapabilityDescription
Single or Multi-MindRun one mind for simple tasks, or orchestrate dozens working together
Graph-Based ExecutionDefine workflows as DAGs with conditional edges, loops, and parallel branches
Artifact RoutingControl exactly what data flows between minds with visibility scopes
Persistent StateAll jobs, events, and artifacts persist in PostgreSQL for reliability
Real-Time StreamingStream progress events via WebSocket/SSE for live UI updates
LLM AgnosticUse Claude, GPT-4, Gemini, or any provider supported by Vercel AI SDK
Edge-ReadyBuilt for Cloudflare Workers and serverless PostgreSQL

How It Works

inf-minds separates concerns into three core abstractions:

  1. Minds - Individual AI agents with LLMs, prompts, and tools
  2. Coordination Modes - Execution graphs defining how minds collaborate
  3. Kernel - Orchestrator that runs sessions and routes data
import { createMind } from '@inf-minds/mindkit';
import { createPipelineMode } from '@inf-minds/coordination-modes';
import { createKernel } from '@inf-minds/kernel';

// 1. Define minds
const researcher = createMind({
model: 'claude-sonnet-4-20250514',
systemPrompt: 'You are a research assistant...',
});

// 2. Define coordination pattern
const pipeline = createPipelineMode({
name: 'research-pipeline',
steps: [
{ id: 'research', mind: { type: 'registered', mindType: 'researcher' } },
{ id: 'analyze', mind: { type: 'registered', mindType: 'analyst' } },
{ id: 'report', mind: { type: 'registered', mindType: 'writer' } },
],
});

// 3. Run a session
const session = await kernel.createSession({
mode: 'research-pipeline',
input: { topic: 'quantum computing trends' },
accountId: 'user-123',
});

When to Use inf-minds

Use inf-minds when you need:

  • Multiple AI agents working together on complex tasks
  • Persistent job tracking with full audit trails
  • Graph-based workflows with conditions and loops
  • Real-time progress streaming to UIs
  • Cloudflare Workers or serverless deployment

Consider alternatives when:

  • You only need single-agent conversations (use Vercel AI SDK directly)
  • You don't need persistence (use LangChain or CrewAI)
  • You need Python (inf-minds is TypeScript-only)

Comparison with Other Frameworks

Aspectinf-mindsLangChainCrewAI
FocusCoordination & persistenceBuilding blocksRole-based teams
ExecutionJob queue with eventsDirect executionCrew orchestration
StateEvent-sourced PostgreSQLMemory modulesTeam memory
DeploymentCloudflare-nativeCloud-agnosticPython-first
LanguageTypeScriptPython + JSPython

Next Steps