Context
Follow-up to #179 (Level Up (May)), which removes the Fix Agent UI but leaves backend code in place as dead code. This epic tracks the full backend deletion once the UI removal has baked for a release and no regressions surface.
Goal
Delete the now-unused Fix Agent backend code, routes, prompts, and tests.
Prerequisites
Work
Acceptance
- No reference to
fix_agent, FixAgent, FixRequest, or get_fix_agent_single_prompt remains anywhere in the codebase
pytest backend/tests/ passes
- Deployed app works normally; no 404/500 regressions from removed endpoint
- Docs have no broken links
Files (to delete or modify)
backend/services/fix_agent.py (delete)
backend/prompts.py
backend/models.py
backend/routers/spaces.py
backend/tests/test_fix_agent_prompt.py (delete)
backend/tests/test_fix_agent_paths.py (delete)
docs/06-fix-agent.md (delete if still present)
docs/appendices/A-api-reference.md
CLAUDE.md
Context
Follow-up to #179 (Level Up (May)), which removes the Fix Agent UI but leaves backend code in place as dead code. This epic tracks the full backend deletion once the UI removal has baked for a release and no regressions surface.
Goal
Delete the now-unused Fix Agent backend code, routes, prompts, and tests.
Prerequisites
POST /api/spaces/{id}/fixidentified (the frontend stopped calling it; confirm via access logs or a search through external integrations)Work
backend/services/fix_agent.pyget_fix_agent_single_prompt()frombackend/prompts.pyFixRequestfrombackend/models.pyPOST /api/spaces/{id}/fixendpoint frombackend/routers/spaces.pybackend/tests/test_fix_agent_prompt.pybackend/tests/test_fix_agent_paths.pydocs/appendices/A-api-reference.md— remove the deprecated endpoint row entirelydocs/06-fix-agent.mdif kept-with-banner during Epic: Consolidate Fix-Path into Auto-Optimize #179Acceptance
fix_agent,FixAgent,FixRequest, orget_fix_agent_single_promptremains anywhere in the codebasepytest backend/tests/passesFiles (to delete or modify)
backend/services/fix_agent.py(delete)backend/prompts.pybackend/models.pybackend/routers/spaces.pybackend/tests/test_fix_agent_prompt.py(delete)backend/tests/test_fix_agent_paths.py(delete)docs/06-fix-agent.md(delete if still present)docs/appendices/A-api-reference.mdCLAUDE.md