mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-10 01:18:29 +00:00
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. |
||
|---|---|---|
| .. | ||
| extensions | ||
| helpers | ||
| prompts | ||
| tools | ||
| webui | ||
| AGENTS.md | ||
| default_config.yaml | ||
| plugin.yaml | ||
| README.md | ||
Text Editor
Provide an LLM-friendly file editing tool for reading, writing, and patching text files.
What It Does
This plugin exposes a native text editing tool that agents can use to inspect files, write complete contents, and apply validated patch operations while tracking file freshness between reads and edits.
Main Behavior
- Read
- Reads whole files or line ranges with token-aware limits.
- Records file metadata so later patch operations can detect stale edits.
- Write
- Writes full file contents and then re-reads the resulting file for confirmation.
- Patch
- Validates edit structures before applying them.
- Rejects edits if the file changed since it was last observed.
- Reads back the affected patch region after applying changes.
- Extension hooks
- Exposes before and after extension points for read, write, and patch operations.
Key Files
- Tool
tools/text_editor.pyimplements method dispatch, stale-file checks, patching flow, and prompt responses.
- Helpers
helpers/file_ops.pyprovides file info, read/write helpers, edit validation, and patch application.
- Configuration
default_config.yamldefines read limits and token budgets.
- Prompts
prompts/contains the agent-facing success and error messages.
Configuration Scope
- Settings section:
agent - Per-project config:
true - Per-agent config:
true
Plugin Metadata
- Name:
_text_editor - Title:
Text Editor - Description: Native tool to read, write, and patch text files in an LLM-friendly way.