Overview
- Skill Key
- ekalb81/langfuse-continuous-optimizer
- Author
- ekalb81
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/ekalb81/langfuse-continuous-optimizer
- Latest Commit SHA
- 153fe5f0de3ea0d22013092aba07ded3f0db24be
Continuous LangFuse-driven optimization loop for OpenClaw/OpenRouter model routing and prompt usage controls with persistent local memory. Use when Codex needs to ingest LangFuse observations and evaluator scores, generate task-level routing policy JSON, and run scheduled safe promotion cycles that tune cost-quality-latency tradeoffs automatically.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 langfuse-continuous-optimizer 技能。 若已安装,则直接安装 langfuse-continuous-optimizer 技能。
# Langfuse Continuous Optimizer ## Overview Run an automated observe -> evaluate -> adapt loop backed by LangFuse data. This skill is independent and self-contained: it includes both policy builder and continuous optimizer scripts. ## Quick Start ```bash # Single optimization cycle (LangFuse API -> staged policy -> promoted live policy if gate passes) python scripts/langfuse_openclaw_optimizer.py run-once \ --langfuse-host https://us.cloud.langfuse.com \ --window-hours 24 \ --out-dir ~/.openclaw/optimizer \ --live-policy-path ~/.openclaw/llm_routing_policy.json \ --promote-live-policy \ --write-memory \ --save-config # Continuous daemon python scripts/langfuse_openclaw_optimizer.py daemon \ --interval-min 30 \ --save-config # Toggle settings later (persisted) python scripts/langfuse_openclaw_optimizer.py configure --disable-promote-live-policy --show python scripts/langfuse_openclaw_optimizer.py configure --promote-live-policy --write-memory --show ``` Credentials: - `LANGFUSE_PUBLIC_KEY` - `LANGFUSE_SECRET_KEY` ## Workflow 1. Pull LangFuse observations and scores from the configured time window. 2. Normalize telemetry and build staged routing policy artifacts. 3. Compare staged policy against current live policy with switch guardrails. 4. Promote only when gain and quality constraints are met and promotion is explicitly enabled. 5. Persist cycle memory to reduce policy churn and enable rollback reasoning. ## Safety - Network egress: calls LangFuse Public API. - Local writes: writes raw snapshots, staged artifacts, and optional memory state under `--out-dir`. - Live policy overwrite is opt-in via `--promote-live-policy`. - Without `--promote-live-policy`, cycles are non-destructive (stage/evaluate only). - Save persisted defaults with `--save-config`; edit/toggle with `configure`. ## Runtime Integration Use the generated live policy in OpenClaw/LLM runtime via: ```bash --llm-routing-policy-file ~/.openclaw/llm_routing_policy.json --...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.