What problem does it solve?
It helps you diagnose and repair integration issues in LobeHub heterogeneous agent pipelines (e.g., Claude Code, Codex, and external CLI agents) when transport, adapter event mapping, persistence, or tool-call chaining breaks.
Core Features & Use Cases
- Adapter and transport debugging: Validate raw CLI event traces against adapted
HeterogeneousAgentEvent mappings to isolate whether failures occur before or after the adapter/executor layers.
- Tool-call integrity fixes: Ensure one raw tool item maps to one stable
ToolCallPayload.id, preserve step boundaries, and prevent orphan or stuck tool messages.
- Persistence and session correctness: Verify
persistToolBatch, persistToolResult, subagent thread scoping, and resume/session handling so tool_result resolves the correct tool row and subagent chunks don’t leak into the main stream.
- Common failure patterns: Resolve mixed multi-tool messages, broken step boundaries, duplicate partial/full chunks, missing tool results, and broken subagent routing (including Claude Code and Codex-specific semantics).
Quick Start
Use this skill to reproduce the bug with a captured raw CLI trace, compare raw versus adapted events along the pipeline, then make the smallest fix in the adapter/transport or persistence layer that satisfies the stated tool and step invariants.