mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:09:51 +08:00
Adds a `claude_code` LLM provider that runs turns through the local Claude Code CLI via `claude-agent-sdk`, so DeepTutor can use the account signed in with `claude /login` (including a Claude subscription) without an Anthropic API key. - One long-lived Claude Code process per DeepTutor session, mirroring the CodeBuddy SDK provider's owner-task pattern. - Claude Code's built-in tools, settings, CLAUDE.md and hooks are disabled; DeepTutor tools are exposed through an in-process SDK MCP server and tool calls are returned to DeepTutor's dispatcher. - Tool turns end via max_turns=1 and are drained instead of interrupted, so the transcript does not record an interrupted request. - System messages become Claude's real system prompt. - Optional extra: `pip install deeptutor[claude-code]`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>