v1.7

agent0ai/agent-zerov1.7Apr 3, 2026by github-actions[bot]

AI Summary

A comprehensive overhaul of prompt engineering and model guidance, alongside the implementation of early tool dispatch via streaming JSON detection and new plugin discovery cards.

Key Highlights

  • Compact default prompts under 3,000 tokens with restored critical guardrails
  • Early tool dispatch as soon as the first closed JSON object is detected
  • New discovery plugin adding feature cards for integrations on the welcome screen

New Features

  • Optimized prompts with strict JSON guidance and concise response styles
  • Streaming JSON detection for faster tool response times
  • Plugin discovery cards integrated into the welcome/onboarding flow

Full Release Notes

## Agent Zero – Release Notes

### Prompt & Model Guidance Overhaul

- Adopted compact default prompts across the core stack, plugin-owned prompts, and the agent0 overlay — default assembled prompt now sits under ~3 000 tokens while retaining all key guardrails
- Restored essential tool-call JSON examples, communication/solving/tips guidance, and the agent0 profile after earlier over-aggressive trimming caused regressions with frontier models
- Added strict JSON guidance to steer models toward treating the closing brace as an end-of-sequence signal, and defaulted response style to concise with expansion on demand
- Removed the obsolete `a0_small` profile; tool-call knowledge reference renamed to a generic framework file
- Added a regression test that verifies the assembled default prompt stays within the token budget and retains critical guardrails

### Early Tool Dispatch via Streaming JSON Detection

- Tool calls are now dispatched as soon as the first fully closed top-level JSON object is detected in the model stream — the stream is stopped at that point rather than waiting for all remaining tokens
- `DirtyJson` parser gains a `completed` flag that signals when the root structure is explicitly closed (not merely at end-of-file), enabling safe early extraction
- Extraction is restricted to brace-delimited objects, matching the shape of all tool calls

### Plugin Discovery Cards on Welcome Screen & Onboarding

- A new always-enabled `_discovery` plugin adds a discovery surface to the welcome/dashboard screen, surfacing the Plugin Hub and integrations (Telegram, Email, WhatsApp) via feature cards
- Cards include persistent dismiss/restore state and CTA routing to the relevant plugin config screens
- Discovery cards are integrated into the final onboarding step so new users see integration opportunities immediately after setup
- Cards are hidden while the missing-API-key onboarding banner is visible to reduce noise during initial configuration
- Implemented entirely through the existing WebUI extension mechanism with no core welcome-screen changes

### Bug Fixes

- Fixed a crash during config retrieval when a plugin directory cannot be found — `get_plugin_config` and `get_default_plugin_config` now return early instead of passing a `None` path to the filesystem layer