Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

arifOS-Langfuse

Skill by ariffazil

Adds Langfuse LLM tracing to the arifOS constitutional AI kernel. Covers span creation for tool calls, cloud or self-hosted setup, and querying traces. Aimed at developers running arifOS.

  • Score 53
  • 53 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install arifOS-Langfuse

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ariffazil/arifOS /tmp/arifOS && mkdir -p ~/.claude/skills && cp -r /tmp/arifOS/skills/langfuse-arifos ~/.claude/skills/arifos-langfuse

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install arifOS-Langfuse in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explains how to instrument the arifOS constitutional AI kernel with Langfuse LLM tracing. It describes a Python telemetry wrapper in arifosmcp/runtime/telemetry.py that creates Langfuse v3 spans using a context manager, alongside Prometheus metrics. The skill covers credentials for Langfuse cloud (Japan region) and self-hosted deployments, and lists which arifOS tools are traced.

It also gives workflows for verifying the wiring, adding tracing to a new tool, querying traces through the Langfuse public API with curl, and attaching scores to traces. A troubleshooting table covers common errors such as missing packages and 401 responses. It is aimed at developers working on arifOS who want observability for its tool calls. The source describes tracing as partial and at pilot stage.

Written from the project's SKILL.md and checked against it.

What it can do

  • Tool call tracingWraps arifOS tool calls in Langfuse spans using the v3 context manager pattern.
  • Cloud or self-hosted setupShows environment variables for Langfuse cloud (Japan) or a self-hosted instance.
  • Wiring verificationProvides a command to check that Langfuse is active and send a test trace.
  • New tool wiringSteps to add trace_tool_call() to a tool handler and test it with a live call.
  • Trace queryingShows curl commands to list recent traces and fetch a specific trace by ID.
  • Trace scoringShows how to attach a score to the current trace using score_current_trace.

What you need

  • Langfuse public and secret API keys
  • Langfuse Python SDK v3 (pip install langfuse)
  • Docker container running arifOS
  • Access from the container to the Langfuse host

Try asking

  • Add Langfuse tracing to the arifOS arif_mind_reason tool call
  • Show me how to wire arifOS telemetry to a self-hosted Langfuse
  • List the 10 most recent arifOS traces from Langfuse

Good to know

  • Tracing is partial and at pilot stage according to the source.
  • Only arif_judge_deliberate is marked as active; mind_reason and heart_critique are pilots.
  • arif_session_init is marked as next, and other tools are not wired.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/langfuse-arifos/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to arifOS-Langfuse

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

arifOS-Langfuse: common questions

Which arifOS tools are traced with Langfuse?

The source lists arif_judge_deliberate as active, arif_mind_reason and arif_heart_critique as pilots, and arif_session_init as next. Other tools are not wired.

Does this work with self-hosted Langfuse?

Yes. The skill gives a LANGFUSE_HOST example for a self-hosted instance at http://langfuse-web:3000 with the same keys.

What SDK version does arifOS use for Langfuse?

The source says arifOS uses the Langfuse Python SDK v3 with the context manager pattern, where spans close automatically on exit.

How do I install arifOS-Langfuse?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is arifOS-Langfuse free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is arifOS-Langfuse safe to use?

It scores 53 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to arifOS-Langfuse?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

arifOS-Langfuse Install

Add to stack

Loading.