my_most_powerful_prompt - MadBomber/aia GitHub Wiki

My Most Powerful Prompt

This is just between you and me so don't go blabbing this around to everyone. My most powerful prompt is in a file named ad_hoc.txt. It looks like this:

# ~/.prompts/ad_hoc.txt
# Desc: An Ad Hoc prompt for on the fly consultations
#
# Related documentation:
# - docs/my_most_powerful_prompt.md
# - docs/chat_session_use.md
# - docs/embedded_parameters.md

[WHAT_NOW_HUMAN]

__END__

Everything after the __END__ line is ignored.

This simple prompt is extremely powerful because it allows you to quickly
ask the AI assistant anything without cluttering your shell history with
long prompts. The parameter [WHAT_NOW_HUMAN] will be replaced with whatever
you type when prompted.

Yep. Just a single parameter for which I can provide a value of anything that is on my mind at the time. Its advantage is that I do not pollute my shell's command history with lots of text.

aia ad_hoc

You could also create an executable prompt file like this:

#!/usr/bin/env aia run
[WHAT_NOW_HUMAN]

Where the run prompt ID has a run.txt file in the prompt directory that is basically empty. Or maybe run.txt has some prompt instructions for how to run the prompt - some kind of meta-thinking instructions.

Related Topics