Logo van Llm Observability

Llm Observability

Community
nahid-sparktales
llm-observability

See what an agent actually did — one trace per run with nested model, tool and retrieval spans, token and latency accounted per step, and failures clustered by mechanism instead of read one at a time. Use when an agent misbehaves in ways you cannot reproduce, when cost or latency is unexplained, when "it sometimes fails" is the whole bug report, or before writing evals when you do not yet know which failures exist. Not for judging whether an output is correct (agent-evals), and not a replacement for the application's own monitoring.

Overzicht

Uitgevernahid-sparktales
Repositoryagent-dispatcher
Skillnaamllm-observability
Sterren
58
Forks
5
Meegeleverde bestanden
1
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 1

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door nahid-sparktales op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Llm Observability in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/llm-observability
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/ai/llm-observability .claude/skills/llm-observability
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Llm Observability in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Llm Observability automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Llm Observability niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

LLM observability

An agent run is a tree of decisions, most of which nobody saw. Without a trace you are left re-running the prompt and hoping the failure happens again while you watch.

When this fires

A failure that will not reproduce, a cost or latency number nobody can account for, a "sometimes" bug, or the start of eval work where the failure modes are still unknown. It does not fire for a single deterministic call whose input and output you already hold.

Procedure

  1. State the question first. "Why did run X do Y", "where is the cost going", "which failures share a cause". Instrumentation added without a question becomes expensive noise nobody reads.
  2. One trace per run, nested by causality. The run is the root; each model call, tool call, retrieval and retry is a child span in the place it actually happened. A flat log of lines loses the one thing you need — which step caused which.
  3. Record per span what cannot be reconstructed afterwards: model id, prompt or system-prompt version, sampling parameters, input and output token counts, stop reason, tool name and arguments, result size, error class, retry index, cache hit, and the latency of that span alone. If the project already has a tracing library, use it rather than inventing a format; check its current API rather than recalling it.
  4. Give every run an id the user can quote. Surface it in the UI, the log line and the error message, so a report maps to a trace instead of to a time range and a guess.
  5. Redact at the boundary, before anything leaves the process. Prompts, retrieved documents and tool arguments carry user data, credentials and PII. Decide per field: stored in full, hashed, truncated or dropped. Sending raw prompts to a third-party backend is a data-export decision — it stops and asks rather than being enabled as a default.
  6. Account tokens where they are spent. Per run, then per step. The useful unit is cost per run and per step, not per token; the largest line is usually conversation history re-sent each turn, retrieved context, or retries nobody counted.
  7. Split latency before attributing it. Time to first token, time in the model, time in tools, time waiting on retries and rate limits. An agent's slow tail is normally one step's worst case plus a retry, and the aggregate hides both.
  8. Sample deliberately and say how. Keep every failure; keep a stated fraction of successes. Sampling by what looked interesting produces a corpus that confirms whatever you suspected.
  9. Cluster failures rather than reading them individually. Group by error class, failing tool, stop reason (length cap, refusal, parse failure, tool error), step index and prompt version. Then read a few from each cluster. Name each cluster by mechanism — "the model emits prose around the JSON when the retrieved chunk is empty" — not by symptom.
  10. Reproduce from the trace. Replay the recorded inputs into the same configuration. If the trace does not contain enough to replay, that gap is the finding: fix the instrumentation before theorising about the bug.
  11. Hand the clusters to evals. Each named mechanism becomes cases in the eval suite. A cluster you merely explained will come back.
  12. Propose thresholds; do not arm them. Error rate, p95 latency and cost per run are worth alerting on, but creating alert rules, dashboards or retention settings changes shared production configuration — write the proposed thresholds and ask before creating them.

Checklist

  • The question the instrumentation answers is written down
  • Runs produce one nested trace, not a flat log
  • Spans carry model, prompt version, tokens, stop reason, tool arguments, retries, errors
  • A run id is visible wherever a user or log can quote it
  • Redaction decided per field, with any third-party export raised rather than assumed
  • Tokens and cost attributed per step, not just per run
  • Latency split into first-token, model, tool and retry time
  • Sampling policy stated; all failures retained
  • Failures clustered and each cluster named by mechanism
  • At least one failure replayed from its trace

Failure handling

  • The trace cannot explain the run — a field is missing. Add it and wait for the next occurrence; do not close the bug with the most plausible story.
  • Nothing reproduces on replay — check what the replay did not restore: retrieval results, tool responses, time, sampling seed, conversation state. An unexplained non-reproduction is a finding, not a fix.
  • Cost jumped with no code change — look at context size and retry counts before the model. Growing history and a silently retrying step are the usual causes.
  • One cluster dominates everything — fix it and re-cluster. The second-largest cause is routinely invisible underneath the first.
  • No tracing backend available — instrument to structured local logs with the same span fields and say so. Report that production behaviour was not observed; do not describe local runs as production evidence.

Evidence to report

Quote run ids and the span path that led to the failure. Give the cluster table: mechanism, share of failures, the sample size it was computed from, and the window it covers. Give token and latency numbers per step with their units, not a total with an adjective. Say which conclusions came from observed traces and which from a replayed run, and name the failures still unexplained — an unexplained cluster reported as unexplained is a result; one quietly dropped is not.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Llm Observability?

See what an agent actually did — one trace per run with nested model, tool and retrieval spans, token and latency accounted per step, and failures clustered by mechanism instead of read one at a time. Use when an agent misbehaves in ways you cannot reproduce, when cost or latency is unexplained, when "it sometimes fails" is the whole bug report, or before writing evals when you do not yet know which failures exist. Not for judging whether an output is correct (agent-evals), and not a replacement for the application's own monitoring.

Waarom Llm Observability gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Llm Observability bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Llm Observability in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/llm-observability. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Llm Observability gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Llm Observability gebruiken?

Zoveel als je wilt. Je kunt Llm Observability gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Llm Observability gratis?

Ja. Deze skill is door nahid-sparktales op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