apps/docs/skills/observability-instrumentation/SKILL.md
Configure verbosity levels, live log streaming, JSONL file export, model I/O logging, and audit trails for monitoring agent execution.
npx skillsauth add tylerjrbuell/reactive-agents-ts observability-instrumentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produce a builder with observability configured at the right verbosity level, with optional live streaming and file export, so agent execution can be monitored and debugged.
import { ReactiveAgents } from "@reactive-agents/runtime";
const agent = await ReactiveAgents.create()
.withName("monitor")
.withProvider("anthropic")
.withReasoning({ defaultStrategy: "adaptive", maxIterations: 10 })
.withTools({ allowedTools: ["web-search", "http-get", "checkpoint"] })
.withObservability({
verbosity: "normal", // show metrics dashboard on completion
live: true, // stream events as they happen
file: "./logs/agent.jsonl", // write structured JSONL log
})
.withAudit() // record all tool calls and decisions
.build();
| Level | Output |
|-------|--------|
| "minimal" | No output except final result — for programmatic/embedded use |
| "normal" | Metrics dashboard on completion (default) — recommended for production |
| "verbose" | Step-by-step phase summaries as the agent runs |
| "debug" | Full phase traces including tool call args/results and model responses |
.withObservability({ verbosity: "minimal" }) // silent — result only
.withObservability({ verbosity: "normal" }) // dashboard on finish (default)
.withObservability({ verbosity: "verbose" }) // running commentary
.withObservability({ verbosity: "debug" }) // everything, including prompt/response dumps
.withObservability({ verbosity: "verbose", live: true })
// Streams log events in real-time as each phase completes.
// Without live: true, output is buffered and printed at the end.
// Combine with verbosity: "verbose" or "debug" for full traces.
.withObservability({
verbosity: "normal",
file: "./logs/run-2026-04-09.jsonl", // appends structured events as JSONL
})
// Each line is a JSON object: { timestamp, event, phase, data }
// Suitable for ingestion into log aggregators (Datadog, Loki, etc.)
.withObservability({
verbosity: "debug",
logModelIO: true, // log full system prompts and model responses
})
// logModelIO defaults to true at "debug" verbosity, false at all other levels.
// Set logModelIO: false at "debug" to debug phases without exposing prompt content.
.withAudit()
// Records structured audit events for every tool call, guardrail check, contract
// validation, and cost tracking decision.
// Audit events appear in the observability stream and are written to the file if configured.
// Use alongside .withObservability() to capture audit events to a file.
.withObservability({ verbosity: "minimal" })
// Disables all terminal output — the agent runs silently.
// Results are returned programmatically only.
// Combine with .withCostTracking() to still enforce budgets without logging.
.withObservability({
verbosity: "debug",
live: true,
logModelIO: true,
file: "./debug.jsonl",
})
// Maximum visibility: live stream + full model I/O + JSONL file
| Field | Type | Default | Notes |
|-------|------|---------|-------|
| verbosity | "minimal"\|"normal"\|"verbose"\|"debug" | "normal" | Output detail level |
| live | boolean | false | Stream events in real-time |
| file | string | — | JSONL log file path (appends) |
| logModelIO | boolean | true at debug, false otherwise | Log full prompts and responses |
verbosity: "normal" prints a metrics dashboard at completion — this is terminal output, not a structured event. Use file for structured capturelive: true at verbosity: "debug" produces very high-volume output — only use for targeted debugging sessionslogModelIO: true logs full system prompts — ensure logs are stored securely, as they may contain sensitive system prompt content.withAudit() alone does not produce console output — combine with .withObservability() to see audit eventsverbosity: "minimal", even errors are not printed to console — check the returned AgentResult for failure detailsdevelopment
Orient to the Reactive Agents framework, understand the builder API shape, and select the right capability skills for your task.
testing
Enable output verification (hallucination detection, semantic entropy, self-consistency), add post-run verification steps, and run LLM-scored evals across 5 quality dimensions.
data-ai
Configure per-provider behavior, understand streaming quirks, and use the 7-hook adapter system for optimal performance across LLM providers.
data-ai
Configure the 4-layer memory system with SQLite/FTS5/vec storage for persistent agent knowledge that survives sessions.