adk-debug
FreeNo executable scriptsNot checkedDiagnoses misbehaving ADK agents by inspecting sessions, events, tool calls, and the exact request that reached the model. Covers the `adk run` CLI and the…
by google★ 22,468 GitHub starsAbout this skill
Debugging ADK agents
Two entry points. Default to adk run: one process, no server, and --jsonl
output that pipes straight into grep or python3. Switch to adk web when
you need the browser UI, a persisted session you can click through, or the
trace endpoints that expose the exact LLM request.
First moves
- Reproduce headlessly:
adk run --jsonl {agent_dir} "{query}". Without--jsonl,adk runprints only text parts — tool calls and tool errors are invisible. The first two stdout lines are log-setup notices, not JSON; keep the events withgrep '^{'. - Read the log file.
adk runwrites to/tmp/agents_log/agent.latest.logand nothing to the terminal;adk webdoes the opposite. See logs-and-traces.md. - Match the symptom in failure-modes.md before reading source — most reports are one of a handful of known shapes.
- If the text is fine but the routing is not, dump the events and read
author,branch,nodeInfo.path, andactions— event-flow.md. - If the model itself misbehaved, read what it actually received from the trace rather than guessing from the agent definition — logs-and-traces.md.
References
- cli-run.md —
adk runflags, the JSONL event shape, multi-turn and human-in-the-loop resume, exit codes, driving aRunnerfrom Python. - web-api.md — starting
adk web, listing and reading sessions over HTTP, posting test messages to/runor/run_sse. - logs-and-traces.md — log levels and where each command writes them, the trace endpoints, span attributes, and the env vars that control whether prompts appear in spans.
- failure-modes.md — ADK-specific symptoms with the cause and a concrete check for each.
- event-flow.md — how an invocation becomes events, callback order, the event fields that matter, and where each stage lives in the source.
Ground rules
- Leave sessions in place when you finish. The user may still want to open them
in the web UI, and
adk webhas no undelete. - Delete any throwaway agent you created for a repro, unless the user asked to keep it.
- Reach for a unit test in
tests/unittests/when the bug is inside one component, and for a sample undercontributing/samples/(seeadk-sample-creator) when it only reproduces with runner, agent, and workflow wired together.
Install adk-debug in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the adk-debug skill do?
Diagnoses misbehaving ADK agents by inspecting sessions, events, tool calls, and the exact request that reached the model. Covers the `adk run` CLI and the `adk web` dev server with its session, trace, and debug HTTP endpoints. Use when an agent returns the wrong answer, ignores a tool or swallows a tool error, hangs, loops, emits raw JSON instead of calling tools, is not discovered by `adk web`, when a sub-agent cannot see the parent conversation, or when you need the LLM request/response, token counts, or logs for a run. Don't use for how ADK is designed internally (use `adk-architecture`), for building a new agent or workflow (use `adk-agent-builder`), for environment or dependency setup failures (use `adk-setup`), or for lint and style nits (use `adk-style`).
How do I install the adk-debug skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the adk-debug skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic