Motel Debug
kitlangton/motel
Debug applications with motel, a local OpenTelemetry ingest and query server.
A skill your agent uses for debugging DSPy programs, inspecthistory, tracing LLM calls, custom callbacks, observability, monitoring, and cost tracking.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-debugging-observability --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dspy-debugging-observability .claude/skills/dspy-debugging-observability && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dspy-debugging-observability" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observability into .claude/skills/dspy-debugging-observability/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-debugging-observability", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observabilityType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-debugging-observability --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/dspy-debugging-observability .agents/skills/dspy-debugging-observability && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dspy-debugging-observability" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observability into .agents/skills/dspy-debugging-observability/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-debugging-observability", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-debugging-observability --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/dspy-debugging-observability .cursor/skills/dspy-debugging-observability && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dspy-debugging-observability" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observability into .cursor/skills/dspy-debugging-observability/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-debugging-observability", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OmidZamani/dspy-skills.git --path skills/dspy-debugging-observability--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-debugging-observability --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/dspy-debugging-observability .gemini/skills/dspy-debugging-observability && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dspy-debugging-observability" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observability into .gemini/skills/dspy-debugging-observability/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-debugging-observability", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OmidZamani/dspy-skills dspy-debugging-observabilityInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/dspy-debugging-observability .github/skills/dspy-debugging-observability && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dspy-debugging-observability" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observability into .github/skills/dspy-debugging-observability/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-debugging-observability", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-debugging-observability --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/dspy-debugging-observability .opencode/skills/dspy-debugging-observability && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dspy-debugging-observability" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-debugging-observability into .opencode/skills/dspy-debugging-observability/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-debugging-observability", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dspy-debugging-observabilityA skill your agent uses for debugging DSPy programs, inspecthistory, tracing LLM calls, custom callbacks, observability, monitoring, and cost tracking.
Dspy Debugging Observability is an agent skill from OmidZamani/dspy-skills. Use for debugging DSPy programs, inspecthistory, tracing LLM calls, custom callbacks, observability, monitoring, and cost tracking.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `example.py`).
It sits in DevOps & Cloud, covering Observability, Debugging and LLM cost and token optimization. It works with MLflow. The repository describes itself as: Collection of Claude Skills for DSPy framework - program language models, optimize prompts, and build RAG pipelines systematically. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f5db3b7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
dspy.aigithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dspy Debugging Observability loads about 2.1k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 244 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
rm = dspy.ColBERTv2(url="http://20.102.90.50:2017/wiki17_abstracts")Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from OmidZamani/dspy-skills at commit f5db3b7, republished under its MIT licence (© OmidZamani). 244 words, ~2,083 tokens.
.claude/skills/dspy-debugging-observability/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Debug, trace, and monitor DSPy programs using built-in inspection, MLflow tracing, and custom callbacks for production observability.
| Input | Type | Description |
|---|---|---|
program | dspy.Module | Program to debug/monitor |
callback | BaseCallback | Optional custom callback (subclass of dspy.utils.callback.BaseCallback) |
| Output | Type | Description |
|---|---|---|
GLOBAL_HISTORY | list[dict] | Raw execution trace from dspy.clients.base_lm |
metrics | dict | Cost, latency, token counts from callbacks |
The simplest debugging approach:
import dspy
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
# Run program
qa = dspy.ChainOfThought("question -> answer")
result = qa(question="What is the capital of France?")
# Inspect last execution (prints to console)
dspy.inspect_history(n=1)
# To access raw history programmatically:
from dspy.clients.base_lm import GLOBAL_HISTORY
for entry in GLOBAL_HISTORY[-1:]:
print(f"Model: {entry['model']}")
print(f"Usage: {entry.get('usage', {})}")
print(f"Cost: {entry.get('cost', 0)}")MLflow integration requires explicit setup:
import dspy
import mlflow
# Setup MLflow (4 steps required)
# 1. Set tracking URI and experiment
mlflow.set_tracking_uri("http://localhost:5000")
mlflow.set_experiment("DSPy")
# 2. Enable DSPy autologging
mlflow.dspy.autolog(
log_traces=True, # Log traces during inference
log_traces_from_compile=True, # Log traces when compiling/optimizing
log_traces_from_eval=True, # Log traces during evaluation
log_compiles=True, # Log optimization process info
log_evals=True # Log evaluation call info
)
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
# Configure retriever (required before using dspy.Retrieve)
rm = dspy.ColBERTv2(url="http://20.102.90.50:2017/wiki17_abstracts")
dspy.configure(rm=rm)
class RAGPipeline(dspy.Module):
def __init__(self):
self.retrieve = dspy.Retrieve(k=3)
self.generate = dspy.ChainOfThought("context, question -> answer")
def forward(self, question):
context = self.retrieve(question).passages
return self.generate(context=context, question=question)
pipeline = RAGPipeline()
result = pipeline(question="What is machine learning?")
# View traces in MLflow UI (run in terminal): mlflow ui --port 5000MLflow captures LLM calls, token usage, costs, and execution times when autolog is enabled.
Build custom callbacks for specialized monitoring:
import dspy
from dspy.utils.callback import BaseCallback
import logging
import time
from typing import Any
logger = logging.getLogger(__name__)
class ProductionMonitoringCallback(BaseCallback):
"""Track cost, latency, and errors in production."""
def __init__(self):
super().__init__()
self.total_cost = 0.0
self.total_tokens = 0
self.call_count = 0
self.errors = []
self.start_times = {}
def on_lm_start(self, call_id: str, instance: Any, inputs: dict[str, Any]):
"""Called when LM is invoked."""
self.start_times[call_id] = time.time()
def on_lm_end(self, call_id: str, outputs: dict[str, Any] | None, exception: Exception | None = None):
"""Called after LM finishes."""
if exception:
self.errors.append(str(exception))
logger.error(f"LLM error: {exception}")
return
# Calculate latency
start = self.start_times.pop(call_id, time.time())
latency = time.time() - start
# Extract usage from outputs
usage = outputs.get('usage', {}) if isinstance(outputs, dict) else {}
tokens = usage.get('total_tokens', 0)
model = outputs.get('model', 'unknown') if isinstance(outputs, dict) else 'unknown'
cost = self._estimate_cost(model, usage)
self.total_tokens += tokens
self.total_cost += cost
self.call_count += 1
logger.info(f"LLM call: {latency:.2f}s, {tokens} tokens, ${cost:.4f}")
def _estimate_cost(self, model: str, usage: dict[str, int]) -> float:
"""Estimate cost based on model pricing (update rates for 2026)."""
pricing = {
'gpt-4o-mini': {'input': 0.00015 / 1000, 'output': 0.0006 / 1000},
'gpt-4o': {'input': 0.0025 / 1000, 'output': 0.01 / 1000},
}
model_key = next((k for k in pricing if k in model), 'gpt-4o-mini')
input_cost = usage.get('prompt_tokens', 0) * pricing[model_key]['input']
output_cost = usage.get('completion_tokens', 0) * pricing[model_key]['output']
return input_cost + output_cost
def get_metrics(self) -> dict[str, Any]:
"""Return aggregated metrics."""
return {
'total_cost': self.total_cost,
'total_tokens': self.total_tokens,
'call_count': self.call_count,
'avg_cost_per_call': self.total_cost / max(self.call_count, 1),
'error_count': len(self.errors)
}
# Usage
monitor = ProductionMonitoringCallback()
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"), callbacks=[monitor])
# Run your program
qa = dspy.ChainOfThought("question -> answer")
for question in questions:
result = qa(question=question)
# Get metrics
metrics = monitor.get_metrics()
print(f"Total cost: ${metrics['total_cost']:.2f}")
print(f"Total calls: {metrics['call_count']}")
print(f"Errors: {metrics['error_count']}")For high-traffic applications, sample traces to reduce overhead:
import random
from dspy.utils.callback import BaseCallback
from typing import Any
class SamplingCallback(BaseCallback):
"""Sample 10% of traces."""
def __init__(self, sample_rate: float = 0.1):
super().__init__()
self.sample_rate = sample_rate
self.sampled_calls = []
def on_lm_end(self, call_id: str, outputs: dict[str, Any] | None, exception: Exception | None = None):
"""Sample a subset of LM calls."""
if random.random() < self.sample_rate:
self.sampled_calls.append({
'call_id': call_id,
'outputs': outputs,
'exception': exception
})
# Use with high-volume apps
callback = SamplingCallback(sample_rate=0.1)
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"), callbacks=[callback])© OmidZamani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/dspy-debugging-observability of OmidZamani/dspy-skills.
Open the folder on GitHubat commit f5db3b7
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in OmidZamani/dspy-skills, which our catalogue first saw on October 7, 2026.
Dspy Debugging Observability next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dspy Debugging Observability this skillOmidZamani/dspy-skills | 124 | 1 repos | ~2.1k | Automated safety check: Warn | MIT | |
| Motel Debugkitlangton/motel | 298 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Codex Session Debuggingweave-os/router | 5.6k | — | ~4.5k | Automated safety check: Warn | Apache-2.0 | |
| Log Aggregationaspectrr/deer | 405 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Gcloud Usagefcakyon/claude-codex-settings | 1.2k | — | ~871 | Automated safety check: Pass | Apache-2.0 | |
| Caveman Gateway SetupJuliusBrussee/caveman | 110k | 1 repos | ~2.6k | Automated safety check: Warn | Apache-2.0 |
kitlangton/motel
Debug applications with motel, a local OpenTelemetry ingest and query server.
weave-os/router
Correlates a Codex CLI session's local transcript with a model router's production logs to explain why a reply rendered the way it did.
aspectrr/deer
ELK Stack deployment, Logstash pipeline building, Filebeat configuration, and Kibana dashboard setup.
fcakyon/claude-codex-settings
This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".
JuliusBrussee/caveman
Routes every LLM call in a repository through the Caveman Cloud gateway in record mode, so requests and costs are measured without changing behavior.
vivekchand/clawmetry
Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.
OmidZamani/dspy-skills
A skill your agent uses for integrating DSPy with Haystack, optimizing Haystack prompts, improving retrieval pipelines, and extracting DSPy prompts.
OmidZamani/dspy-skills
A skill your agent uses when you need to QA audit and fix a plugin skill file.
OmidZamani/dspy-skills
A skill your agent uses for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows.
OmidZamani/dspy-skills
A skill your agent uses for BetterTogether, prompt plus weight optimization, fine-tuning sequences, and strategy chains like p - w - p.
OmidZamani/dspy-skills
A skill your agent uses for BootstrapFewShot, bootstrapped demonstrations, teacher-model demos, and low-data DSPy prompt optimization.
OmidZamani/dspy-skills
A skill your agent uses for creating custom DSPy modules, extending dspy.Module, reusable components, stateful modules, serialization, and module testing.
Works with
Categories
A skill your agent uses for debugging DSPy programs, inspecthistory, tracing LLM calls, custom callbacks, observability, monitoring, and cost tracking. Dspy Debugging Observability is an agent skill from OmidZamani/dspy-skills. Use for debugging DSPy programs, inspecthistory, tracing LLM calls, custom callbacks, observability, monitoring, and cost tracking.
Dspy Debugging Observability fits situations like: debugging DSPy programs; tracing LLM calls; custom callbacks.
Run `npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a claude-code`. Or copy the skill folder (skills/dspy-debugging-observability in OmidZamani/dspy-skills) into .claude/skills/dspy-debugging-observability in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a codex`. Or copy the skill folder (skills/dspy-debugging-observability in OmidZamani/dspy-skills) into .agents/skills/dspy-debugging-observability in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OmidZamani/dspy-skills --skill dspy-debugging-observability -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dspy-debugging-observability, .gemini/skills/dspy-debugging-observability, .github/skills/dspy-debugging-observability and .opencode/skills/dspy-debugging-observability in your project.
Going by SKILL.md and its folder, Dspy Debugging Observability needs Python for the scripts in its folder. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Glob, Grep.
SKILL.md names 2 domains. As links in the text: dspy.ai and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 1 warning(s): links to a raw public ip address. Read the flagged lines before installing; the check is not a guarantee either way.
Dspy Debugging Observability is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dspy Debugging Observability: Motel Debug (kitlangton/motel, 298 stars), Codex Session Debugging (weave-os/router, 5.6k stars), Log Aggregation (aspectrr/deer, 405 stars) and Gcloud Usage (fcakyon/claude-codex-settings, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OmidZamani (a GitHub user) maintains it in OmidZamani/dspy-skills, which has 124 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on June 23, 2026.
Source: OmidZamani/dspy-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.