domino-trace-setup

domino-trace-setup is a command for Claude Code from dominodatalab/domino-claude-plugin. It costs 29 tokens per session (1,571 once invoked), scanned A, original, MIT.

A command that adds GenAI tracing to an agent or large-language-model application in Domino Data Lab. Tracing records application activity so it can be inspected and evaluated.

In plain words
What is it for?
Setting up tracing for OpenAI, Anthropic, or LangChain applications, adding DominoRun context, and creating example quality evaluators.
Why use it?
It provides the required SDK setup, decorators, context, configuration, and example evaluators instead of requiring these pieces to be assembled manually.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the domino-claude-plugin plugin — 23 skills, 4 commands, 3 agents, 1 MCP server shipped together

Good fit Setting up tracing for OpenAI, Anthropic, or LangChain applications, adding DominoRun context, and creating example quality evaluators.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dominodatalab/domino-claude-plugin/domino-trace-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/dominodatalab/domino-claude-plugin

Made for: Claude Code.

Or install domino-claude-plugin, the plugin that ships this one along with the rest of its 23 skills, 4 commands, 3 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for domino-trace-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/dominodatalab/domino-claude-plugin/domino-trace-setup/github.svg)](https://agentmods.dev/commands/dominodatalab/domino-claude-plugin/domino-trace-setup)
Your own site
<a href="https://agentmods.dev/commands/dominodatalab/domino-claude-plugin/domino-trace-setup"><img src="https://agentmods.dev/badge/commands/dominodatalab/domino-claude-plugin/domino-trace-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for domino-trace-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/dominodatalab/domino-claude-plugin/domino-trace-setup"><img src="https://agentmods.dev/badge/commands/dominodatalab/domino-claude-plugin/domino-trace-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01571
Opus 5 $0.00015 $0.00785
Sonnet 5 $0.00006 $0.00314
Haiku 4.5 $0.00003 $0.00157

Measured 10d ago against content hash 5302c593f56c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

domino-trace-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/domino-trace-setup.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/domino-trace-setup Command

Set up GenAI tracing for agent and LLM applications in Domino.

Usage

/domino-trace-setup

What This Command Does

  1. Checks environment requirements (MLflow 3.2.0, Domino SDK)
  2. Creates tracing setup module with decorators and context managers
  3. Generates example evaluators for quality scoring
  4. Creates config.yaml for agent configuration
  5. Provides example traced agent code

Output Files

tracing_setup.py

"""
Domino GenAI Tracing Setup
Generated by /domino-trace-setup

Requirements:
- mlflow==3.2.0
- dominodatalab[data,aisystems] @ git+https://github.com/dominodatalab/python-domino.git@master
"""

import mlflow
from domino.agents.tracing import add_tracing
from domino.agents.logging import DominoRun
import os

def setup_tracing(framework: str = "openai"):
    """
    Enable auto-tracing for LLM framework.

    Args:
        framework: One of 'openai', 'anthropic', 'langchain'
    """
    if framework == "openai":
        mlflow.openai.autolog()
    elif framework == "anthropic":
        mlflow.anthropic.autolog()
    elif framework == "langchain":
        mlflow.langchain.autolog()
    else:
        raise ValueError(f"Unknown framework: {framework}")

    print(f"Enabled {framework} auto-tracing")

def create_evaluator(metrics: list = None):
    """
    Create a basic evaluator function.

    Args:
        metrics: List of metrics to evaluate

    Returns:
        Evaluator function for @add_tracing
    """
    if metrics is None:
        metrics = ["quality_score", "response_length"]

    def evaluator(inputs, output):
        """
        Evaluate agent output.

        Args:
            inputs: Dict of function arguments
            output: Function return value

        Returns:
            Dict of metric names to values
        """
        scores = {}

        # Response length
        if isinstance(output, str):
            scores["response_length"] = len(output)
        elif isinstance(output, dict):
            scores["response_length"] = len(str(output))

        # Placeholder for quality score
        # Replace with actual evaluation logic
        scores["quality_score"] = 0.8

        return scores

    return evaluator

# Default evaluator
default_evaluator = create_evaluator()

Read the full file on GitHub · 299 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 299 lines · 29 tokens per session scan A 5302c593f56c

Subscribe to this mod's changes

domino-trace-setup is a command published in the GitHub repository dominodatalab/domino-claude-plugin (6 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 1,571 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.