[codex] Add Claude Code local reading assistant#348
Draft
railgun0325 wants to merge 3 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a desktop-only Claude Code local reading assistant path while keeping the existing ReadAny chat UI and
StreamingChatpublic API stable.The new path runs the local
claudeCLI directly from Tauri withstream-jsonoutput. It does not start a local HTTP bridge and does not store provider API keys in ReadAny. Model/provider routing, including DeepSeek-backed Claude Code setups, stays in the user's local Claude Code environment.Interface contract
The interface is documented in
docs/claude-code-interface.mdand covers:StreamingChat.stream(options);runClaudeCodeChat,abortClaudeCodeChat,checkClaudeCode, andextractBookChapter;claude_code_check,claude_code_chat, andclaude_code_abort;claude-code-chat-eventpayload shape for stdout, stderr, and exit events;stream-jsonto ReadAny event mapping;readany/readany-opsprotocol for book search, notes, highlights, bookmarks, threads, and skills;Behavior changes
WebSearchandWebFetchfor the reading assistant.search-bookoperations rather than truncating each match to 300 characters.Validation
pnpm run testpassed: 38 files, 371 tests.pnpm run buildpassed.cargo checkpassed inpackages/app/src-tauri.git diff --checkpassed.Notes
This PR intentionally does not include any DeepSeek, Anthropic, or OpenAI API key. The local Claude Code installation is responsible for credentials and model routing.