arifOS-Langfuse
Instrument arifOS constitutional AI kernel with Langfuse LLM tracing.
Skill by ariffazil
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ariffazil-arifos-langfuse
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/arifos-langfuse
What's inside
- Skill name
arifOS-Langfuse- Description
- Instrument arifOS constitutional AI kernel with Langfuse LLM tracing. Use when (1) adding Langfuse tracing to arifOS tool calls, (2) wiring arifOS telemetry to Langfuse cloud or self-hosted, (3) querying arifOS trace data from Langfuse, (4) migrating arifOS mind_reason/heart_critique calls to Langfuse spans. DITEMPA BUKAN DIBERI — Forged, Not Given.
- License
- AGPL-3.0
- Instructions
- 166 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "arifOS-Langfuse" does not match folder "langfuse-arifos"
Files (2)
- SKILL.md
- instrumentation.md · references/
SKILL.md (first lines)
# arifOS-Langfuse Skill
Instrument arifOS constitutional AI operations with Langfuse LLM tracing.
## Architecture
```
arifOS Kernel (Python)
└── arifosmcp/runtime/telemetry.py ← Telemetry wrapper
├── Prometheus metrics (counters, histograms)
└── Langfuse v3 span tracing ← HERE
├── context manager: with lf.start_as_current_observation() as span
├── span.update(input={...}, output={...})
└── lf.flush()
```
arifOS uses Langfuse Python SDK v3 with **context manager pattern** — spans auto-close on exit.
## Credentials
arifOS → Langfuse (cloud Japan):
```bash
export LANGFUSE_PUBLIC_KEY=pk-lf-YOUR_PUBLIC_KEY
export LANGFUSE_SECRET_KEY=sk-lf-YOUR_SECRET_KEY
export LANGFUSE_HOST=https://jp.cloud.langfuse.com
```
arifOS → Langfuse (self-hosted on VPS):
```bash
export LANGFUSE_HOST=http://langfuse-web:3000
# same keys
```
## Key Patterns
### Correct span creation (v3 context manager)
```python
from langfuse import Langfuse
lf = Langfuse(
public_key=os.getenv("LANGFUSE_PUBLIC_KEY"),
secret_key=os.getenv("LANGFUSE_SECRET_KEY"),
host=os.getenv("LANGFUSE_HOST", "https://jp.cloud.langfuse.com")
)
# WRONG — detached span, no active context
lf.start_as_current_observation(as_type="span", name="arifOS::tool-name")
lf.update_current_span(...)
# CORRECT — context manager, span auto-closes
with lf.start_as_current_observation(as_type="span", name="arifOS::tool-name", metadata={...}) as span:
span.update(input={"tool": tool_name, "actor": actor_id}, output={"verdict": verdict, ...})
```
### Tool call tracing in arifOS
In `arifosmcp/runtime/telemetry.py`, `record_tool_call()` method:
```python
with self._lf.start_as_current_observation(
as_type="span",
name=f"arifOS::{tool}",
metadata=_redact(span_meta),
) as span:
span.update(input={"tool": tool, "actor": actor_id}, output={"verdict": verdict, ...})
```
After `flush()` the span appears in Langfuse dashboard under the project.
### Environment setup in arifOS container
```bash
# Install SDK
pip install langfuse
# In .env (not hardcoded — use env vars)
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://jp.cloud.langfuse.com
# or for self-hosted:
# LANGFUSE_HOST=http://langfuse-web:3000
```
## arifOS Tracing Scope
| Tool | Traced | Priority |
|-----|--------|----------|
| arif_judge_deliberate | ✅ active | P0 |
| arif_mind_reason | ⚠️ pilot | P1 |
| arif_heart_critique | ⚠️ pilot | P1 |
| arif_session_init | 🔜 next | P2 |
| Others | ❌ not wired | — |
## Workflows
### 1. Verify arifOS Langfuse wiring
```bash
# From inside arifOS container:
docker exec arifosmcp python3 -c "
from arifosmcp.runtime.telemetry import get_telemetry
t = get_telemetry()
print('Langfuse active:', t._lf is not None)
t.record_tool_call(tool='arif_judge_deliberate', verdict='SEAL', latency=0.15,
session_id='test', actor_id='arif', metadata={'test': True})
t.flush()
print('Trace sent — check Langfuse dashboard')
"
```
### 2. Wire a new tool to Langfuse
1. Find the tool handler in `arifosmcp/runtime/tools.py`
2. Add `trace_tool_call()` from telemetry after successful execution
3. Instrument input_hash / output_hash (redacted) + metadata dict
4. Test: send live call, check Langfuse dashboardFrom ariffazil/arifOS, AGPL-3.0.
More from ariffazil/arifOS
- 0.669score
memory-archivist
ariffazil
Cross-reference and synthesise daily memory files into patterns, insights, and carry-forward items.
SkillAFreshness: A★ 54Claude Code +9 - 0.669score
arifos-deploy
ariffazil
arifOS sovereign deployment: static hub, docs, runtime, and machine files.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
arif-a2a-call
ariffazil
A2A v1.0.0 client + 888 JUDGMENT integration for OPENCLAW.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
openclaw-ops
ariffazil
Complete OpenClaw operations skill: configure models/providers/channels/tools/agents/cron, manage sessions and sub-agents, control paired nodes…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
postcheck-verifier
ariffazil
Proves actions worked in reality — not just exit code 0, not just logs — by validating actual observable outcomes in the system
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
arif-init-wrapper
ariffazil
Universal session auto-anchor for ALL agent vendors on arifOS VPS — Codex, Claude, Gemini, Kimi, OpenCode, Aider, Copilot, and future agents
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
AAA Agentic Governance (AAA-Cockpit, canonical)
ariffazil
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
architect-explainer
ariffazil
Translates code, system state, and technical decisions into plain-language decisions, risks, and next actions for Muhammad Arif bin Fazil (non-coder sovereign…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
skill-composer
ariffazil
Chains multi-step workflows constitutionally — research → plan → judge → execute → verify → log → vault — without human step-by-step prompting
SkillAFreshness: A★ 54Claude Code +9 - 0.658score
agentic-governance
ariffazil
Hardened constitutional governance — F1-F13 floor enforcement with Quad-Witness consensus for all actions
SkillAFreshness: A★ 54Claude Code +9 - 0.658score
agent-foundation
ariffazil
Universal baseline skill for all agents on the arifOS VPS, regardless of vendor or model provider
SkillAFreshness: A★ 54Claude Code +9 - 0.658score
arifos-mcp-call
ariffazil
Invoke arifOS constitutional MCP tools (000-999 pipeline, F1-F13 enforced)
SkillAFreshness: A★ 54Claude Code +9
Signals
- Stars
- 54
- Forks
- 9
- Open issues
- 3
- Contributors
- 98
- Last commit (this folder)
- Jun 25, 2026 (4 months ago)
- Last release
- Oct 17, 2026 (11 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/ariffazil/arifOS
- Website
- arifos.arif-fazil.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ariffazil
- 0.669score
arifos-deploy
ariffazil
arifOS sovereign deployment: static hub, docs, runtime, and machine files.
SkillAFreshness: A★ 54Claude Code +9 - 0.669score
memory-archivist
ariffazil
Cross-reference and synthesise daily memory files into patterns, insights, and carry-forward items.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
arif-a2a-call
ariffazil
A2A v1.0.0 client + 888 JUDGMENT integration for OPENCLAW.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
openclaw-ops
ariffazil
Complete OpenClaw operations skill: configure models/providers/channels/tools/agents/cron, manage sessions and sub-agents, control paired nodes…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
skill-composer
ariffazil
Chains multi-step workflows constitutionally — research → plan → judge → execute → verify → log → vault — without human step-by-step prompting
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
AAA Agentic Governance (AAA-Cockpit, canonical)
ariffazil
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the…
SkillAFreshness: A★ 54Claude Code +9
Cite this page
arifOS-Langfuse skill. Agent Mart. https://agentmart.dev/skills/ariffazil-arifos-langfuse (last updated 2026-10-24)