Convex Agents Debugging

Log LLM interactions, context messages, and database state to debug Convex agents.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/AbrahamX3/hivio --skill convex-agents-debugging-abrahamx3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Convex Agents Debugging
Source: https://github.com/AbrahamX3/hivio/tree/main/.cursor/skills/convex-agents-debugging
Command: npx skills add https://github.com/AbrahamX3/hivio --skill convex-agents-debugging-abrahamx3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug Convex agents by logging LLM interactions, context, and database state to understand behavior and fix issues quickly.

Core Features & Use Cases

  • Log Raw LLM Requests and Responses to inspect inputs and outputs for each agent interaction.
  • Log Context Messages to see exactly what context the LLM receives and in what order.
  • Inspect Database Tables to query messages, threads, and tool calls for diagnosis.
  • Fetch Context Manually to simulate and verify what the agent would contextually see.
  • Trace Tool Calls to monitor external utilities invoked by the agent.
  • Analyze Message Structure to assess ordering, roles, and content metadata.
  • Debug tooling patterns to reproduce and diagnose errors in playgrounds or production-like setups.

Quick Start

Run the debugging setup in your Convex-enabled project and hook into the agent components to start logging requests, context, and database state for analysis.

Frequently Asked Questions about Convex Agents Debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug unexpected Convex agent behavior?

Debug unexpected Convex agent behavior by hooking into logging hooks and context handlers to surface raw LLM requests, context messages, and database state for analysis. This reveals exactly what inputs the agent receives.

What is the best way to trace LLM tool calls in a Convex database?

Trace LLM tool calls in a Convex database by querying internal tables to monitor external utilities invoked by the agent. This helps diagnose errors and verify data integrity across production-like setups.

How can I inspect the context messages an LLM receives during agent interactions?

Inspect LLM context messages by logging context handlers to see exactly what context the LLM receives and in what order. You can also fetch context manually to simulate and verify the agent's view.

Can I diagnose Convex agent errors in a debugging playground?

Yes, you can diagnose Convex agent errors in a debugging playground by reproducing tooling patterns and logging internal state. This allows you to analyze message structure and trace tool calls safely before production.

Why does my LLM output not match the expected database state in Convex?

LLM output mismatches database state when context or tool calls are misaligned. Resolve this by inspecting database tables to query messages, threads, and tool calls to verify data integrity and message ordering.

Do I need to set up logging hooks to analyze LLM message structure in Convex?

Yes, setting up logging hooks is required to analyze LLM message structure in Convex. Hooking into agent components captures raw requests, roles, and content metadata needed to assess ordering and diagnose issues.