/orchestra:watch-logsfrom orchestra
Sets up scheduled, hash-gated log/event monitoring that fires a cheap LLM review only when content changes. Captures every review as eval data.
Ships in orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Stand up a scheduled log/event review that is cheap by construction: a
deterministic trigger script snapshots the watched sources, hashes them, and
only when the hash changes does an inexpensive LLM review fire. The review
itself is a small, well-bounded workload — summarize what changed, cite lines,
say "nothing wrong" honestly — sized so a tiny open model (Gemma 2B class)
could eventually serve it. Every review is recorded from day one as an
understudy.eval_result.v1 row, so the workload accumulates training-grade
evidence without any training now.
The developer wants recurring "look at my logs/events and tell me what's
wrong" monitoring. This skill owns the watcher loop: interview → config →
deterministic trigger → gated review → eval-row capture. For turning existing
LLM traces into evals use ../ingest-traces/SKILL.md;
for building a frozen eval from the accumulated reviews use
../capture-evidence/SKILL.md; for eventually
distilling the review onto a small model use
../distill-classifier/SKILL.md.
~/.understudy/watch-logs/. Before any remote review route (gateway or
provider), confirm with the developer what the logs can contain and prefer a
local model slot for sensitive logs; never upload raw snapshots anywhere.Interview. Establish, in the developer's words: which sources to watch
(log file paths/globs, command outputs such as a curl health probe),
the cadence (default: every 5 minutes), and what "wrong" means for this
workload (error patterns, silence, restarts, latency lines, unexpected
states). Question bank and config mapping in reference.md.
Write the watch config to ~/.understudy/watch-logs/<watch-id>.json
(schema in reference.md) and dry-run the trigger:
node skills/watch-logs/scripts/watch-logs.mjs check \
--config ~/.understudy/watch-logs/ops.json --json
Exit 0 = unchanged, 1 = changed (a snapshot of exactly what changed is
written under ~/.understudy/watch-logs/snapshots/), 2 = error. The first
run always exits 1 (first_run: true) — treat it as the baseline review.
Wire the scheduler. cron or launchd invokes check; only exit code 1
proceeds to the review step. Copy-paste wiring (including the exit-code-2
guard so errors alert instead of silently reviewing) is in
reference.md.
Run the gated review. Send the snapshot's changed content through the
approved route using the prompt template in reference.md:
a local slot per ../run-local-model-lab/SKILL.md
(private, $0), or a cheap catalog model through
../use-understudy-gateway/SKILL.md
(always stream: true). The review must return strict JSON: a verdict
(nothing-wrong | anomaly), a summary, and per-anomaly cited lines.
Record the eval row. Pipe the review result back through the helper so
it lands as an understudy.eval_result.v1 row in
~/.understudy/watch-logs/reviews/reviews.jsonl:
node skills/watch-logs/scripts/watch-logs.mjs record --row review.json
Rows start status: "unscored" (no gold labels yet); when the developer
later marks reviews right/wrong, scored rows make this a frozen eval and a
fine-tune corpus. Field mapping in reference.md.
Surface anomalies. Deliver anomaly verdicts wherever the developer
asked (terminal, notification hook, issue); nothing-wrong verdicts stay
in the JSONL as evidence, not noise.
End with: the watch config path and sources; the cadence and scheduler entry
installed (or the command left for the developer to install); the approved
review route, model, and spend bound; where snapshots and review rows live;
and the graduation trigger — once enough scored rows accumulate, route to
../capture-evidence/SKILL.md and
../distill-classifier/SKILL.md to move the
review onto a small local model.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub understudylabs/orchestra-agent-tools --plugin orchestra43 skills in this plugin
/audit-verifier-reliabilityUse when deciding whether a verifier reward is trustworthy for optimization./calibrate-difficultyMeasure per-band model headroom from a local, source-bound run artifact before investing in training./capture-evidenceUse when a developer wants to build an eval from their real LLM app before changing anything — "measure how my app is doing today", "build an eval from my workload", "we have no baseline", "is my current model actually good". Turns the workload into auditable local artifacts (harness, metric, frozen splits, baseline); has a public-benchmark on-ramp when no traces exist.Other plugins' skills for the same job