ax-agent-observability
Installation
SKILL.md
AxAgent Observability Rules (@ax-llm/ax)
Use this skill when an agent needs runtime visibility, progress reporting, tracing, usage accounting, or chat-log access. For ordinary agent setup use ax-agent. For RLM runtime policy use ax-agent-rlm. For memories and dynamic skill loading use ax-agent-memory-skills.
Choose The Smallest Hook
- Need a quick prompt/runtime trace during development -> start with
debug: true. - Need structured per-turn code, raw runtime result, formatted output, provider thoughts, or actor stage -> use
actorTurnCallback. - Need context-pressure and compaction telemetry -> use
onContextEvent. - Need real-time task progress emitted by actor code -> use
agentStatusCallback. - Need every runtime function call before execution -> use
onFunctionCall. - Need model prompts/responses after a run -> use
getChatLog(). - Need centralized chat/embed usage across APIs, users, agents, and services -> use
axGlobals.onUsageplususageContext. - Need token usage by actor/responder -> use
getUsage()andresetUsage(). - Need usage split by context and task stages -> use
getStagedUsage(). - Need Ax program traces -> use
getTraces(). - Do not add multiple hooks unless the user clearly needs each output stream.