Skip to main content

Module parser

Module parser 

Source
Expand description

Agent response parser — normalizes JSON output from different agents.

Each agent (Claude, Codex, OpenCode) returns a different JSON shape. This module parses them all into a common AgentResponse struct. Replaces scripts/parse_response.sh + jq pipelines.

Structs§

AgentResponse
Normalized agent response.
Delegation
A subtask delegation requested by an agent.

Functions§

parse
Parse raw agent output into a normalized response.
parse_and_print
Parse an agent response from a file path (or stdin if “-”).