Skip to content

Add olmOCR passthrough command for PDF text extraction#9

Closed
rodneykinney wants to merge 9 commits intomainfrom
olmocr
Closed

Add olmOCR passthrough command for PDF text extraction#9
rodneykinney wants to merge 9 commits intomainfrom
olmocr

Conversation

@rodneykinney
Copy link
Copy Markdown
Member

Implements PDF text extraction using the olmOCR CLI tool as a passthrough command. Supports cloud API providers only, no local inference

  • Auto-installs olmocr on first use from local source
  • Direct passthrough to olmocr CLI with full feature access

jbragg and others added 9 commits January 15, 2026 23:51
- Paper search commands: /find-papers, /generate-report
- Literature research skill for flexible paper queries
- Asta MCP server: Semantic Scholar API tools
- Paper finder CLI for AI-powered search
- PermissionRequest hooks to auto-approve ~/.asta/ file operations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements PDF text extraction using the olmOCR CLI tool as a passthrough
command. Supports both cloud API providers (DeepInfra, Cirrascale, Parasail)
and local GPU inference.

Features:
- Auto-installs olmocr on first use from local source
- Direct passthrough to olmocr CLI with full feature access
- Workspace-based output organization
- Markdown and JSON output formats
- Support for batch processing with parallel workers

Files added:
- src/asta/ocr/passthrough.py - Passthrough wrapper
- src/asta/ocr/__init__.py - Module exports
- skills/pdf-ocr/SKILL.md - Comprehensive skill documentation

Files modified:
- src/asta/cli.py - Register ocr command group
- src/asta/utils/passthrough.conf - Add olmocr configuration
- tests/test_cli.py - Add TestOCRCommand tests
- README.md - Add PDF extraction documentation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@rodneykinney
Copy link
Copy Markdown
Member Author

Closed in favor of #22

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.

2 participants