Claude Code stream-json output adapter (HarnessOutput) #220
Notifications
Due Date
No due date set.
Blocks
#1299 External agent harnesses (Kit v3)
sam/archie
Reference: sam/archie#220
Reference in new issue
Block a user
Implement agentexec.HarnessOutput for Claude Code's headless --output-format stream-json (with --verbose): report each completed tool call (tool name, clipped result, failed flag) through the ToolCallReporter, capture session_id, and sum usage (input, output, cache read, cache creation tokens) into agentexec.Usage. Pure parser over recorded fixture streams in testdata; unknown event types are ignored, a malformed line never panics or stops the stream. New file internal/agentexec/harness_output_claude.go plus tests; touch nothing else. See docs/prds/external-agent-harness.md (Contract) and internal/agentexec/harness_runner.go (HarnessOutput).
Close reason
Closed
Imported from beads
archie-core-egkf.10· GitHub #1185 · type task · priority P1 · created 2026-09-25 · closed 2026-09-25