factor_agent.llm.claude_code.ClaudeCodeBackend.complete#

ClaudeCodeBackend.complete(request)[source]#

Run the call and read its JSON reply.

Raises:
RuntimeError

If Claude Code exits with an error or reports one.

subprocess.TimeoutExpired

If the call takes longer than timeout_seconds.

ProviderReplyMalformed

If Claude Code succeeds but writes no JSON object with a result.