agent-zero/plugins/_context_doctor
Alessandro 519f2c2a62 Install Context Doctor dependency after self-update
Read the pinned json_repair requirement from the root requirements file and install it into the active framework interpreter when the package is missing or stale.

Invoke the plugin hook during startup migration so self-updated installations converge without rebuilding the image.

Add focused coverage for version checks, install command construction, and startup dispatch.
2026-08-25 23:40:31 +02:00
..
extensions/python Install Context Doctor dependency after self-update 2026-08-25 23:40:31 +02:00
helpers Pass through JSON objects with thoughts or headline 2026-08-25 09:26:04 +00:00
tests Install Context Doctor dependency after self-update 2026-08-25 23:40:31 +02:00
webui Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
AGENTS.md Install Context Doctor dependency after self-update 2026-08-25 23:40:31 +02:00
default_config.yaml Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
hooks.py Install Context Doctor dependency after self-update 2026-08-25 23:40:31 +02:00
plugin.yaml Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
README.md Add Context Doctor plugin 2026-08-24 19:51:30 +03:00

Context Doctor

Repairs model tool call JSON before sending it to history and tool processing.

Behavior

  • Uses json_repair after native parsing has completed.
  • Accepts only complete Agent Zero tool calls (tool_name and object tool_args).
  • Stores and displays repaired tool calls as compact JSON.
  • Optionally replaces XML-like output with {} in cases where model uses native XML tool calls.