aliyun

Agent Exporter To Langfuse — AI skill for Claude Code

AI community

Plug-and-play observability exporter for AI coding agents (Claude Code, Qoder, OpenCode, Codex) to Langfuse.

How to install Agent Exporter To Langfuse

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

What Agent Exporter To Langfuse does

Plug-and-play observability exporter for AI coding agents (Claude Code, Qoder, OpenCode, Codex) to Langfuse.

Alternatives in AI

  • Graphify — AI coding assistant skill (Claude Code, Codex, OpenCode, OpenClaw, Factory Droid, Trae) 20.9k ★
  • Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
  • Botmux — Bridge Feishu/Lark to AI coding CLIs — Claude Code, Codex, Gemini, OpenCode… every DM, group or topic spawns i 1.2k ★

README

Agent Exporter to Langfuse

Export AI Agent session observability data (conversation turns, model calls, tool usage, token consumption) to [Langfuse](https://langfuse.com) with zero code changes.

Architecture

┌───────────────────────────────────────────────────────────────┐
│                         AI Agents                             │
│  Claude Code · Qoder · QoderWork · OpenCode · Codex · Cursor  │
│                            · Pi                               │
└────────┬──────────────────────────────────────────────────────┘
         │ Plugin Hook (per-agent)
         ▼
┌───────────────────────────────────────────────────────────────┐
│                      langstash-deliver                        │
│  Three-tier delivery:                                         │
│    1. langstash (local buffer) ─► preferred                   │
│    2. Langfuse SDK (direct push) ─► fallback                  │
│    3. Failed log (~/.agent-exporter-to-langfuse/data/)        │
└────────┬────────────────────────┬─────────────────────────────┘
         │ POST /ingest         │ Direct SDK push
         ▼                      ▼
┌──────────────────┐   ┌──────────────────┐
│    langstash     │   │                  │
│  Local buffer &  │──►│     Langfuse     │
│  batch sender    │   │                  │
│  (macOS menubar) │   │                  │
└──────────────────┘   └──────────────────┘
  • hooks/ — per-agent plugin hooks that capture session data and hand off to langstash-deliver
  • langstash-deliver — shared delivery library with three-tier fallback (langstash → direct push → local log)
  • langstash (exporter/) — local HTTP buffer daemon that accepts traces, batches them, and reliably delivers to Langfuse; includes a macOS menubar app and web dashboard

Supported Agents

Agent Directory Description
Claude Code [hooks/claude-code/](./hooks/claude-code