Commit Graph
36 Commits
Author SHA1 Message Date
Jan Tomášek e3bd9133ca Warn v2 users before installing incompatible plugins 2026-11-18 13:41:38 +01:00
Alessandro c641619a77 Add A0Cleaner with automatic bulk cleanup and weekly maintenance
Clean aged download caches, installer leftovers, retired browser profiles, inactive-chat screenshots, temporary captures and unused Chromium versions by default. Preserve explicit master and per-area opt-outs; keep embedding caches and custom folders behind manual selection and confirmation.

Add bounded metadata scans, identity-checked deletion, active-resource protection, persistent activity, editable native scheduler integration and actionable A0 notifications. Provide a responsive branded UI and a 256px thumbnail based on the Agent Zero logo.

Validate with 65 focused backend tests, 6 frontend tests and live desktop/mobile checks on localhost:32081. The native task cleaned 88,833 files (4.4 GB) in about 22 seconds; protected chat text, uploads, shared browser data, required Chromium and embeddings were preserved.
2026-11-13 11:24:18 +01:00
Alessandro dbf6849c84 fix(scheduler): use Scheduled Tasks in modal and navigation
Align the scheduler modal title and sidebar dropdown label with the welcome screen Scheduled Tasks card. Update the scheduler documentation and plugin index to match.

Validation: 97 focused scheduler, timezone, tool contract, and WebUI extension tests passed. Confirmed the live instance serves the updated labels.
2026-11-01 20:13:55 +01:00
Alessandro 0ef5d92c71 Make welcome blocks reorderable and extensible
Allow welcome blocks to be reordered with mouse and touch drag handles,
keyboard controls, and a move menu. Persist the order in the browser,
commit DOM order on drop, and provide accessible announcements, reduced
motion, cancellation, and per-mount cleanup.

Discover blocks from their HTML metadata so plugins can join dynamically
without a central ID list. Preserve positions while plugins are absent,
validate unique IDs, and pair adjacent half-width blocks responsively.
Keep discovery cards in their Alpine scope and leave the shared component
and extension loaders unchanged.

Place the single Show all dismissed control below every welcome block and
extension contribution, retaining left alignment and unified restoration.
Document the plugin contract and cover ordering and restoration behavior.

Validation: 80 focused Node and pytest checks passed during implementation.
Verified mouse, emulated touch, keyboard, persistence, dynamic plugin
registration, and restoration in the live WebUI at localhost:32081.
Verified the final restore-button placement and reran both restore tests.
2026-10-30 12:48:29 +01:00
linkliti 6f079d8817 feat(plugins): move the tasks interface and scheduler task endpoints into the scheduler plugin
Move the scheduler CRUD endpoints, modals, styles, sidebar tasks list, and task row into the _scheduler plugin and drop the core tasks components. The sidebar hosts plugin sections through a neutral sidebar-extensions point inside the extensions-section container instead of a tasks-specific one, so other plugins can contribute sections there too. The scheduler and datepicker styles load through the plugin page-head extension instead of core index.html preloads, and the shared flatpickr preload stays in core. Repoint the header scheduler entry at the plugin modal path and update the api and plugins DOX indexes. Pin indicators follow the relocated task row and the pin test reads it from the plugin. The chats store and core chat behavior adopt the plugin task store idiom, and the ws client surface test expects the plugin store accessor. The modals and css DOX drop their core scheduler ownership and the scheduler plugin DOX indexes its sidebar and page-head extensions. The plugin manifest becomes always enabled with a broader description so the Tasks UI stays core behavior, and the scheduler editor test follows the moved endpoint and store paths.

Validation: pytest plugins/_pin_to_top/tests/test_pins.py tests/test_sidebar_row_actions.py tests/test_webui_extension_surfaces.py tests/test_ws_client_api_surface.py tests/test_webui_startup_assets.py::test_only_the_icon_guard_stylesheet_blocks_application_paint tests/test_chat_working_animation.py tests/test_scheduler_editor.py
2026-10-21 23:37:31 +03:00
linkliti a85406de86 feat(plugins): extract behavior adjustment into _behavior_adjustment plugin
Move the behavior adjustment tool, rules prompt, merge templates, and DOX into a _behavior_adjustment plugin so durable behavior, personality, style, and response-format rules ship as a standard plugin. Rules persist in the memory subdirectory, the system-prompt extension injects them at the front, and normalization keeps merged rulesets deduplicated. The tool prompt drops the stale promptinclude guidance that no longer matches how the tool writes rules. The tool logs its message as its own `behavior_adjustment` type with an `icon://psychology Adjusting behavior` headline rendered through a BEH badge handler in the brain pink accent.

