/onex:observabilityfrom onex
Logs agent actions, tracks routing/detection/transformation/performance, manages execution logging, and correlates traces across Kafka and PostgreSQL.
Ships in onex. 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.
Unified agent observability skill consolidating action logging, agent tracking, execution logging, and trace correlation.
| Subcommand | Store | Former skill |
|---|---|---|
log-action | Kafka | action-logging |
track-routing | PostgreSQL | agent-tracking |
track-detection | PostgreSQL | agent-tracking |
track-transformation | PostgreSQL | agent-tracking |
track-performance | PostgreSQL | agent-tracking |
start-execution | PostgreSQL | log-execution |
complete-execution | PostgreSQL | log-execution |
trace --id <cid> | PostgreSQL+Kafka | trace-correlation-id |
Reusable action logging framework for agents. Provides a convenient wrapper around the action event publishing system with automatic timing, context management, and graceful degradation.
Publishes all agent actions to Kafka (topic: agent-actions) with:
from action_logger import ActionLogger
# Initialize logger
action_logger = ActionLogger(
agent_name="agent-my-agent",
correlation_id=correlation_id,
project_name="omniclaude",
project_path=os.getcwd(),
working_directory=os.getcwd(),
debug_mode=True
)
# Context manager (automatic timing)
async with action_logger.tool_call("Read", {"file_path": "..."}) as action:
result = await read_file("...")
action.set_result({"line_count": len(result)})
ActionLogger Class:
ActionLogger(
agent_name: str,
correlation_id: Optional[str] = None,
project_path: Optional[str] = None,
project_name: Optional[str] = None,
working_directory: Optional[str] = None,
debug_mode: bool = True
)
Tool Call Logging (context manager):
async with action_logger.tool_call(tool_name, tool_parameters) as action:
result = await execute_tool(...)
action.set_result({"success": True, "data": result})
Manual Logging:
await action_logger.log_tool_call(tool_name, tool_parameters, tool_result, duration_ms)
Decision Logging:
await action_logger.log_decision(decision_name, decision_context, decision_result, duration_ms)
Error Logging:
await action_logger.log_error(error_type, error_message, error_context)
Success Logging:
await action_logger.log_success(success_name, success_details, duration_ms)
| Type | When | Key Fields |
|---|---|---|
tool_call | Agent invokes a tool | file_path, command, pattern, success |
decision | Routing/strategy decisions | selected_agent, confidence, reasoning |
error | Exceptions and failures | error type, stack_trace, recovery_action |
success | Task completions | quality_score, files_processed |
agent-actionsEvents are persisted to PostgreSQL table agent_actions:
| Column | Type | Description |
|---|---|---|
id | UUID | Primary key |
agent_name | VARCHAR | Agent identifier |
action_type | VARCHAR | tool_call, decision, error, success |
action_name | VARCHAR | Specific action name |
action_details | JSONB | Structured action metadata |
correlation_id | UUID | Correlation tracking |
duration_ms | INTEGER | Action duration |
created_at | TIMESTAMP | Event timestamp |
PostgreSQL-backed observability for tracking agent routing decisions, detection failures, transformations, and performance metrics.
| Table | Tracked By |
|---|---|
agent_routing_decisions | track-routing |
agent_detection_failures | track-detection |
agent_execution_logs | track-performance |
Track agent execution lifecycle in PostgreSQL for observability and intelligence gathering.
Start Execution -- call at the beginning of your task:
/observability start-execution --agent agent-research --description "Research Claude Code skills"
Returns:
{
"success": true,
"execution_id": "uuid-here",
"started_at": "2025-10-20T18:38:44Z",
"correlation_id": "uuid-here"
}
Save the execution_id for completion updates.
Complete Execution -- call when your task finishes:
/observability complete-execution --execution-id <uuid> --status success --quality-score 0.95
For errors:
/observability complete-execution --execution-id <uuid> --status error --error-message "API timeout"
start-execution:
--agent (required): Agent name--description (optional): Task description--session-id (optional): Session ID (auto-generated if omitted)--metadata (optional): JSON metadatacomplete-execution:
--execution-id (required): UUID from start command--status (optional): success | error | cancelled (default: success)--error-message (optional): Error description--quality-score (optional): Quality score 0.0-1.0--metadata (optional): Final JSON metadataLogs are stored in agent_execution_logs table with:
End-to-end execution tracing by correlation ID for debugging and observability.
/observability trace --id <correlation-id>
Given a correlation ID, traces all events, routing decisions, tool calls, and outcomes associated with that execution across both PostgreSQL and Kafka stores.
When integrating observability into an agent:
ActionLogger from action_loggeragent-actionsagent_actions for persistenceInfrastructure:
Environment Variables:
source ~/.omnibase/.env
KAFKA_BOOTSTRAP_SERVERS=localhost:19092
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (omninode-ai/omniclaude) — no native marketplace selected
npx claudepluginhub p/omninode-ai-onex-plugins-onex128 skills in this plugin
/adversarial_pipelineAdversarial PipelineAutonomous 3-stage adversarial plan-to-ticket pipeline — design_to_plan → hostile_reviewer gate (≥3 issues required) → plan_to_tickets. All stages run as background agents. Zero foreground work./agent_healthcheck/onex:agent_healthcheck — dispatch-only shimDispatch-only shim for agent stall detection and recovery. All detection and recovery logic lives in node_worker_stall_recovery (omnimarket). The skill parses args, builds the input envelope, dispatches to the node, and renders the receipt./aislop_sweepOther plugins' skills for the same job