Skip to content

feat: phase 1 CLI - parse books and summarize chapters with DeepSeek - #1

Merged
aminghuf merged 1 commit into
mainfrom
phase-1-cli
Oct 31, 2026
Merged

aminghuf merged 1 commit into
mainfrom
phase-1-cli

Conversation

@aminghuf

Copy link
Copy Markdown
Owner
  • Parsers for EPUB (TOC/NCX/nav, anchors in shared files), PDF (outline, page-range fallback) and Markdown (headings, front matter)
  • Token-budgeted chunking at paragraph/sentence boundaries
  • Map-reduce section summaries via any OpenAI-compatible API (DeepSeek default)
  • Content-addressed file cache keyed by text hash, model and prompt version
  • CLI: toc, text, summarize (--dry-run, ranges, --all, -o)
  • Tests with generated fixtures and a local fake API; CI on 3.12/3.13

Claude-Session: https://claude.ai/code/session_01S8fCwzUPHc3uXUH3rr65HT

- Parsers for EPUB (TOC/NCX/nav, anchors in shared files), PDF (outline,
  page-range fallback) and Markdown (headings, front matter)
- Token-budgeted chunking at paragraph/sentence boundaries
- Map-reduce section summaries via any OpenAI-compatible API (DeepSeek default)
- Content-addressed file cache keyed by text hash, model and prompt version
- CLI: toc, text, summarize (--dry-run, ranges, --all, -o)
- Tests with generated fixtures and a local fake API; CI on 3.12/3.13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S8fCwzUPHc3uXUH3rr65HT
@aminghuf
aminghuf merged commit 04276c7 into main Oct 31, 2026
2 checks passed
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