agent-zero/helpers
Alessandro daf95ec3ab Normalize tool contracts and slim prompt surface
Standardize multi-action tools around tool_args.action while keeping parser compatibility for older tool/args, tool_name:action, and method-shaped requests. This keeps new prompts clean without breaking agents that learned the previous dialect.

Move A0 connector remote execution/file tools into stable standard prompts, make remote targeting independent of the active chat context, and skill-gate beta computer-use remote so it no longer weighs down the always-on tool list.

Align text editor, scheduler, skills, office artifact, memory, notify, and browser prompts/tools around the canonical action contract. Add scheduler update/timezone handling, skills_tool read_file, text editor patch coverage, and fixes for memory_forget, behaviour_adjustment, and code execution progress warnings.

Reduce default prompt pressure by compacting browser and scheduler prompts into skill-backed manifests, shortening skill catalog descriptions, and pruning noisy framework knowledge. Remove obsolete connector prompt stubs and root tool-call knowledge examples.

Tests: conda run -n a0 pytest tests/test_a0_connector_prompt_gating.py tests/test_tool_action_contracts.py tests/test_task_scheduler_timezone.py tests/test_text_editor_context_patch.py tests/test_tool_request_normalization.py tests/test_office_document_store.py::test_odf_is_advertised_and_docx_remains_explicit_compatibility tests/test_office_document_store.py::test_document_artifact_accepts_method_alias_for_ods_create tests/test_skills_runtime.py tests/test_default_prompt_budget.py::test_a0_small_profile_removed_and_prompt_text_generic -q
2026-05-09 21:54:43 +02:00
..
api.py enable api caching 2026-03-30 17:15:50 +02:00
attachment_manager.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
backup.py refactor: replace PathSpec "gitignore" pattern type with "gitwildmatch" 2026-03-22 21:50:13 +01:00
browser.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
cache.py refactor: add file system watchdog support for API handlers, extensions, and plugins 2026-03-18 21:07:33 +01:00
call_llm.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
cloudflare_tunnel._py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
context.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
context_utils.py refactor: Backend core rewrite - WsHandler + WsManager + handler migration 2026-03-26 00:58:01 -07:00
crypto.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
defer.py Ignore late deferred future completion 2026-05-09 17:36:19 +02:00
dirty_json.py stop tool dispatch at first completed json object 2026-04-03 16:56:21 +02:00
docker.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
document_query.py Fix SSRF in document_query remote fetching (CVE-2026-4308) 2026-04-12 02:00:01 +02:00
dotenv.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
duckduckgo_search.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
email_client.py refactor - plugin names and builtin plugins 2026-03-10 22:20:53 +01:00
errors.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
extension.py Move subagents import to function scope to avoid circular import 2026-03-26 12:39:08 +01:00
extract_tools.py Normalize tool contracts and slim prompt surface 2026-05-09 21:54:43 +02:00
faiss_monkey_patch.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
fasta2a_client.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
fasta2a_server.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
file_browser.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
file_tree.py refactor: replace PathSpec "gitignore" pattern type with "gitwildmatch" 2026-03-22 21:50:13 +01:00
files.py refactor: consolidate module loading utilities and add plugin lifecycle improvements 2026-03-23 21:13:25 +01:00
functions.py refactor: consolidate module loading utilities and add plugin lifecycle improvements 2026-03-23 21:13:25 +01:00
git.py Add latest selector option to self-update with branch head resolution for testing/development and newest tag resolution for main 2026-03-26 10:44:12 +01:00
guids.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
history.py refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
images.py Store vision and computer-use images as path refs 2026-04-21 18:18:59 +02:00
integration_commands.py integrations: add native chat controls and email config presets 2026-04-11 18:49:13 +02:00
job_loop.py feat: Add email integration plugin with IMAP/Exchange polling and SMTP reply 2026-03-15 10:59:48 +08:00
kokoro_tts.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
kvp.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
localization.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
log.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
login.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
mcp_handler.py refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
mcp_server.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_queue.py refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
messages.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
migration.py refactor: comprehensive UI server restructuring and self-update enhancements 2026-03-31 15:20:57 +02:00
modules.py refactor: consolidate module loading utilities and add plugin lifecycle improvements 2026-03-23 21:13:25 +01:00
network.py fix: preserve safe remote fetch compatibility for public sites 2026-04-12 02:08:13 +02:00
notification.py Add tool request validation and plugin change notifications 2026-03-10 13:08:48 +01:00
performance.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
perplexity_search.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
persist_chat.py Make agent profiles context scoped 2026-04-26 22:27:35 +02:00
plugins.py fix: always check project-level plugin config as fallback (fixes #1548) 2026-04-25 09:14:13 +08:00
print_catch.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
print_style.py Sanitize print logs; refactor popular plugin logic 2026-03-30 11:50:59 +02:00
process.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
projects.py Add project-scoped LLM presets 2026-04-21 18:18:59 +02:00
providers.py Remove redundant provider reload call from plugin change handler 2026-03-12 07:31:45 +01:00
rate_limiter.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
rfc.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
rfc_exchange.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
rfc_files.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
runtime.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
searxng.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
secrets.py feat(secrets): add @extensible decorator to secrets factory functions 2026-03-12 15:30:50 +00:00
security.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
self_update.py refactor: comprehensive UI server restructuring and self-update enhancements 2026-03-31 15:20:57 +02:00
server_startup.py refactor: comprehensive UI server restructuring and self-update enhancements 2026-03-31 15:20:57 +02:00
settings.py Make agent profiles context scoped 2026-04-26 22:27:35 +02:00
skills.py Normalize tool contracts and slim prompt surface 2026-05-09 21:54:43 +02:00
skills_cli.py add a0-setup-cli Skill and restore lexical trigger matching 2026-04-11 18:03:05 +02:00
skills_import.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
state_monitor.py refactor: extract constants, deduplicate ack pattern 2026-03-28 02:51:57 -07:00
state_monitor_integration.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
state_snapshot.py feat: add agent profile switcher to chat composer 2026-04-22 14:25:18 +02:00
strings.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
subagents.py refactor: improve caching system and optimize extension/plugin path resolution 2026-03-18 12:40:33 +01:00
system_packages.py Serialize runtime package preparation 2026-05-07 03:14:12 +02:00
task_scheduler.py Normalize tool contracts and slim prompt surface 2026-05-09 21:54:43 +02:00
timed_input.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
tokens.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
tool.py refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
tunnel_manager.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
ui_server.py refactor: comprehensive UI server restructuring and self-update enhancements 2026-03-31 15:20:57 +02:00
update_check.py Revert update check API endpoint from tapi.agent-zero.ai back to api.agent-zero.ai 2026-03-25 18:53:38 +01:00
vector_db.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
virtual_desktop.py Move Linux Desktop runtime into _desktop 2026-05-07 00:14:54 +02:00
virtual_desktop_routes.py Move Linux Desktop runtime into _desktop 2026-05-07 00:14:54 +02:00
wait.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
watchdog.py fix: create watch directory if it doesn't exist instead of raising FileNotFoundError 2026-03-19 20:52:35 +01:00
whisper.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
ws.py accept Socket.IO disconnect reason 2026-04-24 14:14:08 +02:00
ws_manager.py refactor: extract constants, deduplicate ack pattern 2026-03-28 02:51:57 -07:00
yaml.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00