Skip to content

Instantly share code, notes, and snippets.

View alex-shekhter's full-sized avatar

alex-shekhter

View GitHub Profile
@alex-shekhter
alex-shekhter / CLAUDE.md
Created December 2, 2025 03:42 — forked from ctoth/CLAUDE.md
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.

This is correct for code, where:

  • Reality has hard edges (the compiler doesn't care about your intent)
  • Mistakes compound (a wrong assumption propagates through everything built on it)
  • The cost of being wrong exceeds the cost of being slow
@alex-shekhter
alex-shekhter / claude-code-sheet.md
Created October 17, 2025 00:38 — forked from pffigueiredo/claude-code-sheet.md
Claude Code Sheet Sheet

Claude Code

Plan Mode

  • Shift + tab + tab
  • Use “opus” for planning and Sonnet for everything else, /model

Multi Agent Parallel Tasks

@alex-shekhter
alex-shekhter / SObject Prefixes.cls
Last active June 6, 2017 03:32
Get all SObject's prefixes in the Salesforce ORG. Better to be used like a SysAdmin.
Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();
Map<String,String> objNameToPrefix = new Map<String,String>();
for ( Schema.SObjectType ot : gd.values() ) {
Schema.DescribeSObjectResult dor = ot.getDescribe();
objNameToPrefix.put( dor.getName(), dor.getKeyPrefix() );
}
System.debug( '--->>> ' + objNameToPrefix );