mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-05 01:48:44 +00:00
Add matching catalog artwork for A2A Chat, Behavior Adjustment, Notify User, Scheduler, Search Engine, and Wait, completing thumbnail coverage for all 47 bundled plugins. Save each JPEG at 256x256 and below 20,000 bytes, and document the asset ownership in each plugin's DOX. Validation: checked image dimensions, encoding, and file sizes; verified catalog discovery, HTTP delivery, and live WebUI rendering.
36 lines
1.9 KiB
Markdown
36 lines
1.9 KiB
Markdown
# Behavior Adjustment Plugin DOX
|
||
|
||
## Purpose
|
||
|
||
- Own the `behavior_adjustment` tool and the behavior rules system-prompt injection.
|
||
|
||
## Ownership
|
||
|
||
- `tools/behavior_adjustment.py` owns ruleset merge, normalization, and persistence.
|
||
- `tools/behaviour_adjustment.py` re-exports the same implementation for legacy calls; shared tool policy checks both spellings and the old memory-plugin ID.
|
||
- The tool logs its message as type `behavior_adjustment` with an `icon://psychology Adjusting behavior` headline; `extensions/webui/get_message_handler/` owns the `BEH` badge presentation and `extensions/webui/get_process_step_types/` registers the type.
|
||
- `extensions/python/system_prompt/_20_behavior_prompt.py` owns rules injection at the front of the system prompt.
|
||
- `prompts/` owns the tool prompt, default ruleset, merge templates, update confirmation, and the rules system fragment.
|
||
- `plugin.yaml` and `README.md` own metadata and docs.
|
||
- `webui/thumbnail.jpg` owns the 256×256 plugin catalog artwork, kept below 20 KB.
|
||
|
||
## Local Contracts
|
||
|
||
- Rules persist at `behavior.md` inside the memory subdirectory resolved by `plugins._memory.helpers.memory`; the cross-plugin import is intentional and matches the bundled cross-plugin helper precedent.
|
||
- `normalize_ruleset` strips code fences and `!!!` markers, splits glued headings, dedupes structural lines case-insensitively, and collapses blank runs.
|
||
- The system-prompt extension inserts at index 0; extension ordering by filename keeps this plugin's `_20_` file stable.
|
||
|
||
## Work Guidance
|
||
|
||
- Keep behavioral rules durable, merged, and free of duplicates; the utility model owns merging, the tool owns persistence.
|
||
- Coordinate prompt changes between the tool prompt and the merge templates.
|
||
- Rules files are plugin-owned state; never edit them by hand outside the tool flow.
|
||
|
||
## Verification
|
||
|
||
- Import the tool in the framework runtime and run the behavior contract tests after changes.
|
||
|
||
## Child DOX Index
|
||
|
||
No child DOX files.
|