kyou0x

Swain — AI skill for Claude Code

AI community

Local-first, self-hosted observability for AI agents: fleet view, multi-agent timelines and every command each agent ran.

How to install Swain

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kyou0x/swain and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Swain does

Local-first, self-hosted observability for AI agents: fleet view, multi-agent timelines and every command each agent ran. OpenTelemetry native, zero runtime dependencies.

Alternatives in AI

  • Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
  • Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★

README

Swain fleet view

Swain

Local-first, self-hosted observability for AI agents.
See every agent in your fleet, every command it ran, and which agent ran it, on one timeline.

License: Apache-2.0 Node 24 Runtime dependencies: 0 OpenTelemetry


Swain records what AI agents actually did — model calls, tool calls, shell commands, results, tokens and errors — and turns it into a fleet view, per-run timelines and plain-language explanations. It runs entirely on your machine: no account, no cloud, no telemetry, and **zero runtime dependencies**.

There are two ways to get data in:

Live ingestion (swain serve) Offline import (swain import)
Source Any agent that exports OpenTelemetry over OTLP/HTTP JSON (OpenAI Agents SDK, LangGraph, CrewAI, Google ADK, Vercel AI SDK, OpenInference / OpenLLMetry instrumented apps, Claude Code telemetry) Session files written by coding-agent CLIs: Claude Code, Codex CLI, Gemini CLI, OpenCode
Output Fleet dashboard, agent and run pages served on 127.0.0.1 Static HTML UI and reports (HTML, Markdown, JSON)
Multi-agent Agent hierarchy from trace parents, per-agent attribution, per-credential provenance Main thread and sub-agent threads

**Status: early (0.x).** Interfaces and storage formats may change between minor versions. Only the synthetic fixtures in `fixtures/` are exercised by the test suite; treat every third-party integration as a documented route until you have validat