From 84f31ffdec5ca1cae0acd80ad30fb3d1d4b4ba01 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 15 Apr 2026 17:43:38 -0400 Subject: [PATCH] Update prompts. --- prompts/get_staged_context.sh | 3 +++ prompts/{summarize_staged => summarize_staged.prompt} | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 prompts/get_staged_context.sh rename prompts/{summarize_staged => summarize_staged.prompt} (90%) diff --git a/prompts/get_staged_context.sh b/prompts/get_staged_context.sh new file mode 100755 index 0000000..464bd47 --- /dev/null +++ b/prompts/get_staged_context.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +git diff --name-only --cached | xargs -I {} echo -i "{}" | xargs code2prompt -c . diff --git a/prompts/summarize_staged b/prompts/summarize_staged.prompt similarity index 90% rename from prompts/summarize_staged rename to prompts/summarize_staged.prompt index 06220e3..6183041 100755 --- a/prompts/summarize_staged +++ b/prompts/summarize_staged.prompt @@ -27,7 +27,7 @@ MODEL="gemini-3-flash-preview" FALLBACK="claude-sonnet-4.6" context() { - code2prompt $(git diff --name-only --cached | sed 's/.*/-i "&"/') . + git diff --name-only --cached | xargs -I {} echo -i "{}" | xargs code2prompt . } diff() {