Validation: pytest tests/test_tool_action_contracts.py tests/test_responses_tools.py tests/test_behavior_tool_ui.py
2026-10-21 23:37:31 +03:00
linkliti 6f345d4ec6 feat(plugins): extract scheduler tool into _scheduler plugin
Move the scheduler tool, prompts, and DOX into a _scheduler plugin so agent-side scheduling ships as a standard plugin. Invalid task states and dedicated context values return repairable messages rendered from plugin prompt files, and a regression test covers the state response. Cron validation accepts range steps such as `1-5/2` alongside the existing patterns. The tool logs its message as its own `scheduler` type with an `icon://calendar_month Schedule: <action>` headline rendered through an SCH badge handler with slate accent styles from the waiting family shared with the hold badge. The Tasks UI and CRUD endpoints stay in core for now.

Validation: pytest tests/test_tool_action_contracts.py tests/test_scheduler_tool_ui.py
2026-10-21 19:04:33 +03:00
linkliti bb161d9878 feat(plugins): extract a2a_chat tool into _a2a_chat plugin
Move the a2a_chat tool, its FastA2A client helper, prompts, and DOX into a _a2a_chat plugin so agent-to-agent chat ships as a standard plugin. Invalid reset arguments return a repairable message, concurrent session updates merge instead of overwriting each other, and agent-facing failure and repair messages render from plugin prompt files instead of Python literals. The tool logs its message as its own `a2a_chat` type with an `icon://hub Chatting: <agent_url>` headline rendered through an A2A badge handler with lilac accent styles, joined later by the computer use badge in the remote family.

Validation: pytest tests/test_tool_action_contracts.py tests/test_a2a_chat_tool.py
2026-10-21 19:04:33 +03:00
linkliti 220c83341b feat(plugins): extract search_engine tool into _search_engine plugin
Move the search_engine tool, prompts, DOX, and its WebUI message handler into a _search_engine plugin so live web search ships as a standard plugin. Carried-over imports are trimmed, searxng failures render as formatted results, and malformed result items are skipped. The tool logs its message as its own `search_engine` type with an `icon://search Searching: <query>` headline rendered through the SRC badge handler with web access indigo accent styles shared with the browser badge. Regression tests cover the tool.

Validation: pytest tests/test_tool_action_contracts.py tests/test_search_engine_tool.py tests/test_webui_plugin_process_types.py
2026-10-21 19:04:33 +03:00
linkliti b788eac6b0 feat(plugins): extract notify_user tool into _notify_user plugin
Move the notify_user tool, its prompt, and its framework message out of core tools and prompts, and add the plugin metadata, DOX, and WebUI badge into a dedicated _notify_user plugin so agent notifications ship as a standard plugin. The tool accepts normal and high priority names mapped to the shared notification priority enum, enforces a fixed 30 second toast time instead of an agent-supplied timeout, and logs its message as its own notify_user type with an icon://notifications Notifying user headline rendered through an NTF badge handler. The tool prompt gates notifications to a false or stale user picture: a dropped, replaced, or contradicted strategy, plan, or assumption the user has seen; starts, resumes, continuing, attempts, task end, and goal completion are excluded, and delegated work reports to its parent instead of notifying. The example shows a full request envelope with the title above the message.

Validation: pytest tests/test_notify_user_tool.py tests/test_tool_action_contracts.py tests/test_prompt_catalogs.py
2026-10-21 19:04:33 +03:00
linkliti c9363cb83e feat(plugins): extract wait tool into _wait plugin
Move the wait tool, helper, prompts, and DOX into a _wait plugin so bundled pause support ships as a standard plugin. The plugin registers its own process-step handler and badge styles, the wait loop anchors to whole-second ticks so overhead cannot shift the countdown phase, and the countdown reports whole seconds. Leftovers of the move are cleaned up, and regression tests cover the arguments and execution paths.

