agent-zero/plugins/_context_doctor
Alessandro dcf5c1500e Preserve native reasoning as thoughts
Promote native reasoning summaries after response streaming completes and keep the normalized thoughts through Context Doctor log refreshes. Add regression coverage for both lifecycle boundaries.
2026-08-27 08:54:47 +02:00
..
extensions/python Context Doctor polish 2026-08-26 13:14:12 +00:00
helpers Preserve native reasoning as thoughts 2026-08-27 08:54:47 +02:00
tests Preserve native reasoning as thoughts 2026-08-27 08:54:47 +02:00
webui Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
AGENTS.md Preserve native reasoning as thoughts 2026-08-27 08:54:47 +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 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.