Skip to content

Architecture

Kelly Ferrone edited this page Dec 2, 2026 · 1 revision

Architecture

Hotline is an A2A-style MCP and A2A hub that bridges interactive coding agents (IDE assistants, CLI harnesses, web AI clients) with cluster and remote agentic backends (workflow agents, CI runners, queue workers, webhooks, and native A2A peers).

Core model

  • Front door: Serves MCP (Streamable HTTP + stdio via kubed-mcp / FastMCP) and A2A endpoints from one Python service.
  • State & routing: Uses immutable session/task IDs internally while exposing human-friendly peer names and aliases to callers.
  • Backends normalized to A2A: Every configured backend is adapted to the same task lifecycle (submit, poll/stream status, cancel, reply, input-required handoffs):
    • Interactive peer sessions — Inbox/outbox messaging between live coding sessions across harnesses.
    • Queue-backed workers — Redis-backed queues scaling ephemeral runners (e.g. via KEDA).
    • GitHub Actions dispatch — Triggering headless runner workflows via repository_dispatch with callback correlation.
    • OpenAI Responses / workflow APIs — Adapting Responses-compatible endpoints (such as standalone n8n agents) into A2A task semantics.
    • Webhooks & native A2A 1.0 peers — Direct HTTP/SSE forwarding to external agents.

Guiding principles

  1. Thin platform on kubed-mcp: Reuse QuickMCP for transport, middleware, config, and optional telemetry (kubed-mcp[telemetry]).
  2. No silent hangs: Long-running agent turns return task handles or use async task primitives rather than blocking MCP tool calls past client timeouts.
  3. Config-driven backends: Adding a new backend or peer is configuration, not bespoke glue code per caller.
  4. Incremental delivery: Ship a minimal end-to-end vertical slice first (bootstrap hello-world → registry & messaging → backend adapters → native A2A surface).

Current milestone

The repository is currently at the bootstrap milestone (hello-world MCP tool + /health HTTP route + full CI/CD, container build, wiki generation, and agent-flow automation). Upcoming milestones will be tracked as GitHub Issues and PRs.

Clone this wiki locally