Validation: pytest tests/test_tool_action_contracts.py tests/test_wait_tool.py
2026-10-21 19:04:33 +03:00
Alessandro ce48667e98 Add Paradee as the default voice in Local TTS
Offer Paradee Heart alongside Kokoro voices in the existing bundled TTS
plugin. Default unconfigured settings to Paradee while preserving saved
Kokoro voices, blends, speed and activation choices. Switching engines
replaces the voice selection without a separate plugin or startup dialog.

Add lazy CPU ONNX synthesis with cached, pinned model assets and split
long input without dropping phonemes. Make status and preload follow the
selected engine, and present both engines through the Local TTS UI.

Prepare Paradee dependencies in hooks.py on plugin install/update,
enabled-plugin startup and re-enable. Reuse installed packages, preserve
browser fallback on setup failure and keep requirements.txt unchanged.
Update plugin documentation and regression coverage.

Validation: 44 focused tests passed in both host and Docker framework
runtimes. Live synthesis and voice-picker switching passed on localhost:32081.
git diff --check passed. Fresh-image builds and actual missing-package
installation were not tested.
2026-10-08 21:36:02 +02:00
Alessandro 6c10ef62a1 feat(sidebar-folders): organize chats and tasks by project
Group sidebar chats and scheduler tasks into collapsible project folders,
with a flat-view option and creation-time sorting by default. Keep view,
sort, project, status, and activity controls in the sidebar menu.

Preserve nested parallel workers, integrate Pin to Top, and support new
chats in explicit projects, manual reordering, and whole-family project
moves. Keep pinned folders together and reject project changes for running
chats or scheduled tasks. Persist ordering and view preferences through
plugin-owned APIs and the existing settings contract.

Include documentation, backend and frontend regression coverage, and a
generated 256x256 WebP thumbnail under 20 KB.

Validation: 69 focused pytest checks and the Node frontend suite passed.
Live browser checks covered folder/flat views, Bots 1.2.1 compatibility,
workers, pins, sorting, and drag/drop, including 30 pinned-folder boundary
cases. The thumbnail is 17,930 bytes and serves correctly in the live UI.
2026-09-22 23:05:11 +02:00
Alessandro e86f32982a feat(pin-to-top): support project folder pins
and document index project folder pinning
2026-09-22 08:55:56 +02:00
Alessandro ed609af7e9 Revert "Add optional Right Click menus for chats, tasks, and files"
This reverts commit f4f7823b5f.
2026-09-21 19:55:41 +02:00
Alessandro f4f7823b5f Add optional Right Click menus for chats, tasks, and files
Bundle a toggleable Right Click plugin that opens the existing row action
menus at the pointer for sidebar chats/tasks and file entries in list or
icon view, preserving the three-dot buttons and shared menu styling.

Add targeted Save Chat, Load Chat, and Open in Files alongside chat pinning
and renaming. Resolve the clicked chat's saved usr/chats folder without
selecting it, falling back to usr/chats for chats without a saved folder.
Apply the requested directory when Files opens in either a modal or canvas.

Add file Download, inline two-click Delete, and directory Open while reusing
existing Editor, Browser/Desktop, and ZIP actions and remote permissions.
Preserve native menus for text inputs, file pickers, and Shift-right-click;
support keyboard navigation and dismissal. Include plugin docs, regression
coverage, and a generated 256x256 thumbnail under 20 KB.

Validation: 13 focused Agent Zero tests and 33 Launcher instance-tab tests
passed. Verified the live repo-mounted instance at localhost:32081 in the
browser and Linux Launcher dev checkout, including attached/detached views,
list/icon actions, downloads, deletion confirmation, and disable/re-enable.
2026-09-19 05:01:56 +02:00
Alessandro ab88f87b6f Fix flashing process groups during memory search
Text Editor logs rendered as process steps but were missing from raw-log
classification, allowing a following hidden utility message to hide the
whole group. Let plugins register process-step types through the existing
extension system and use those types for grouping and paging.

Preserve the generic tool-step fallback by classifying types that select
that renderer before merging logs. Document the custom handler contract
in the bundled plugin authoring skill.

