Skip to content

Conversation

@brainless
Copy link
Owner

Summary

  • Add PDF to text extraction agent with pdftotext support for extracting text from PDF files
  • Agent preserves layout by default and supports page range selection via pdftotext -f/-l flags or qpdf
  • Restricted bash access (only pdftotext and qpdf commands allowed) for security
  • Comprehensive system prompt with usage examples and installation verification
  • Integration with nocodo-api and GUI (vite config port change for compatibility)
  • Support for optional text cleaning and formatting

Features

  • pdftotext executor with layout preservation (-layout flag)
  • qpdf integration for complex page extraction
  • Page range selection via -f/-l flags or qpdf
  • Installation verification for both tools
  • Type-safe configuration and request/response types

Changes

  • New agent: nocodo-agents/src/pdftotext/mod.rs
  • New tool: nocodo-tools/src/pdftotext/mod.rs
  • API handler: nocodo-api/src/handlers/agent_execution/pdftotext_agent.rs
  • Configuration types: shared-types/src/agent.rs (PdfToTextAgentConfig)
  • Minor vite config update: changed dev server port to 9010
brainless and others added 3 commits January 31, 2026 14:48
Previously, the server was hardcoded to bind to 127.0.0.1:8080,
ignoring the configuration file settings. Additionally, config paths
were hardcoded for Linux-style directories.

Changes:
- Use config.server.host and config.server.port for binding
- Add dirs crate for cross-platform config/data directory detection
- Replace hardcoded ~/.config and ~/.local/share paths with dirs::config_dir() and dirs::data_local_dir()
- Generate default database path dynamically in config template

The server now correctly loads configuration from:
- macOS: ~/Library/Application Support/nocodo/api.toml
- Linux: ~/.config/nocodo/api.toml
- Windows: %APPDATA%\nocodo\api.toml

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implement pdftotext agent with qpdf support for extracting text from PDF files.
The agent preserves layout by default and supports page range selection.

Features:
- pdftotext executor with layout preservation
- qpdf integration for complex page extraction
- Restricted bash access (only pdftotext and qpdf commands)
- Comprehensive system prompt with usage examples
- Page range selection via -f/-l flags or qpdf
- Optional text cleaning and formatting
- Installation verification for both tools

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants