Skip to content

Refactor AgentAPI to use the claude-code SDK when applicable #48

@johnstcn

Description

@johnstcn

Problem

We currently use a CLI-agnostic approach for communicating with Claude Code.
This involves spawning a virtual terminal, sending keystrokes over a PTY, and scraping the output.
This mostly works 'fine' but occasionally can result in rendering issues or garbled output.

Proposed Solution

Update AgentTypeClaudeCode to use the Claude Code SDK. This is the same underlying implementation used by the Python SDK.

Alternatively, if a pure-Go SDK becomes available, we could investigate that first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    goPull requests that update go code

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions