Add PDF file upload support to GitHub Copilot CLI
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
Describe the feature or problem you'd like to solve
Add PDF file upload support to GitHub Copilot CLI
Proposed solution
GitHub Copilot CLI currently does not support uploading or analyzing PDF files through the interface, even though the underlying AI models fully support PDF analysis. Many users and workflows rely on PDF documents (technical documentation, specifications, reports, design files, etc.). This limitation creates friction and forces users to manually extract and paste content instead of directly referencing PDF files.
Benefit: Enabling PDF support would allow users to:
- Reference technical documentation and specifications without manual copying
- Analyze PDF reports and extract key information
- Include design specifications and mockups directly
- Improve workflow efficiency by reducing manual data extraction
- Align CLI capabilities with other Copilot interfaces (VS Code, GitHub.com)
Example prompts or workflows
copilotthen@design-spec.pdf- Attach a PDF design specification and ask the agent to implement features based on itcopilotthen@technical-docs.pdf- Reference a technical documentation PDF when writing code that needs to follow specific standardscopilot -p "Analyze this architecture diagram" @architecture.pdf- Use non-interactive mode to analyze PDF content directlycopilotthen@requirements.pdf @existing-code.ts- Combine PDF requirements with code files for better contextcopilot --resume <session-id>- Resume a session and reference related PDF files for continued work
Additional context
Why this matters:
- The underlying Claude/GPT models already support PDF analysis (multimodal capabilities)
- Users report having to manually copy-paste PDF content as a workaround
- This is a UX/interface limitation, not a model capability limitation
Similar functionality exists in:
- Other AI assistant CLIs
Expected behavior:
- Users should be able to attach PDF files using
@filename.pdfsyntax - PDFs should be processed by the model for analysis and reference
- Multiple PDFs should be supportable in a single session
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xem xét cách CLI xử lý các tham chiếu @filename trong các prompt tương tác, chế độ không tương tác -p và các phiên --resume. Theo dõi luồng đính kèm tệp và đầu vào mô hình hiện có, sau đó xác minh rằng có thể tham chiếu, phân tích một hoặc nhiều PDF, kết hợp chúng với các tệp mã và sử dụng chúng sau khi tiếp tục một phiên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- ai, cli
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100