[FEATURE] Harness runtimes (Claude Code, Codex) accept image parts in a user message
Los mantenedores suelen responder en 1 día
@krishhgg ya está trabajando en esto.
Desde el 4/11/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go, kubernetes
- Área
- ai-infra-agents
Línea de trabajo
Start in go/harness/runtime/a2a/executor.go at validateRequest, which currently rejects anything other than one text part, and in go/harness/runtime/runtime.go where runtime.Turn holds only Prompt. Then read the Claude driver's stream-json user message in go/harness/claude/internal/driver/process.go and the Codex turn/start input in go/harness/codex/internal/driver/process.go. Done means an A2A message with text plus a PNG part reaches both drivers as image content, other media types are refused with a clear error, and the UI's canAttach is true only for harnesses that accept images.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What
Let the harness runtimes (Claude Code, Codex) take image parts in a user message, as the kagent runtime already does.
Why
The UI attaches files to a message since #2936 (images, text files; PDF and Office in #3200), sent as A2A file parts. The kagent runtime passes them to the model. On an agent that runs on a harness, the composer hides the attach button (canAttach, "Only kagent does", ui/src/components/chat/ChatComposer.tsx), and an A2A client that sends a file part anyway is refused:
go/harness/runtime/a2a/executor.go(validateRequest):harness runtime accepts exactly one user text part, so a text part plus an image part fails, and so does an image alone.runtime.TurncarriesPrompt stringonly (go/harness/runtime/runtime.go).- The Claude driver sends the turn as a stream-json user message whose
contentis a plain string (go/harness/claude/internal/driver/process.go); the Codex driver sends[]textInput{Type: "text"}only (go/harness/codex/internal/driver/process.go).
So a person cannot show a Claude Code or Codex agent a screenshot of the bug they report, while both CLIs take images: Claude Code's stream-json input accepts image content blocks (base64), Codex's turn/start accepts image input items.
Proposal
- Accept, in a user message, one or more text parts plus file parts whose media type is
image/png,image/jpeg,image/giforimage/webp(raw bytes or a URL the runtime may fetch), and keep refusing other kinds with a clear error. - Carry them on
runtime.Turn(e.g.Images []Image{MediaType, Data}), and pass them to each driver: Claude Code asimagecontent blocks next to the text block, Codex as image input items. - Advertise it, so the UI's
canAttachcan be true for a harness that takes images (images only, not the other file types).
The gRPC limits (16 MiB) and the UI's 10 MiB cap per message already fit images.
Context
Found while building screenshot attachments in a product on kagent 1.0.0-rc1, whose agents run mostly on the Claude Code harness. Today the only way round is a reference in the text and an MCP tool that returns the image, which the kagent runtime then turns into base64 text.
- Lenguaje dominante
- Go
- Estrellas
- 4.5k
- Forks
- 937
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 150
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de kagent-dev/kagent
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kagent-dev/kagent#3792 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
kagent-dev/kagent#3790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
kagent-dev/kagent#3789 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
kagent-dev/kagent#3787 ·
Los mantenedores suelen responder en 1 día
-
[BUG] Python memory summarization fails for Gemini models: the request has no model namePosiblemente ocupada @BahaaMattar la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kagent-dev/kagent#3710 ·
Los mantenedores suelen responder en 1 día
Todos los issues de kagent-dev/kagent
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Screenshot missing in READMEAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
Add CybeDefendAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
slavakurilyak/awesome-ai-agents#1031 ·