leanchy
v0.1.6
Published
A protocol adapter designed to make non-official/proxy APIs fully compatible with Claude Code's native tool-use.
Maintainers
Readme
🚀 Claude Native Adapter: The Reliability Layer for Claude Code
Stop your Claude Code CLI from hanging. Forever. Precision-engineered for non-official APIs.
⚡ The Problem: The "Hypersensitive" CLI
Are you using Claude Code with a third-party API proxy (OpenRouter, OneAPI, DeepSeek) and finding that it constantly freezes, deadlocks, or misparses during file edits?
The Root Cause: Claude Code's internal state machine is designed for perfect XML/JSON streams. Third-party proxies often inject "polite filler" (e.g., "Sure, let me help...") or mismatched Markdown fences that break the engine's rigorous parser.
🛠️ The Solution: Surgical Protocol Alignment
claude-native-adapter is a high-performance protocol layer (v2.0) that enforces 0-latency deterministic output. It strips away the noise and compels any LLM to behave exactly like Anthropic's native "Opus/Sonnet" models.
💎 Key Features: Why This Is a Must-Have
- 🚫 Zero-Preamble Execution: Eradicates the conversational "filler" that causes 90% of CLI hangs.
- 🧱 Atomic Tool-Code Logic: Forces native XML encapsulation for tool calls—eliminating broken Markdown fences or JSON errors.
- 🛡️ Plan Mode Stabilization: Fixes the infinite loops and logic jumps when Claude enters complex planning phases.
- 🔄 Task Lifecycle Sync: Mirroring the native
TaskCreate->Action->TaskUpdatestate machine for seamless UI progress. - 📉 Cognitive Efficiency: Reduces token consumption and latency by removing non-essential reasoning overhead.
📦 Instant Setup (30 Seconds)
1. Locate your Skills directory
- Windows:
%USERPROFILE%\.claude\skills\ - macOS/Linux:
~/.claude/skills/
2. Install the Protocol
- Create a directory:
claude-native-adapter - Copy the
skill.mdfrom this repository into it.
3. Activate
Launch Claude Code and simply prompt:
/claude-native-adapterNote: You can also add Follow instructions in ~/.claude/skills/claude-native-adapter/skill.md to your CLAUDE.md for permanent protection.
🧩 Supported Providers & Models
Battle-tested with models like DeepSeek-V3/R1, Qwen2.5, and Llama3 through:
- OpenRouter
- OneAPI / NewAPI
- Direct API Proxies
🌟 Why Star This Project?
We are solving the most frustrating part of using Claude Code with custom setups. By starring, you:
- Increase Visibility: Help other developers escape the "frozen terminal" trap.
- Drive Development: Support the implementation of v3.0 logic and more compatibility patches.
- Show Support: It’s the highest compliment to the community-driven stability effort.
Join hundreds of developers making Claude Code universal. Hit that Star! 🌟
🇨🇳 中文指南 (Chinese QuickStart)
- 痛点:非官方 API 环境下,Claude Code 经常在修改文件或 Plan 模式下进入“死循环”或卡死。
- 方案:本项目是一个极简协议适配器,通过强制 LLM 输出“原生 XML 格式”并剔除废话,实现 100% 的工具调用成功率。
- 求星:如果您发现卡死问题解决了,请务必点击右上角 Star 🌟 支持,让更多人用上!
Disclaimer: This is a community-driven project and is not officially affiliated with Anthropic.
🤖 Generated with Claude Code
