Tonight, the controls. Every night stands on its own.
How you do anything is how you do everything.

AI ExchangeBuilding Phoenix's AI community, together. Workuity hosts tonight, and we present Founder Weekend side by side.
admin and user. The first admin comes from the terminal.
The server decides. Every action is logged.
Metrics, users, support, dinners, audit log.
A normal user gets nothing from /admin
Every action shows up in the audit log
claudeWhat do you need to do for a user today?
youFind them, see their dinners, ban a spammer.
claudeShould banning ask for a reason?
✓ Wrote ADMIN.md: 2 roles, 5 pages, 10 audit events
Interview me about the admin jobs, roles and metrics, then write ADMIN.md with rules, pages, actions, audit events and Done when. Wait for my OK.
✓ admin() on the server, adminClient() on the client
✓ role, banned, banReason, banExpires on user
✓ impersonatedBy on session
claudeYour turn: create the first admin in your terminal.
Add Better Auth's admin plugin on server and client, add its columns, then stop so I can create the first admin in my terminal.
better-auth.com/docs/plugins/admin
✓ requireAdmin() in the /admin layout and every action
✓ e2e/admin-access.spec.ts
3 passed: signed out, normal user, admin
claudeA normal user gets a 404 and no data.
Write requireAdmin() and call it in the layout, every page, action and route. Then a Playwright test that a normal user gets nothing.
playwright.dev/docs/auth
youSearch "gmail", banned only, newest first.
✓ listUsers: searchValue, filterField, sortBy
claudeBan asks for a reason, then writes user.ban.
✓ 1 row in admin_audit_log
Create admin_audit_log and logAdminAction(), then a shadcn data table on listUsers with search, filter, sort and confirmed, logged actions.
ui.shadcn.com/docs/components/radix/data-table
youThis recipe says to bake lettuce for an hour.
claudeHide it? It needs a reason.
youUnsafe cooking step.
✓ Hidden from the user · recipe.hide logged
Propose the schema change to hide one recipe, build /admin/dinners, add confirmed and logged Hide and Unhide, and hide it from the user's dinners and Favorites.
youLook up maria@example.com.
✓ 2 sessions · 6 dinners this week
claudeSend a reset link or sign her out everywhere?
✓ user.password_reset_sent logged
Build /admin/users/[id]: profile, recent dinners, sessions, plus revoke, password reset and impersonate, each confirmed and logged, with a banner while impersonating.
Signups this week: 41
Activated in 24 hours: 26 (63%)
Weekly active: 118
claudeSame definitions as GROWTH.md.
Build /admin with signups, activated users and weekly active from server-side queries, using GROWTH.md's definitions if they exist. Show me the SQL.
youSummarize this user
claudeActive 5 of 7 days. Mostly eggs and spinach.
claudeHit two errors Tuesday, then stopped.
✓ ai.summarize_user logged
Add a Summarize button: a server action sends the user's recent activity, minus personal data, to Claude through AI Gateway and logs the call.
vercel.com/docs/ai-gateway
✓ 5 of 5 checks under Done when
✓ npx playwright test: all passed
✓ 10 audit events, no client-side secrets
claudeDeployed. /admin is live and locked.
Check every admin route and action for requireAdmin(), hunt for client-side secrets, confirm every audit event, run the tests, then ship.
Also in the series: Part 12, AI Ops Team. A live team of Grok Bots to run it with you.
An Arizona AI hackathon. Teams of 1-4.
See the hackathon ↗