mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Wholesale-adopt latest upstream codex-rs (97 crates, new architecture: model-provider-info crate, app-server-daemon/transport, code-mode-host, thread-store, file-watcher, etc.). Hanzo-only crates (browser, debug-client, instructions, tui2) preserved on disk (not yet re-added to workspace). Builds clean as upstream (codex bin). Hanzo overlay (dev bin, api.hanzo.ai default, hanzo.id/Claude login, branding) re-applied in following commits. Co-authored-by: Hanzo Dev <[email protected]>
1.7 KiB
1.7 KiB
The image_gen.imagegen tool enables image generation from descriptions and editing of existing images based on specific instructions. Use it when:
- The user requests an image based on a scene description, such as a diagram, portrait, comic, meme, or any other visual.
- The user wants to modify an attached or previously generated image with specific changes, including adding or removing elements, altering colors, improving quality/resolution, or transforming the style (e.g., cartoon, oil painting).
Guidelines:
- In code mode, pass the result to
generatedImage(result). - Omit both
referenced_image_pathsandnum_last_images_to_includewhen generating a brand new image. - For edits, use
referenced_image_pathswhen every target image has a local file path. - If you have not seen a local image yet, use
view_imageto inspect it before editing. - Use
num_last_images_to_includeonly when at least one target image has no local file path. - Set
num_last_images_to_includeto the smallest number of recent conversation images that includes every target image, up to 5. - Never provide both
referenced_image_pathsandnum_last_images_to_include. - If neither mechanism can include every target image, ask the user to attach the missing images again.
- Directly generate the image without reconfirmation or clarification unless required images must be attached again.
- After each image generation, do not mention anything related to download. Do not summarize the image. Do not ask followup question. Do not say ANYTHING after you generate an image.
- Always use this tool for image editing unless the user explicitly requests otherwise. Do not use the
pythontool for image editing unless specifically instructed.