agent-zero/extensions/python
Alessandro 8f184abede Consolidate Responses prompt bookkeeping outside Agent
Keep per-build replay state and model-call adaptation in the existing
Responses helpers instead of adding transport fields to LoopData or a
history-conversion method to Agent. Prompt section owners identify sections;
Responses owns alternate templates, while MCP supplies filtered server context.
Remove the persisted replay counter used only for diagnostics.

Retain public history compatibility, canonical masking and shared stream
normalization at their existing boundaries. Across the remediation series,
agent.py additions decrease from 61 to 24 lines without introducing new hooks.

Validation: 1633 root tests passed, one skipped; framework prepared-input
probe passed. Live Codex and Venice presets completed terminal checks, with
56% cache hit shown in the Codex Context window viewer.
2026-09-06 23:08:10 +02:00
..
_functions Preserve native Responses history within prepared prompts 2026-09-06 22:08:21 +02:00
agent_init Document and verify greeting history and log ownership 2026-09-06 20:38:35 +02:00
banners Fix unsecured connection settings link 2026-06-23 18:47:10 +02:00
before_main_llm_call Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
error_format Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
hist_add_before Clarify optional memory plugin docs 2026-07-02 17:29:40 +02:00
hist_add_tool_result Fix parallel worker chat log orphans 2026-06-19 08:11:38 +02:00
job_loop Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
message_loop_end Fix Responses state after history compaction 2026-07-07 16:59:49 +02:00
message_loop_prompts_after Use 4-space indented tree in workdir EXTRAS 2026-09-03 03:37:59 +03:00
message_loop_prompts_before Fix Responses state after history compaction 2026-07-07 16:59:49 +02:00
message_loop_result Preserve native calls in assistant history and repeat checks 2026-09-06 20:10:46 +02:00
message_loop_start Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
monologue_end Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
monologue_start Chat rendering/pagination, Add chat-naming and pin-to-top plugins 2026-07-29 08:17:50 +02:00
process_chain_end Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
reasoning_stream Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
reasoning_stream_chunk Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
reasoning_stream_end Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
response_stream Stream native tool arguments through the existing live display 2026-09-06 20:19:45 +02:00
response_stream_chunk Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
response_stream_end Dedupe response-tool prompt clause and document reasoning revert intent 2026-09-04 15:12:39 +03:00
startup_migration Preserve rollback stash identity during self-update 2026-09-06 18:42:05 +02:00
system_prompt Consolidate Responses prompt bookkeeping outside Agent 2026-09-06 23:08:10 +02:00
tool_execute_after Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
tool_execute_before Add inspectable parallel tool calls 2026-06-12 15:23:14 +02:00
user_message_ui Polish the update notification action 2026-07-12 17:10:47 +02:00
util_model_call_before Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
webui_ws_connect Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
webui_ws_disconnect Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
webui_ws_event Add file-level DOX docs & update AGENTS indexes 2026-06-08 12:41:53 +02:00
.gitkeep BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
AGENTS.md Add result extension point and migrate repeat handling 2026-08-24 19:51:30 +03:00