quantum-ai-v3/agents
Claude 33dcdc23ba 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system
MAJOR ARCHITECTURAL CHANGES:
- Remove Agent/AgentCategory database models entirely
- Update AgentExecution/ChatSession to use agent_slug instead of foreign keys
- Eliminate hybrid complexity and AgentCompat workaround classes
- Enhanced AgentFileService with production-ready caching

CORE IMPROVEMENTS:
- Pure file-based architecture eliminates database sync complexity
- Enhanced caching: 5min in dev, 1hr in production, graceful fallback
- Fixed validation logic for 0.0 price fields
- Added database indexes for optimal query performance
- Updated admin interface to work with new slug-based fields

TECHNICAL BENEFITS:
- Simplified agent execution without database record creation
- Eliminated get_or_create_agent_db_record() complexity
- Streamlined imports across core and agents apps
- Better error handling and cache availability detection

FILE CHANGES:
- agents/models.py: Removed Agent/AgentCategory models, updated execution models
- agents/services.py: Enhanced caching, improved validation, removed DB sync
- agents/views.py: Updated execute_agent to use direct agent_data
- agents/admin.py: Updated for slug-based fields
- core/views.py: Updated to use AgentFileService instead of Agent model

All 8 agents remain fully operational with significantly reduced codebase complexity.
Migration applied successfully with proper defaults for existing data.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-14 09:55:45 +05:30
..
configs Add SWOT Analysis Expert + streamline agent creation process 2025-08-07 08:49:53 +05:30
management 🧹 Clean up obsolete code after file-based agent system migration 2025-08-14 09:36:10 +05:30
migrations 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system 2025-08-14 09:55:45 +05:30
templates/agents 🎨 Fix marketplace button consistency and update documentation 2025-08-07 08:57:06 +05:30
__init__.py 🚀 Complete agents app implementation with social ads frontend 2025-07-31 19:05:09 +05:30
admin.py 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system 2025-08-14 09:55:45 +05:30
apps.py 🚀 Complete agents app implementation with social ads frontend 2025-07-31 19:05:09 +05:30
models.py 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system 2025-08-14 09:55:45 +05:30
serializers.py 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system 2025-08-14 09:55:45 +05:30
services.py 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system 2025-08-14 09:55:45 +05:30
tests.py 🚀 Complete agents app implementation with social ads frontend 2025-07-31 19:05:09 +05:30
urls.py 🧹 Clean up obsolete code after file-based agent system migration 2025-08-14 09:36:10 +05:30
views.py 🏗️ Phase 1: Complete architecture simplification - pure file-based agent system 2025-08-14 09:55:45 +05:30