Skip to content

Instantly share code, notes, and snippets.

View klementj's full-sized avatar
🤖

Klement Johansen klementj

🤖
  • AspIT
  • Copenhagen
View GitHub Profile
@artemgetmann
artemgetmann / claude-code-token-saving-guide.md
Last active October 27, 2025 17:46
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

@fnimick
fnimick / supabase_profile_sync.sql
Last active August 19, 2025 22:40
Create a `public.profile` table and keep it in sync with supabase `auth.users` for selected fields in both directions.
/**
* USERS
* Note: This table contains user data. Users should only be able to view and update their own data.
* Some data is synced back and forth to `auth.users` as described below.
*
* `full_name`: synced in both directions
* `email`: synced from user metadata to profile only
* `avatar_url`: synced from user metadata to profile only
* `terms_accepted_at`: synced from profile to user metadata only
*/