mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 09:28:56 +00:00
Open Easy mode with only the main instruction prompt and fetch the remaining prompt files on first Advanced entry. Preserve unsaved edits, checkpoints, project scope changes and ACE undo history. Keep full loads as the API default for existing clients. Inventory prompt files once per root per request and render capability lists and tool actions only when expanded, avoiding work while those views are closed. Validation: 325 focused regression tests pass in the Docker framework runtime. Live browser and HTTP checks cover Global/project saves, deferred loading, mode switching, unsaved edits, action controls, ACE undo, and failed-load retry. The full suite reports 2,939 passed and 48 skipped; all 14 failures also reproduce against the unchanged HEAD before this change.
46 lines
2.6 KiB
Markdown
46 lines
2.6 KiB
Markdown
# Agent Editor
|
|
|
|
Agent Editor provides the deterministic Easy modal and Advanced workspace for
|
|
Agent Zero profiles. It reads the existing layered profile architecture and
|
|
writes only sparse overrides in the selected Global or project profile layer.
|
|
|
|
The editor never invokes a model. Tool and skill controls are backed by the
|
|
central runtime policy owners, and every save is previewed as exact file writes
|
|
and deletions before the same validated plan is applied.
|
|
|
|
Easy and Advanced use the same segmented capability policy: On pins an item
|
|
allowed, Off pins it blocked, and Default follows the profile's Tools, MCPs, or
|
|
Skills default switch. Easy places each chooser below its default switch;
|
|
Advanced gives Tools, MCPs, and Skills separate searchable sections and adds
|
|
retained unavailable entries plus ACE-based prompt editing.
|
|
|
|
Easy loads the main instructions first; the remaining prompt files load when
|
|
you first open Advanced. Switching modes keeps unsaved edits and the prompt
|
|
editor's undo history. Capability lists render their controls when expanded.
|
|
|
|
Bundled tools with multiple operations appear once in the list. Expand a tool
|
|
to choose individual actions, such as Text Editor's Read / Write / Patch,
|
|
with their available descriptions below the “Individual tool actions” subtitle.
|
|
The tool's On / Default / Off controls apply to all its actions. A short summary
|
|
appears when some actions are off; fully enabled tools need no summary.
|
|
Existing whole-tool choices appear as matching action choices. Opening a profile
|
|
does not rewrite its policy; only an explicit permission edit saves those choices.
|
|
|
|
Main prompt sections such as Tips open ready to edit under readable titles,
|
|
with their customization status beside the title. A compact Saves to row shows
|
|
the destination and copy action; variable hints appear below the editor.
|
|
Save preserves Markdown and its template placeholders exactly; the runtime
|
|
continues to supply dynamic values when the agent runs.
|
|
|
|
Global agents and customizations live under `usr/agents/<profile-id>` and apply
|
|
across projects. Project-scoped agents and customizations live under
|
|
`usr/projects/<project>/.a0proj/agents/<profile-id>`, inherit the Global layer,
|
|
and can be removed without changing it.
|
|
|
|
Manage agents can duplicate the effective profile into the selected scope and
|
|
toggle whether each profile is available there. Project availability reuses
|
|
`.a0proj/agents.json`; Global availability is a sparse profile override.
|
|
The selected scope must always keep at least one profile available.
|
|
The bundled `default` profile remains the internal inheritance baseline and is
|
|
not offered as a selectable or editable profile.
|