Skip to content

Add Claude Code CLI client and unit tests#125

Open
iam-dev wants to merge 1 commit intoalexzhang13:mainfrom
iam-dev:feat/claude-cli-unit-tests
Open

Add Claude Code CLI client and unit tests#125
iam-dev wants to merge 1 commit intoalexzhang13:mainfrom
iam-dev:feat/claude-cli-unit-tests

Conversation

@iam-dev
Copy link

@iam-dev iam-dev commented Feb 25, 2026

Summary

  • Add ClaudeCodeCLI backend that shells out to claude --print for API-key-free LLM usage
  • Register claude_cli in ClientBackend type, get_client router, and token context limits
  • Add 27 unit tests covering init, command building, prompt preparation, sync/async completion, usage tracking, and get_client integration

Test plan

  • All 27 tests pass (uv run pytest tests/clients/test_claude_cli.py -v)
  • Full test suite passes (281 passed, 10 skipped, 0 failures)
  • Manual smoke test with claude CLI — returns correct response with usage tracking

Add ClaudeCodeCLI backend that shells out to `claude --print` for
API-key-free usage. Includes 27 unit tests covering init, command
building, prompt preparation, sync/async completion, usage tracking,
and get_client integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant