Skip to content

--coder claude option returned non-zero exit status 1 #8

@turbomam

Description

@turbomam
  • Using Metacoder with the Claude coder produced an error:
    uv run metacoder run --coder claude "what is the capital of france?"
    🤖 Using coder: claude
    ...
    INFO:metacoder.coders.claude:🤖 Running command: claude -p --verbose --output-format stream-json what is the capital of france?
    ...
    subprocess.CalledProcessError: Command '['claude', '-p', '--verbose', '--output-format', 'stream-json', 'what is the capital of france?']' returned non-zero exit status 1.
    
  • Running the same command manually worked and returned JSON output:
    claude -p --verbose --output-format stream-json "what is the capital of france?"
    {"type":"assistant", ... "content":[{"type":"text","text":"Paris"}], ... }
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions