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.
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-langfuseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ariffazil/arifOS /tmp/arifOS && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/arifOS/skills/langfuse-arifos ~/.gemini/antigravity-cli/skills/arifos-langfuseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
