Skip to content

Instantly share code, notes, and snippets.

View jcohen66's full-sized avatar

Jonathan T. Cohen jcohen66

View GitHub Profile
@jcohen66
jcohen66 / ai_prompt_caching.md
Last active February 7, 2026 17:47
AI Prompt Caching #ai #prompt #cache #caching

Input Caching

Not like regular output caching (think database).

Prompt Caching

- Cache only the input prompt not the output.
	- Model computes key value pairs at every transformer layer
	- Cache stores the computed kv pairs

Context Window Contents - Doc

  • Summary
@jcohen66
jcohen66 / ai_context_rot.md
Created February 7, 2026 00:17
AI Tactics To Stop Context Rot #ai #dylandavis #context #window #rot #handoff

https://www.youtube.com/watch?v=xaQG-eD9d58&t=1s

Four Tactics To Stop Context Rot

  1. Handoff Summary
  2. Strategic files -> Text cheap, video expensive
  3. Experiment -> Build intuitiion as models improve
  4. Strategic Summaries -> Extend when you can't restart

Performance vs Context Usage

@jcohen66
jcohen66 / ai_declarative_spec.md
Created February 4, 2026 20:31
AI Declarative Spec #ai #pattern #declarative #spec #architecture #agent

If you are using AI model as the Oracle you are in the wrong frame of mind.

  1. Assign tasks don't ask questions. a) Describe the end state you want b) Provide the success criteria b) Let the system decide how to get there

  2. Accept imperfections and start to iterate a) Ralph Wiggum works because it produces broken code b) Make it retry until it fixes it

@jcohen66
jcohen66 / ai_self_acceleration_loop.md
Created February 4, 2026 20:11
AI Self Acceleration Loop #ai #self #acceleratoin #loop #pattern

Let the model write the code - Self acceleration loop - Use AI to make AI better

  • Scope knowledge tasks AI is now preferred over humans
@jcohen66
jcohen66 / ai_agent_governance.md
Created February 4, 2026 19:52
AI Agent Governance #ai #agent #governance

Unlike traditional software, they learn and adapt in realtime - Decide on actions after interpreting data - Not just following scripts - Attackers manipulate sensing, thinking or acting functions - They can hijack the whole process

Need to build in safeguards - Make sure it stays under my control - Continues to follow my instructions

@jcohen66
jcohen66 / ai_general_verifiability.md
Created February 3, 2026 22:28
AI General Verifiability #ai #miessler #verify #verifiability #

From Daniel Miessler LI post

General Verifiability

The ability to verify or 'Hill Climb' on general tasks instead of just coding.

  1. Verifiability is the key to progress.
  2. Code is easy to verify, but we lack that for most other types of problems.
  3. If we want to hill climb, we have to hill climb towards something.
  4. That something is IDEAL STATE.
@jcohen66
jcohen66 / ai_notebooklm_prompts.md
Created February 3, 2026 17:52
AI NotebookLM Prompts #ai #notebooklm #prompt #literature #review #research

Deep Literature Review

Based on all the research papers I updloaded, create a comprehensive literature review covering: key arguments, methodological gaps, and underexplored research opportunities.

Cross-Document Connector

Compare the marketing strategy in Document A with user feedback in Document B, identify three potential misalignments between strategy and real user needs.

@jcohen66
jcohen66 / ai_brutal.md
Last active February 1, 2026 23:22
AI Won't Tell You Your Idea Sucks #ai #verification #prompt #brutal #honesty #devil #advocate #brutal #pattern #sucks #critical #feedback

BRUTAL

B - Begin Fresh R - Right Model U - Use a Critic Persona T - Third Party Framing A - Ask Specific Questions L - Let It Grade Itself

Honest and Critical Feedback

The problem is AI wants to please you. It will return something like:

@jcohen66
jcohen66 / ai_validation_prompt.md
Created February 1, 2026 22:50
AI Validation Prompt #ai #validation #prompt #ground #grounding #RAG
@jcohen66
jcohen66 / ps_find_program.txt
Created January 26, 2026 15:12
Powershell Check If Program Installed #windows #powershell #file #installed #object #capability
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'