Skip to content

Conversation

@mcowger
Copy link
Contributor

@mcowger mcowger commented Dec 19, 2025

Context

Introduces a new claudecodenative provider designed to interface with Anthropic's Claude Code CLI API. This implementation extends the existing Anthropic handler with specific headers and system prompts. It enables users to use their claude subscription with Kilo Code, without the restrictions inherent in the CLI/SDK-based implementation.

Implementation

Key changes:

  • Add ClaudeCodeNativeHandler with custom headers and system prompt
  • Add support for Claude 4.5 Opus and Haiku models as defined by their shorthand versions.
  • Refactor AnthropicHandler to allow inheritance of system prompt logic
    • I tried to avoid this, but doing so would have meant 200+ lines of 99% duplicated code in claudecodenative.ts vs. a small, contained 6 line change in anthropic.ts
  • Add UI configuration for the new provider
  • Add tests as appropriate
  • Add docs

Screenshots

How to Test

Follow instructions added in docs/claude-code-native.md

Get in Touch

mcowger

Introduces a new `claudecodenative` provider designed to interface with
Anthropic's Claude Code CLI API. This implementation extends the
existing Anthropic handler with specific headers and system prompts.   It enables users to use their claude subscription with Kilo Code, without the restrictions inherent in the CLI/SDK-based implementation.

Key changes:
- Add `ClaudeCodeNativeHandler` with custom headers and system prompt
- Add support for Claude 4.5 Opus and Haiku models as defined by their shorthand versions.
- Refactor `AnthropicHandler` to allow inheritance of system prompt logic
- Add UI configuration for the new provider
- Add tests as appropriate
- Add docs
@changeset-bot
Copy link

changeset-bot bot commented Dec 19, 2025

🦋 Changeset detected

Latest commit: 24d0d8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
kilocode-docs Minor
@kilocode/cli Minor
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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