agent-zero/plugins/_context_doctor
linkliti 51a02bd4f5 Context Doctor polish
Improve code quality of context doctor. Add handling of Reasoning kvps. Bump json_repair version
2026-08-26 13:14:12 +00:00
..
extensions/python Context Doctor polish 2026-08-26 13:14:12 +00:00
helpers Context Doctor polish 2026-08-26 13:14:12 +00:00
tests Context Doctor polish 2026-08-26 13:14:12 +00:00
webui Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
AGENTS.md Context Doctor polish 2026-08-26 13:14:12 +00: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 Context Doctor polish 2026-08-26 13:14:12 +00: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 repaired tool calls as compact JSON; log kvps retain streamed reasoning and add transformed fields.
  • Optionally replaces XML-like output with {} in cases where model uses native XML tool calls.