Skip to content

v0.16.3

Choose a tag to compare

@daltonnyx daltonnyx released this 15 Jun 06:30

Release v0.16.3

πŸš€ New Features

  • Image Generation Tool β€” Generate images using a structured JSON meta prompt format. Supports three providers with automatic fallback: OpenAI gpt-image-2 β†’ Google Gemini gemini-3.1-flash-image β†’ DeepInfra FLUX-2-pro. Agents can describe subjects, environments, camera settings, lighting, and style to produce detailed images. The generated image is displayed inline in the conversation. (#cc89733, #f7ba2b00, #42d2dabe)

  • Console UI Image Rendering β€” Inline image display for attached images, generated images, and tool results containing images. Uses textual-image renderable with base64 data URI decoding. (#f7ba2b00)

  • Optimized Image Input β€” Images attached to conversations are automatically converted to WebP format with resizing (max 2048px) and quality compression (80) for more efficient context usage. Includes caching to avoid reprocessing. (#133c16e3)

  • Kimi K2.7 Code Model β€” Added to CommandCode, CrofAI, Fireworks, and OpenCode Go providers. A coding-focused agentic model with improved long-horizon coding and 30% fewer thinking tokens compared to K2.6. (#758fc67b)

πŸ”„ Improvements

  • Reasoning Content Rework β€” Thinking blocks are now embedded directly inside assistant messages instead of separate MessageType.Thinking messages. This improves compatibility with OSS models while preserving thinking data for providers that support it (Claude, Gemini, OpenAI reasoning models). The MessageType.Thinking enum has been removed. (#d3a34336, #68b297bc)

  • File Handling Decoupled from LLM β€” File processing is now handled independently by FileHandler instead of each LLM service. The deprecated _process_file, process_file_for_message, and handle_file_command methods in provider services now return None (marked with @deprecated). (#a12f0467)

  • Enhanced Context Messages β€” Improved context prompts for better agent behavior and transfer handling. (#3dfd099d)

  • Browser Screenshot Optimization β€” Screenshots go through the same image optimization pipeline before being sent to the model. (#133c16e3)

πŸ› Fixes

  • Fixed token usage merging in LocalAgent streaming β€” now properly merges chunk_token_usage even when no tool uses are present.
  • Fixed _finalize_current_turn method signature β€” removed unused assistant_response and emit_response_completed parameters.
  • Fixed GitHub Copilot service thinking block handling for backward compatibility with old conversations.
  • Fixed TogetherAI service to output reasoning_content instead of wrapping thinking in <thinking> tags.

🧹 Housekeeping

  • Added textual-image==0.13.2 dependency to pyproject.toml
  • Added test script for image rendering
  • Updated .gitignore to exclude .agentcrew/images/ output directory