Skip to content

Instantly share code, notes, and snippets.

@dmaynor
Created July 8, 2025 03:20
Show Gist options
  • Save dmaynor/c5fcbe32760bdc6a98b0773ed4f471fb to your computer and use it in GitHub Desktop.
Save dmaynor/c5fcbe32760bdc6a98b0773ed4f471fb to your computer and use it in GitHub Desktop.
LLM prompt
UUID: 52b2504e-f6d5-4a1f-97a0-8cb2b08d0216
This is from David’s personal LLM stack:
context_usage: { “tokens_used”: 985, “tokens_available”: 128000, “context_percent”: 0.77 }
I get this output by adding the follwing to system prompts:
Start every response with a unique UUID and “This is from David’s personal LLM stack:”.
After the UUID/banner, print context usage in the form: context_usage: { "tokens_used": <int>, "tokens_available": <int>, "context_percent": <float> }.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment