diff --git a/.gitignore b/.gitignore
index 0400e75c..a292cd68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,5 @@ terraform/.tfvars
try*
-*.db
+*-2.db
*_code*.py
\ No newline at end of file
diff --git a/auto-analyst-backend/.gitignore b/auto-analyst-backend/.gitignore
index 4e796d12..5f058853 100644
--- a/auto-analyst-backend/.gitignore
+++ b/auto-analyst-backend/.gitignore
@@ -11,8 +11,6 @@ venv/
try*
-chat_database_temp.db
-
logs/
updated_code.py
@@ -27,7 +25,7 @@ migrations/
alembic.ini
-*.db
+*-2.db
schema*.md
diff --git a/auto-analyst-backend/chat_database.db b/auto-analyst-backend/chat_database.db
new file mode 100644
index 00000000..169301de
--- /dev/null
+++ b/auto-analyst-backend/chat_database.db
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eba37409fcfd29b12a840c1a16aae4616c9a3a25edb89dc1746d23740a172607
+size 73728
diff --git a/auto-analyst-frontend/components/custom-agents/AgentListView.tsx b/auto-analyst-frontend/components/custom-agents/AgentListView.tsx
index 400368ca..73e4bb9e 100644
--- a/auto-analyst-frontend/components/custom-agents/AgentListView.tsx
+++ b/auto-analyst-frontend/components/custom-agents/AgentListView.tsx
@@ -123,8 +123,8 @@ export default function AgentListView({
-
-
+
+
Active Agents: {activeCount.active_count}/{activeCount.max_allowed}
diff --git a/auto-analyst-frontend/components/custom-agents/CustomAgentsSidebar.tsx b/auto-analyst-frontend/components/custom-agents/CustomAgentsSidebar.tsx
index 274c4c89..de1a7bba 100644
--- a/auto-analyst-frontend/components/custom-agents/CustomAgentsSidebar.tsx
+++ b/auto-analyst-frontend/components/custom-agents/CustomAgentsSidebar.tsx
@@ -120,11 +120,12 @@ export default function CustomAgentsSidebar({
// Load agents when component mounts or user changes
useEffect(() => {
+ // Load templates for all users (free users can browse but not use)
+ loadTemplateAgents()
+
// Only load custom agents if user has access
if (customAgentsAccess.hasAccess) {
loadCustomAgents()
- // Only load templates if user has paid access (templates are part of custom agents feature)
- loadTemplateAgents()
}
}, [refreshTrigger, customAgentsAccess.hasAccess, session])
@@ -562,10 +563,12 @@ export default function CustomAgentsSidebar({
{!isCollapsed && (
<>
setActiveTab(value as any)} className="flex-1 flex flex-col min-h-0">
-
+
My Agents
Templates
- Create New
+ {customAgentsAccess.hasAccess && (
+ Create New
+ )}
Details
{selectedAgent && (
@@ -575,14 +578,33 @@ export default function CustomAgentsSidebar({
-
+ {customAgentsAccess.hasAccess ? (
+
+ ) : (
+
+
+
+
Custom Agents - Premium Feature
+
+ Create and manage your own specialized AI agents with custom instructions and behaviors.
+
+
setShowPremiumUpgradeModal(true)}
+ className="bg-gradient-to-r from-[#FF7F7F] to-[#FF6666] hover:from-[#FF6666] hover:to-[#E55555] text-white"
+ >
+
+ Upgrade to Premium
+
+
+
+ )}
@@ -606,10 +628,29 @@ export default function CustomAgentsSidebar({
-
+ {customAgentsAccess.hasAccess ? (
+
+ ) : (
+
+
+
+
Create Agents - Premium Only
+
+ Upgrade to create custom agents with AI-powered instruction generation.
+
+
setShowPremiumUpgradeModal(true)}
+ className="bg-gradient-to-r from-[#FF7F7F] to-[#FF6666] hover:from-[#FF6666] hover:to-[#E55555] text-white"
+ >
+
+ Upgrade to Premium
+
+
+
+ )}
diff --git a/auto-analyst-frontend/components/custom-agents/TemplateListView.tsx b/auto-analyst-frontend/components/custom-agents/TemplateListView.tsx
index 438383e9..aab2c680 100644
--- a/auto-analyst-frontend/components/custom-agents/TemplateListView.tsx
+++ b/auto-analyst-frontend/components/custom-agents/TemplateListView.tsx
@@ -80,7 +80,11 @@ export default function TemplateListView({
Agent Templates
- Professional templates you can use immediately. {!hasAccess && 'Upgrade to Premium to use these agents.'}
+ {hasAccess ? (
+ "Professional templates you can use immediately. Clone any template to create your own custom version."
+ ) : (
+ "Browse professional templates to see what's possible. Upgrade to Premium to clone and use these agents."
+ )}
{/* Search Input */}
@@ -176,7 +180,18 @@ export default function TemplateListView({
Clone
) : (
-
+
{
+ e.stopPropagation()
+ onUpgradePrompt()
+ }}
+ >
+
+ Upgrade
+
)}