New features added to the template since you first cloned it. Select the ones you want, copy the prompt, and paste it into Claude Code to adopt them.
When a user pastes a prompt generated by this page, follow these steps:
package.json, cloudflare/ directory, shared/ directory, and .claude/settings.json.docs/*.md files (KEY-FILES.md, CHANGELOG.md, INTEGRATIONS.md, etc.).Added Mar 2026
Automatically save every Claude Code session transcript to a Cloudflare D1 (SQLite) database. Search past conversations, track token usage and costs, and never lose context from previous sessions.
sessions tableCloudflare account (free) Node.js 18+
cloudflare/claude-sessions/ already exists in the project. If not, pull it from the template repo.npm install -g wranglerwrangler login (opens browser for Cloudflare auth)npx wrangler d1 create claude-sessionscloudflare/claude-sessions/wrangler.jsonc with the returned database_idsrc/index.js — replace CHANGE_ME_TO_A_SECRET with the chosen tokencd cloudflare/claude-sessions && npx wrangler d1 execute claude-sessions --file=schema.sql --remotecd cloudflare/claude-sessions && npx wrangler deployhttps://claude-sessions.USERNAME.workers.dev)mkdir -p ~/.claude/hooks
cp cloudflare/claude-sessions/hooks/save-session.sh ~/.claude/hooks/save-session.sh
chmod +x ~/.claude/hooks/save-session.sh
~/.claude/settings.json:
{
"hooks": {
"Stop": [{
"hooks": [{
"type": "command",
"command": "$HOME/.claude/hooks/save-session.sh",
"timeout": 15
}]
}]
}
}
curl -H "Authorization: Bearer TOKEN" https://WORKER_URL/statsdocs/KEY-FILES.md, docs/INTEGRATIONS.md, and docs/CHANGELOG.mdcloudflare/claude-sessions/ (new directory with worker, schema, hook script, wrangler config) •
~/.claude/hooks/save-session.sh •
~/.claude/settings.json (hooks block)
Added Mar 2026
Reduce Claude Code token usage by splitting heavy documentation into on-demand files. Instead of loading everything into CLAUDE.md, Claude only loads the specific docs/*.md file it needs for a given task.
CLAUDE.md (~30 lines, always loaded) with an on-demand doc indexCREDENTIALS.md, SCHEMA.md, PATTERNS.md, KEY-FILES.md, DEPLOY.md, INTEGRATIONS.md, CHANGELOG.mdCREDENTIALS.md automatically gitignoredNone
docs/ directory already exists with the expected files. If so, skip or merge.docs/ directory structure from the template repo:
docs/CREDENTIALS.md (gitignored — API keys, tokens)
docs/SCHEMA.md (database table definitions)
docs/PATTERNS.md (code patterns, Tailwind tokens)
docs/KEY-FILES.md (project file structure)
docs/DEPLOY.md (deployment workflow, URLs)
docs/INTEGRATIONS.md (external service configs)
docs/CHANGELOG.md (recent changes log)
CLAUDE.md to the slim version with on-demand doc index header (preserve any custom directives the user has added)docs/CREDENTIALS.md to .gitignore if not already presentCLAUDE.md to the appropriate docs/*.md filedocs/KEY-FILES.md with the user's actual project structureCLAUDE.md (slimmed down) •
docs/*.md (7 new files) •
.gitignore (add CREDENTIALS.md)
Added Mar 2026
A public-facing (or admin-only) page that displays your Claude Code session history from D1. Shows what Claude worked on, when, token counts, and costs. Full radical transparency for how AI is being used in your project.
D1 Session Logging (above)
open-brain/index.html — a standalone dashboard page with:
/open-brain/docs/KEY-FILES.md and docs/CHANGELOG.mdopen-brain/index.html (standalone dashboard)
Added Mar 2026
Intelligent data refresh that pauses when the tab is hidden, backs off exponentially on failures, and auto-recovers when Supabase comes back online. Prevents hammering your API during outages.
PollManager class with configurable intervals (default: 30s)shared/supabase-health.js)Supabase configured
shared/services/poll-manager.js from the template reposhared/supabase-health.js from the template reposetInterval polling with PollManagerdocs/KEY-FILES.md and docs/PATTERNS.mdshared/services/poll-manager.js •
shared/supabase-health.js
Added Mar 2026
Database-driven configuration for which intranet sections and tabs are visible. Toggle tabs on/off per section without code changes — just update a Supabase table.
page_display_config Supabase table with RLSSupabase configured
supabase/migrations/001_page_display_config.sql against the user's Supabase project via psql or the Supabase SQL editorsrc/components/intranet/section-tabs.tsxsrc/components/intranet/sub-tabs.tsxsrc/components/intranet/tab-content.tsxdocs/SCHEMA.md and docs/CHANGELOG.mdsupabase/migrations/001_page_display_config.sql •
Intranet tab components (3 files)
Added Mar 2026
A lightweight error logging utility that standardizes error handling across the app. Captures, formats, and optionally reports errors to a central location.
shared/error-logger.js — consistent error capture and formattingNone
shared/error-logger.js from the template repodocs/KEY-FILES.md and docs/PATTERNS.mdshared/error-logger.js
Added Mar 2026
If you previously set up session logging with the SessionEnd hook, this upgrade switches to the Stop hook which also captures worktree and subagent sessions. Includes rate-limiting to avoid excessive API calls.
D1 Session Logging already set up
~/.claude/settings.json for an existing SessionEnd hookStop hook configuration~/.claude/hooks/save-session.sh with the latest version (includes rate-limiting)~/.claude/settings.json (hook event type) •
~/.claude/hooks/save-session.sh (rate-limiting)
Added Mar 2026
A comprehensive admin dashboard for monitoring your AI-assisted development workflow. Six sub-tabs covering releases, sessions, token usage, context window analysis, and backup status — all in one place.
Supabase configured GitHub repo (for Releases tab)
Optional: D1 Session Logging (for Sessions tab), backup_logs table (for Backups tab)
spaces/admin/devcontrol.html (admin page shell)
spaces/admin/devcontrol.js (all 6 sub-tab logic)
spaces/admin/devcontrol.css (complete styling)
devcontrol.js:
GH_OWNER / GH_REPO — for Releases and Context tabs (GitHub API)SESSIONS_API / SESSIONS_TOKEN / PROJECT_FILTER — for Sessions and Tokens tabs (D1 Worker)shared/admin-shell.js:
{ id: 'devcontrol', label: 'DevControl', href: 'devcontrol.html',
permission: 'view_settings', section: 'admin' }
admin-shell.js icon mapcontext_snapshots Supabase table for 90-day history tracking:
CREATE TABLE context_snapshots (
snapshot_date DATE PRIMARY KEY,
always_loaded_tokens INTEGER NOT NULL,
total_tokens INTEGER NOT NULL,
breakdown JSONB DEFAULT '{}'
);
backup_logs table, the Backups tab will work immediately. Otherwise, create it:
CREATE TABLE backup_logs (
id SERIAL PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT NOW(),
source TEXT NOT NULL,
backup_type TEXT NOT NULL,
status TEXT NOT NULL,
duration_seconds INTEGER,
details JSONB,
r2_key TEXT
);
docs/KEY-FILES.md, docs/CHANGELOG.md, and docs/PATTERNS.mdspaces/admin/devcontrol.html •
spaces/admin/devcontrol.js •
spaces/admin/devcontrol.css •
shared/admin-shell.js (nav entry + icon)
Select features above, then click the button to generate a prompt you can paste into Claude Code.