From 6f091fba0301f9f5ade13708fc672fe2f22bc4f0 Mon Sep 17 00:00:00 2001 From: Amp Date: Fri, 30 Oct 2026 15:08:28 +0000 Subject: [PATCH 1/2] Show a full-screen, 5-second coding-agent notice to everyone Replace the dismissible dashboard banner with a full-screen notice that says coding agents are not allowed and self-coded general agents are fine. The dismiss button unlocks after 5 seconds. A migration clears existing dismissals so current users see it once more. Amp-Thread-ID: https://ampcode.com/threads/T-01a18d1d-426f-7485-a132-0ecb450faba3 Co-authored-by: Devansh Awatramani --- .../postgres/0014_show_agent_notice_again.sql | 6 ++ src/routes/dashboard/+page.svelte | 62 ++++++++++++++----- 2 files changed, 51 insertions(+), 17 deletions(-) create mode 100644 migrations/postgres/0014_show_agent_notice_again.sql diff --git a/migrations/postgres/0014_show_agent_notice_again.sql b/migrations/postgres/0014_show_agent_notice_again.sql new file mode 100644 index 00000000..64a54bc0 --- /dev/null +++ b/migrations/postgres/0014_show_agent_notice_again.sql @@ -0,0 +1,6 @@ +-- migrate:up +-- The agent notice is now a full-screen one; show it to everyone again. +UPDATE users SET agent_banner_dismissed_at = NULL; + +-- migrate:down +-- A dismissal cannot be restored. diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index e607dd62..cff5bf1c 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -4,7 +4,6 @@ import PulseIcon from "remixicon-svelte/icons/pulse-line"; import ArrowRightIcon from "remixicon-svelte/icons/arrow-right-s-line"; import AlertIcon from "remixicon-svelte/icons/alert-line"; - import CloseIcon from "remixicon-svelte/icons/close-line"; import ExternalIcon from "remixicon-svelte/icons/external-link-line"; import { Button } from "#lib/components/ui/button/index.ts"; import CodeBlock from "#lib/components/code-block.svelte"; @@ -18,7 +17,19 @@ let agentBannerDismissed = $state(false); const showAgentBanner = $derived(!user.agentBannerDismissed && !agentBannerDismissed); + const AGENT_NOTICE_SECONDS = 5; + let secondsLeft = $state(AGENT_NOTICE_SECONDS); + $effect(() => { + if (!showAgentBanner) return; + const timer = setInterval(() => { + secondsLeft -= 1; + if (secondsLeft <= 0) clearInterval(timer); + }, 1000); + return () => clearInterval(timer); + }); + const dismissAgentBanner = async () => { + if (secondsLeft > 0) return; agentBannerDismissed = true; await fetch("/api/dismiss-agent-banner", { method: "POST" }); }; @@ -57,22 +68,6 @@ {/if} - {#if showAgentBanner} -
- -
-

Not for AI coding agents

-

- Hack Club AI cannot be used with AI coding agents like OpenClaw, Claude Code, Cursor, Cline, or any other coding agent. - Requests from these tools will be blocked. Join #hackclub-ai on the Hack Club Slack for updates. -

-
- -
- {/if} -

Usage

@@ -128,3 +123,36 @@
+ +{#if showAgentBanner} +
+
+ +

+ AI coding agents are NOT allowed +

+
+

+ Do not use Hack Club AI with coding agents like OpenClaw, Claude Code, Cursor, Cline, Codex, OpenCode or any + other coding agent. Requests from these tools are blocked, and your account can be banned. +

+

+ General agents are fine, as long as you code them yourself: your own bot, your own tools, your own loop. + Just don't point a ready-made coding agent at this API. +

+

+ Questions? Join #hackclub-ai on the Hack Club Slack. +

+
+ +
+
+{/if} From c1c126be88308d5a17830ea43e4e57441453b720 Mon Sep 17 00:00:00 2001 From: Devansh Awatramani <80251412+Devansh-awat@users.noreply.github.com> Date: Sat, 31 Oct 2026 18:32:21 +0530 Subject: [PATCH 2/2] Restore CloseIcon import dropped in merge Claude-Session: https://claude.ai/code/session_01KgPoTjAV2zH8udL6HL1GUk --- src/routes/dashboard/+page.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index d2c1773f..d9ecad15 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -4,6 +4,7 @@ import PulseIcon from "remixicon-svelte/icons/pulse-line"; import ArrowRightIcon from "remixicon-svelte/icons/arrow-right-s-line"; import AlertIcon from "remixicon-svelte/icons/alert-line"; + import CloseIcon from "remixicon-svelte/icons/close-line"; import ExternalIcon from "remixicon-svelte/icons/external-link-line"; import { Button } from "#lib/components/ui/button/index.ts"; import CodeBlock from "#lib/components/code-block.svelte";