From 04752118a8926132638aa7f32aa7756ab0f1f741 Mon Sep 17 00:00:00 2001 From: misomosi Date: Mon, 29 Jun 2026 15:54:15 -0400 Subject: [PATCH] Add OpenCode prompts --- OpenCodePrompts/DEBUGGING-PREFIX.txt | 8 ++++++++ OpenCodePrompts/DEBUGGING-SUFFIX-ODIN-CRASH.txt | 2 ++ OpenCodePrompts/README.md | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 OpenCodePrompts/DEBUGGING-PREFIX.txt create mode 100644 OpenCodePrompts/DEBUGGING-SUFFIX-ODIN-CRASH.txt create mode 100644 OpenCodePrompts/README.md diff --git a/OpenCodePrompts/DEBUGGING-PREFIX.txt b/OpenCodePrompts/DEBUGGING-PREFIX.txt new file mode 100644 index 0000000..15e42e6 --- /dev/null +++ b/OpenCodePrompts/DEBUGGING-PREFIX.txt @@ -0,0 +1,8 @@ +DO NOT READ ANYTHING GIT-RELATED LIKE THE .git DIRECTORY! +DO NOT USE git UNDER ANY CIRCUMSTANCES! +DO NOT MAKE ANY NETWORK REQUESTS! +RUN ANY COMMAND IN THE QUESTION TO HELP YOU IN FINDING THE ISSUE! +OTHERWISE, DO NOT EDIT OR DELETE ANY FILES, ESPECIALLY .odin AND .cpp FILES! +YOU MAY EXPLAIN POTENTIAL FIXES, BUT DO NOT WRITE A FIX TO DISK! +JUST EXPLAIN THE UNDERLYING ISSUE! + diff --git a/OpenCodePrompts/DEBUGGING-SUFFIX-ODIN-CRASH.txt b/OpenCodePrompts/DEBUGGING-SUFFIX-ODIN-CRASH.txt new file mode 100644 index 0000000..54b0e35 --- /dev/null +++ b/OpenCodePrompts/DEBUGGING-SUFFIX-ODIN-CRASH.txt @@ -0,0 +1,2 @@ +Why does running "./odin run reproduce -debug" cause a compiler crash? +You may also use the lldb or gdb commands to debug this program diff --git a/OpenCodePrompts/README.md b/OpenCodePrompts/README.md new file mode 100644 index 0000000..3429a87 --- /dev/null +++ b/OpenCodePrompts/README.md @@ -0,0 +1,9 @@ +# OpenCode Prompts + +Prompts, prefixes, and suffixes I use with the OpenCode AI coding agent. + +I usually use OpenCode for debugging issues in git repos rather than developing +new software or even fixes for issues. As such, the prompts optimize for that case + +Because I debug a lot of native software, I also use the opencode-lldb-debug plugin, +and some prompts assume it's installed, but the prompts will still work without it -- 2.49.1