Tahyi

Architecture

High-level reference for Tahyi’s components. For the conceptual model, see Core Concepts. For execution flow, see How it Works.

Component map

┌──────────────────────────────────────────────────────────┐
│                    Control plane                         │
│  Dashboard · Docs · API · Audit log · Policy engine      │
└────────────────────────┬─────────────────────────────────┘

┌────────────────────────▼─────────────────────────────────┐
│                 Coordination layer                       │
│  Tasks · Context · Handoffs · Heartbeats · Safety gates  │
└──────┬──────────┬──────────┬──────────┬───────────────────┘
       │          │          │          │
  ┌────▼───┐ ┌────▼───┐ ┌────▼───┐ ┌────▼───┐
  │ Deploy │ │ Monitor│ │ Observe│ │  DBA   │
  │ agent  │ │ agent  │ │ agent  │ │ agent  │
  └───┬────┘ └───┬────┘ └───┬────┘ └───┬────┘
      │          │          │          │
      └──────────┴──────────┴──────────┘

              ┌──────────▼──────────┐
              │  Target environment │
              │  (cluster / account)│
              └─────────────────────┘

Control plane

The control plane is the self-hosted application you run locally or deploy to your infra:

SurfacePurpose
DashboardSwarm status, active tasks, approval queue, audit log viewer
DocsThis documentation site, served alongside the app
APIREST/JSON endpoints for the coordination layer
Audit logAppend-only store of plans, tool calls, and outcomes
Policy engineDry-run defaults, approval rules, blast-radius limits

Default local URL: http://localhost:4321 (port configurable via PORT in .env).

Coordination layer

The coordination layer is the operating system for specialist agents:

SubsystemResponsibility
Task managerCreate, assign, track, and close bounded work units
Context brokerPass environment state, policy, and history to agents on wake
Handoff routerRoute follow-up work to the correct specialist
Heartbeat schedulerWake agents on schedule or on external trigger
Safety gateClassify two-way vs one-way doors; pause for approval

Agents do not communicate directly — all routing flows through the coordination layer. This keeps handoffs inspectable and safety gates enforceable swarm-wide.

Specialist agents

Each specialist is a narrow expert with its own tool integrations, prompts, and policy scope. Specialists are replaceable — swapping one should not break unrelated domains.

See Agents for the founding specialist catalog.

Environments

An environment is a registered target the swarm operates against:

npx tahyi env register \
  --name staging \
  --type kubernetes \
  --kubeconfig ~/.kube/config
FieldDescription
nameHuman-readable identifier (e.g. staging, prod-us-east)
typeEnvironment kind — kubernetes in 0.1; more types post-GA
credentialsInjected via config — never stored in agent prompts

Start with non-production. Production environments require additional policy configuration (approval gates, blast-radius caps).

Data flow

  1. Trigger creates a task in the coordination layer
  2. Context broker assembles environment state + policy + history
  3. Specialist wakes, plans, classifies actions
  4. Safety gate routes two-way actions to execution, one-way to approval queue
  5. Audit log records every step
  6. Handoff router creates follow-up tasks for other specialists if needed

Deployment model

Tahyi is self-hosted. You run the control plane on your infrastructure:

  • Local dev: npm run dev (see Quickstart)
  • Production: Deploy the control plane to your cluster or VM — exact deployment guide ships with 0.1

No SaaS account required. No vendor lock-in.