Validated with 46 targeted tests and live desktop/mobile rendering checks,
including disabled plugins, fallback types, paging, and chat-switch races.
2026-09-16 16:17:37 +02:00
Alessandro 376191cf66 Unify text and code editing in the shared Editor
Route Files editing and named file creation through the always-enabled Editor, removing the legacy file-editor modal. Support UTF-8 code and text files with ACE syntax highlighting, line numbers, native source search, and existing Markdown preview behavior.

Preserve file modes and ownership across saves, rename, and Save As; keep version backups private and retain binary, size, and external-change checks. Keep More actions first in file rows, place Edit in its dropdown, and expose a plugin extension point scoped to the originating row.

Update ownership documentation and regression coverage. Verified focused tests and live desktop/mobile editing, search, file actions, and plugin menu behavior.
2026-09-08 15:02:57 +02:00
linkliti dac39537c9 Add Context Doctor plugin
Repair malformed Agent Zero tool-call JSON before default dispatch, then persist repaired compact response in WebUI log. Pin json_repair, retain targeted installed-parser patch, and expose XML suppression and log-detail settings.
2026-08-24 19:51:30 +03:00
Alessandro f8c96860c2 Add context window usage indicator
Add a bundled context-window plugin with a composer usage ring, responsive breakdown popover, token counts, percentages, and free-space reporting.

Keep accounting plugin-owned, reuse existing history token counts, cache bounded prompt fragments by content, and expose independent mobile and desktop visibility controls.
2026-08-23 06:08:41 +02:00
Alessandro 7129e287c3 Add built-in Migrate Agents plugin
Bundle the five-harness migration workflow under the _migrate_agents namespace, including preview/import safeguards, tests, documentation, WebUI assets, and the corrected upload modal behavior.
2026-08-12 14:34:15 +02:00
Alessandro 32bf5889b0 Add deterministic sparse Agent Editor backend
Add dedicated Agent Editor APIs that read layered profile state and execute explicit change plans for metadata, prompts, model presets, tool policy, skill policy, and avatars.

Keep writes sparse and user-scoped, preserve unknown files and keys, avoid the destructive legacy save path and all model calls, and cover profile lifecycle, validation, provenance, and reset behavior.
2026-08-12 14:34:15 +02:00
Alessandro eec18ad839 Enforce scoped tool access policies
Add one project/profile-aware resolver for canonical local, plugin, and MCP tool identities.

Apply it to text prompts, Responses schemas, connector stubs, local execution, MCP invocation, and delegated agents while preserving the response and vision invariants owned by the runtime.
2026-08-12 14:34:15 +02:00
frdel 93d1131ce1 Unify WebUI icons and fix message collapsing
Introduce the x-icon custom element and migrate first-party WebUI and bundled plugin markup while retaining legacy Material icon compatibility. Defer icon-font readiness until the splash-installed document is parsed so Firefox does not leave icons transparent. Centralize chat message collapse handling, avoid false Show More controls on short user messages, and align grouped-message pagination styling. Update DOX and add regression coverage for the icon and collapse behavior.
2026-07-31 13:32:41 +00:00
frdel b6be345a56 Chat rendering/pagination, Add chat-naming and pin-to-top plugins
Refactor of messages.js to support lazy rendering.
Move chat rename functionality out of core and into a new _chat_naming plugin, and add a built-in _pin_to_top plugin for sidebar pinning. The chat-naming plugin includes API handlers, prompts, helper logic for selecting user messages and budgeted Utility Model calls, a python monologue_start extension, web UI (modal, store, config, sidebar action), and comprehensive tests. Removed the old core renaming extension and deprecated prompts/tests. Also added pin-to-top plugin files (API, helpers, webui store, tests/docs) and updated various AGENTS.md docs to reflect the new plugins and lifecycle clarifications. Minor UI/js tweak: reorder speak/copy buttons in browser tool handler and add a new webui message-window.js along with related webui/store/component updates and test adjustments.
2026-07-29 08:17:50 +02:00
Alessandro 84c13dab01 Add built-in goal management plugin
Adds the always-enabled _goal plugin with per-chat goal storage, WebUI goal strip, /goal slash command, and agent-facing goal tools.

