Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/machine-learning/ai-observability/guides/instrument-coding-agents.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/machine-learning/ai-observability/guides/instrument-coding-agents/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Instrument coding agents
AI Observability coding-agent plugins forward sessions from the coding agent you already use into AI Observability. Each session shows up as generations, tool calls, and metrics.
Note
AI Observability is referred to as “Sigil” in plugin names, binaries, and configuration. For example, the shared CLI is
sigiland the shared configuration file is~/.config/sigil/config.env.
Supported coding agents
For the full list of supported coding agents and per-plugin install instructions, refer to grafana/sigil-sdk/plugins.
Before you begin
AI Observability is enabled on a Grafana Cloud stack. Refer to Use AI Observability on Grafana Cloud to enable the plugin and collect credentials.
The
sigilCLI is on yourPATH:Bashbrew install grafana/grafana/sigil
Configure credentials
Run the launcher for your coding agent. For example:
sigil piOther launchers follow the same pattern, such as sigil claude and sigil codex. On the first launch, the launcher prompts you for your Grafana Cloud endpoint, instance ID, token, and OTLP endpoint, then writes them to ~/.config/sigil/config.env. Subsequent launches reuse them. The same configuration file applies to every coding-agent plugin.
To change credentials later, run sigil login again or edit ~/.config/sigil/config.env by hand.
By default, plugins send only metadata: model, token usage, tool names, and timing. To also send prompts and responses with automatic secret redaction, add to ~/.config/sigil/config.env:
SIGIL_CONTENT_CAPTURE_MODE=fullThe supported modes are metadata_only (default), no_tool_content, and full.
Enable guards
Guards run synchronous checks on tool calls before they execute. When guards are enabled, tool calls that fail evaluation are blocked. Refer to Set up guards for guard rule configuration.
Guards are off by default. To turn them on, add to ~/.config/sigil/config.env:
SIGIL_GUARDS_ENABLED=trueBy default, transport errors and timeouts let the tool call through (fail-open). Set SIGIL_GUARDS_FAIL_OPEN=false for strict mode, in which evaluator failures block the call. Adjust SIGIL_GUARDS_TIMEOUT_MS (default 1500) to trade per-call latency for tolerance of slow evaluators.
Verify
Run a turn in your coding agent, then open Conversations in the AI Observability plugin. The generation appears within a few seconds.
If nothing appears, enable debug logging and tail the log. For example, for Pi:
SIGIL_DEBUG=true sigil pi
tail -f ~/.local/state/sigil/logs/sigil.logCheck the following:
sigil --versionresolves on yourPATH.SIGIL_ENDPOINT,SIGIL_AUTH_TENANT_ID, andSIGIL_AUTH_TOKENare set in~/.config/sigil/config.env.- The access policy token has the
sigil:writescope.
Next steps
Was this page helpful?
Related resources from Grafana Labs


