SurfSense/surfsense_backend/app/agents
CREDO23 9493519c61 refactor(agents): colocate 8 main-agent-only middleware as per-concept folders
Each main-agent-only middleware now lives in its own folder under
main_agent/middleware/<concept>/ with builder.py (flag-gated construction)
+ middleware.py (the impl), re-exported via __init__.py. This kills the
cross-folder hop into agents/shared/middleware and keeps each middleware's
two responsibilities (build vs behavior) as colocated siblings.

Moved (impl from shared/middleware, builder from main_agent/middleware):
action_log, anonymous_document, context_editing, doom_loop, knowledge_tree,
noop_injection, otel_span, tool_call_repair.

Impls moved verbatim (git rename, no body edits) so behavior is unchanged.
Builders now import from the local .middleware sibling. stack.py import
paths updated for the 3 renamed folders; shared middleware barrel trimmed;
tests repointed (imports + patch targets).
2026-06-05 11:42:58 +02:00
..
anonymous_chat refactor(agents): promote anonymous_agent to its own anonymous_chat/ package (slice 8) 2026-06-04 13:25:23 +02:00
multi_agent_chat refactor(agents): colocate 8 main-agent-only middleware as per-concept folders 2026-06-05 11:42:58 +02:00
podcaster cloud: added openrouter integration with global configs 2026-04-15 23:46:29 -07:00
shared refactor(agents): colocate 8 main-agent-only middleware as per-concept folders 2026-06-05 11:42:58 +02:00
video_presentation cloud: added openrouter integration with global configs 2026-04-15 23:46:29 -07:00
__init__.py feat: Added chat_history to researcher agent 2025-05-10 20:06:19 -07:00