Includes command-picker integration, focused plugin tests, and the generated 256x256 thumbnail asset.
2026-07-09 17:09:08 +02:00
Alessandro 9c9a4e00ca Add built-in slash commands plugin
Introduce the _commands plugin with command storage, picker UI, bundled canonical command pack, and legacy migration into the built-in namespace.

Polish the Web UI picker behavior, hide WebUI-only-inappropriate commands from the popover, make /models always open model configuration, and add regression coverage for command CRUD, plugin discovery, migration, canonical names, hidden commands, and picker flows.
2026-07-09 16:00:30 +02:00
Alessandro f64b6490c5 Add bundled Orchestrator plugin
Promote the terminal agent work into the built-in plugins tree as _orchestrator with Orchestrator branding and the orchestrator skill.

Include adapter status APIs, settings UI, per-agent skill references, thumbnail asset, tests, and DOX coverage for the bundled plugin.
2026-07-09 13:18:44 +02:00
Alessandro 0a9e15be87 Disable What's New cards
Move active What's New content into an empty slide list so the startup modal stays quiet until new cards are added. Keep manual Open available with an empty state, and update the static test plus DOX contract for dormant periods.
2026-07-02 17:29:40 +02:00
Alessandro bcdc99e6cc Clarify optional memory plugin docs
Remove memory-plugin assumptions from root and non-plugin DOX contracts so disabled plugins are not implied as available runtime behavior.

Keep the memory plugin documented only in its owning plugin subtree and mark it optional from the parent plugin index.
2026-07-02 17:29:40 +02:00
Alessandro 2a81e37499 Add built-in What's New showcase plugin
Introduce an always-enabled _whats_new plugin that shows a version-gated feature showcase modal with bundled media assets for parallel tool calls, the redesigned MCP configuration UI, and Skills Scanner.

Track the plugin in DOX and add static coverage for the modal copy, assets, manifest, and startup trigger.
2026-06-19 17:26:29 +02:00
frdel c576f67469 Merge branch 'ready' of https://github.com/agent0ai/agent-zero into ready 2026-06-08 12:41:57 +02:00
frdel e138e33ca9 Add file-level DOX docs & update AGENTS indexes
Add comprehensive file-level DOX documentation across the repo and update directory AGENTS.md indexes. Many new `*.py.dox.md` files were added under api, helpers, tools, plugins, extensions, webui, and other dirs to document endpoint purpose, ownership, runtime contracts, work guidance, and verification. Several AGENTS.md files were created or updated (agents profiles, api, docker, extensions, helpers, plugins, skills, webui components, etc.) to list child DOX files and clarify documentation/work guidance. Also add example and bundled profile DOX files (agent0, default, developer, hacker, researcher) and minor updates to helpers/dirty_json.py and its tests. These changes improve on-disk documentation coverage and establish the convention that each direct runtime file should have a matching `*.dox.md` describing its contracts and verification steps.
2026-06-08 12:41:53 +02:00
Alessandro aff70f19bb Page connector history replay
Bound _a0_connector context snapshots and live stream reads so long chats are replayed in small WebSocket frames instead of one oversized payload.

Replay remaining historical entries as connector_context_snapshot pages before switching to live connector_context_event streaming, and preserve LogOutput.end cursor semantics throughout.
2026-06-03 11:43:29 +02:00
Alessandro d871b2e0d7 Document host browser tab reuse workflow
Update the Browser tool prompt and plugin DOX so agents list and activate existing tabs by URL or title before opening new host-browser tabs.
2026-06-03 03:45:08 +02:00
frdel 175baa49db Add AGENTS.md DOX files and migrate docs
Introduce DOX (AGENTS.md) contracts across the repository to formalize ownership and local work contracts: adds .github/AGENTS.md plus AGENTS.md files for agents, api, conf, docker, docs, extensions, helpers, knowledge, lib, plugins, prompts, scripts, skills, tests, tools, usr, webui (and several subfolders). Update root AGENTS.md (content and last-updated date) to include DOX framework guidance and a child DOX index. Update .gitignore to allow usr/ and usr/plugins AGENTS.md files. Remove legacy deep-dive files under docs/agents (banners, components, modals, plugins) and migrate frontend/plugin references to webui/ and plugins/ DOX locations. Also adjust plugins/README.md and several skills/*/SKILL.md files to align with the new DOX layout.
2026-06-01 13:55:07 +02:00