github / github/copilot-cli

Add PDF file upload support to GitHub Copilot CLI

Abierto
#4,583 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

triage
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

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
  1. copilot then @design-spec.pdf - Attach a PDF design specification and ask the agent to implement features based on it
  2. copilot then @technical-docs.pdf - Reference a technical documentation PDF when writing code that needs to follow specific standards
  3. copilot -p "Analyze this architecture diagram" @architecture.pdf - Use non-interactive mode to analyze PDF content directly
  4. copilot then @requirements.pdf @existing-code.ts - Combine PDF requirements with code files for better context
  5. copilot --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.pdf syntax
  • PDFs should be processed by the model for analysis and reference
  • Multiple PDFs should be supportable in a single session

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza revisando cómo la CLI gestiona las referencias a @filename en los prompts interactivos, en el modo no interactivo -p y en las sesiones --resume. Sigue el flujo existente de adjuntos de archivos y entrada al modelo; después, verifica que se puedan referenciar y analizar uno o varios PDF, combinar con archivos de código y usar después de reanudar una sesión.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
ai, cli
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.