instrument-agent

instrument-agent is a skill for Claude Code, Codex from DJRHails/dotfiles. It costs 20 tokens per session (3,138 once invoked), scanned A, a copy of instrument-agent, MIT.

A setup guide for adding Raindrop AI tracing to an agent and checking that its runs appear in Workshop, a local viewer for debugging agent activity. The agent application runs the work, while the tracing software records model and tool activity.

In plain words
What is it for?
Use it to instrument an agent with the appropriate Raindrop SDK or integration, then verify that a meaningful run is visible in Workshop.
Why use it?
It helps reveal what an agent did during a run, including its model and tool boundaries, without manually connecting to Workshop's internal data endpoints. It also directs the setup to the relevant documentation and supported integrations.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/djrhails/dotfiles/instrument-agent
Any agent
npx skills add DJRHails/dotfiles --skill instrument-agent
Clone the repo
git clone --depth 1 https://github.com/DJRHails/dotfiles

Made for: Claude Code, Codex.

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 instrument-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/djrhails/dotfiles/instrument-agent.svg)](https://agentmods.dev/skills/djrhails/dotfiles/instrument-agent)
Your own site
<a href="https://agentmods.dev/skills/djrhails/dotfiles/instrument-agent"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/instrument-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,138 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 95% copy Near-identical to another mod 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 $0.00020 $0.03138
Opus 5 $0.00010 $0.01569
Sonnet 5 $0.00004 $0.00628
Haiku 4.5 $0.00002 $0.00314

Measured 3d ago against content hash 47d7d24f4861, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

instrument-agent scanned grade A with 1 finding 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Check whether Workshop is running: `curl -fsS http://localhost:5899/health`.
Origin

This is a copy

95% identical to instrument-agent — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

modules/agents/skills/instrument-agent/SKILL.md · 258 lines

How it starts

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

You are helping instrument an AI agent so its next meaningful run appears in Raindrop Workshop. Workshop is the local viewer; it does not run the agent. The user's agent app runs the workflow, the Raindrop SDK captures model/tool boundaries and context, and Workshop renders that telemetry as a debuggable run.

Use supported Raindrop SDK/integration paths. Do not hand-wire Workshop ingestion endpoints or invent SDK APIs. If the repo's telemetry setup is too custom to instrument safely, stop with a clear handoff to the Raindrop docs or team.

Use Docs First

Raindrop SDK and integration APIs move quickly. Before writing code, fetch docs in parallel: the docs index, the likely stack-specific page, and installed package README/types when available.

  • Docs index: https://raindrop.ai/docs/llms.txt
  • Introduction: https://raindrop.ai/docs/introduction
  • Integration overview: https://raindrop.ai/docs/integrations/overview
  • Core SDKs: https://raindrop.ai/docs/sdk/typescript, /sdk/python, /sdk/rust, /sdk/go, /sdk/http-api, /sdk/browser
  • Framework integrations: https://raindrop.ai/docs/integrations/<name> such as vercel-ai-sdk, claude-agent-sdk, langchain, openai-agents, pydantic-ai, google-adk, bedrock, azure-openai, vertex-ai

Use this skill for the workflow and Workshop-specific judgment. Use the docs and installed package README/types for exact install commands, imports, options, and signatures.

Core Rules

  • Give visible progress. Say what phase you are in, what you learned, and what you are about to edit. Do not silently research for minutes.
  • Report often but briefly: one or two sentences per update, focused on current phase, finding, and next step. Avoid long dumps unless you are blocked and need a decision.
  • Before editing any file, tell the user about the intended change, and give them an honest assessment for how risky it might be.
  • Instrument one real agent entry point first. If several are plausible, ask which one should appear in Workshop.
  • First get a minimal useful run into Workshop, then enrich it. Do not trace every helper/tool/sub-agent before Phase 1 works.
  • Respect existing telemetry ownership. If the repo already initializes OpenTelemetry, Sentry, Datadog, Honeycomb, Traceloop, LangSmith, or another provider, do not create a competing provider.
  • Updating the matching Raindrop SDK/integration to the latest available version is mandatory before instrumentation edits. Do not proceed on an older installed SDK just because it is already present.
  • Prefer installed package docs/types over memory. If an API is not present in the installed package, do not use it.
  • Verification is required. Success means Workshop shows a useful run, not just that dependencies installed.

Read the full file on GitHub · 258 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. 3d ago First seen · 258 lines · 20 tokens per session scan A 47d7d24f4861

Subscribe to this mod's changes

instrument-agent is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 3,138 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 95% identical to instrument-agent, differing in 9 lines, and is treated as a copy.

Related

Other skills, from other repositories

autopilot-batch

Fan out a batch of autopilot-queued issues to parallel background worktree subagents — each runs /autopilot at the build model from its 'model:' label — with a gating review at Opus 5 or above and never below the build (Opus reviews Sonnet and Opus builds, Fable reviews Fable builds).

joshukraine/dotfiles · 75 tokens

todoist-cli

Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the td CLI. Use when the user wants to view, create, update, complete, or organize Todoist items, or mentions tasks, inbox, today, upcoming, projects, labels, or filters.

joshukraine/dotfiles · 68 tokens

autopilot

Carry a well-scoped GitHub issue through the full dev loop autonomously, stopping at a per-run tier boundary (PR-ready, or merge+deploy for small reversible changes).

joshukraine/dotfiles · 40 tokens

qa-handoff

Generate a hands-on QA testing guide as a self-contained HTML page — for Rails apps or static (Hugo) sites. --publish uploads the HTML to the project's configured QA host.

joshukraine/dotfiles · 41 tokens

walkthrough

Generate a hands-on browser walkthrough of a PR's user-facing changes to exercise before review; --publish posts the final version to the PR for QA.

joshukraine/dotfiles · 33 tokens

dustoff

Assess a project that's been dormant for months and produce a prioritized re-entry plan — lifecycle stage, what's stale or broken, and how far the project's tooling has drifted from current conventions — delegating every fix to the skill that owns it, and optionally capturing the plan as a tracking issue that survives…

joshukraine/dotfiles · 64 tokens