Context-Engineering icon indicating copy to clipboard operation
Context-Engineering copied to clipboard

`execute-prp.sh` script fails with syntax error

Open snappytux opened this issue 1 year ago • 4 comments

execute-prp.sh script is failing to run with the following error:

.gemini/scripts/execute-prp.sh PRPs/request_prp.md
.gemini/scripts/execute-prp.sh: line 34: unexpected EOF while looking for matching `)'
.gemini/scripts/execute-prp.sh: line 162: syntax error: unexpected end of file

I am running the command: .gemini/scripts/execute-prp.sh PRPs/request_prp.md

Expected behavior:

The script should execute the PRPs correctly.

Environment:

  • Operating System: macOS Sonoma 15.6
  • Shell: zsh

Please let me know if you need any more information to debug this issue.

snappytux avatar Aug 18 '25 11:08 snappytux

Hi @snappytux,

Thank you for making an issue, I'll hopefully be able to fix this at some point in the next week or two.

Apoo711 avatar Aug 20 '25 06:08 Apoo711

diff --git a/.gemini/scripts/execute-prp.sh b/.gemini/scripts/execute-prp.sh
old mode 100644
new mode 100755
index de58715..a45040b
--- a/.gemini/scripts/execute-prp.sh
+++ b/.gemini/scripts/execute-prp.sh
@@ -31,7 +31,7 @@ fi

 # 2. Define the Execution Prompt
 # ------------------------------
-EXECUTE_PRP_PROMPT=$(cat <<'END_PROMPT'
+read -r -d '' EXECUTE_PRP_PROMPT << 'EOF'
 You are an expert-level AI software engineer. Your task is to implement the feature described in the provided Product Requirements Prompt (PRP).

 You MUST respond with a sequence of executable actions. Do NOT add any conversational text, explanations, numbering, or any text that is not part of an action block. Your entire response must be a sequence of these blocks.
@@ -50,8 +50,7 @@ There are only two types of blocks you can use:
    ```

 Generate the complete sequence of these blocks to implement the feature.
-END_PROMPT
-)
+EOF


I can submit PR if you want.

wmealing avatar Sep 19 '25 08:09 wmealing

Hi @snappytux, I fixed the issue, checkout this fork -- https://github.com/rashidkisejjere0784/Context-Engineering-With-Gemini

rashidkisejjere0784 avatar Oct 30 '25 01:10 rashidkisejjere0784

I feel like.. maybe this is falling off the maintainers radar.

wmealing avatar Oct 30 '25 14:10 wmealing

Hey everyone, the old codebase was quite fragile and prone to error. With the recent deprecation of Gemini CLI in favour of AGY CLI, I decided it would be best to have this project target AGY CLI. As such the new code base uses that, it is also much easier to install. The old code is available on another branch if you'd still like to use that.

Apoo711 avatar Jun 18 '26 12:06 Apoo711