Azhy34

Agent Observability Logging — Security skill for Claude Code

Security community

Log everything that happens inside your agent system, from deterministic code: hook-written audit events, invariant checks, secret/PII redaction.

How to install Agent Observability Logging

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Azhy34/agent-observability-logging and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Observability Logging does

Log everything that happens inside your agent system, from deterministic code: hook-written audit events, invariant checks, secret/PII redaction. Agent Skill + Python modules (Google ADK, OpenTelemetry, OTLP, Google Cloud).

Alternatives in Security

  • Security Guidance — Hook that warns about command injection, XSS, and unsafe patterns 14k ★
  • Security Guardian — Comprehensive security analysis for RTK CLI tool, focusing on command injection, shell escaping, hook security 11.9k ★
  • Mcp-scan (Invariant Labs) — MCP security scanner with proxy mode for real-time scanning without infrastructure changes 1.9k ★

README

agent-observability-logging

**Know what your AI agents actually did.**

A deterministic audit log and invariant checks for multi-agent systems: a Google ADK plugin, context managers for any Python agent loop, OpenTelemetry trace ids on every line, and secret and PII redaction before anything is written. Ships as plain Python modules and as an [Agent Skill](https://docs.claude.com/en/docs/claude-code/skills).

[![ci](https://github.com/Azhy34/agent-observability-logging/actions/workflows/ci.yml/badge.svg)](https://github.com/Azhy34/agent-observability-logging/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE) ![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue) ![google-adk tested](https://img.shields.io/badge/google--adk%20tested-2.5.0%20%7C%20latest-4285F4)

The prompt said "always check the budget". The log shows the planner did not, and a rule flags it:

turn 8d02c2d885cb4472  session=s-2  duration=354.8ms  agents=2  llm=2  tools=1  violations=1
       +0.0ms  turn_start                                                      input_chars=35
       +0.0ms  agent_start        planner
       +0.0ms  llm_request        planner fake-llm
     +121.1ms  llm_response       planner fake-llm       ok           120.7ms  in=812 out=64 finish=STOP
     +121.1ms  tool_call          planner search_hotels                        args=city,nights
     +152.0ms  tool_result        planner search_hotels  ok            30.5ms
     +152.0ms  agent_end          planner                ok           152.7ms
     +153.2ms  agent_start        writer
     +153.2ms  llm_request        writer  fake-llm
     +353.9ms  llm_response       writer  fake-llm       ok           200.2ms  in=1430 out=210 finish=STOP
     +353.9ms  final_response     writer                                       chars=54
     +353.9ms  agent_end          writer                 ok           201.0ms
     +353.9ms  reply_selected