Skip to content

Add generate-image agent skill - #6140

Open
shatfield4 wants to merge 9 commits into
masterfrom
6139-feat-image-generation-agent-skill
Open

Add generate-image agent skill#6140
shatfield4 wants to merge 9 commits into
masterfrom
6139-feat-image-generation-agent-skill

Conversation

@shatfield4

@shatfield4 shatfield4 commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Type

  • ✨ feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #6139

Description

  • add a generate-image agent skill so images can be generated via a tool call
  • skill accepts a prompt, optional dimensions, and an edit flag for transforming an image already in the conversation
  • edits use the images attached to the last user message, falling back to the image generated earlier in the session
  • show a placeholder card while the image is generating that swaps for the result, or clears if generation fails or is cancelled
  • send the generated image inline over the socket so it renders immediately, and persist it to the chat so it rerenders on reload
  • when no image generation provider is configured the skill tells the agent to point the user at Settings > Image Generation
  • hide the skill in the in-chat tools menu until a provider is configured, while always listing it on the agent skills settings page

Visuals (if applicable)

Additional Information

  • Will create translations PR after review is approved

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

@shatfield4 shatfield4 self-assigned this Aug 18, 2026
@shatfield4 shatfield4 linked an issue Aug 18, 2026 that may be closed by this pull request
@shatfield4
shatfield4 marked this pull request as ready for review August 18, 2026 21:46
@shatfield4 shatfield4 added the PR:needs review Needs review by core team label Aug 18, 2026
@timothycarambat timothycarambat added the PR: Ready for QA Indicates that a PR is ready for QA and the GH image may build the image label Aug 19, 2026

@timothycarambat timothycarambat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some questions, nit, and potentially a refactor opp for frontend for detecting if imgen is supported.

Comment thread frontend/src/pages/Admin/Agents/GenericSkillPanel/index.jsx
Comment thread frontend/src/utils/chat/agent.js
Comment thread server/endpoints/agentFileServer.js
Comment thread server/utils/agents/aibitat/plugins/websocket.js Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR:needs review Needs review by core team PR: Ready for QA Indicates that a PR is ready for QA and the GH image may build the image PR: Yankee

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Image generation agent skill

2 participants