Skip to content

feat(media): image_edit remove-background preset (v0.139.0)#238

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/bg-remove
Jul 13, 2026
Merged

feat(media): image_edit remove-background preset (v0.139.0)#238
vikasprogrammer merged 1 commit into
mainfrom
feat/bg-remove

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

What

image_edit gains a named remove-background preset. Agents can now cut out an image's subject:

image_edit({ image: "<artifact id / path / url>", operation: "remove-background" })

No prompt needed → returns a transparent PNG saved as a new Library image (source untouched).

How

  • Uses Atlas's dedicated youchuan/v8.1/remove-background model (IMAGE-TO-IMAGE, generateImage + single image).
  • ImageEditRequest gains operation?: 'remove-background'. In AtlasBackend.editImage, mode precedence is operationscale (upscale) → prompt (edit); all three ride the same submitAndPoll, only the body differs. Bad-model fallback still applies.
  • Threaded through terminal.editImage (op label/title "Background removed", audited op=remove-background), POST /api/agent/image/edit, and the image_edit MCP tool (operation enum, validation no longer requires a prompt when a preset/scale is set).

Governance

Classified image.edit with a cost estimate (money-cap applies), audited image.edited. No policy/schema change.

Verified

  • Live Atlas, in-process through the real adapter: operation:"remove-background"youchuan/v8.1/remove-background822 KB transparent PNG (ext png).
  • typecheck, build, test:governance (68/68) pass.

Atlas-only. New route field + MCP tool change → server restart + session relaunch to take effect.

🤖 Generated with Claude Code

Adds operation:"remove-background" to image_edit — cuts out the subject
(transparent PNG) via Atlas youchuan/v8.1/remove-background, no prompt
needed. Rides the same governed generateImage submit+poll; operation
takes precedence over scale/prompt. Verified live (transparent PNG).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vikasprogrammer vikasprogrammer merged commit ec6f579 into main Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant