prompt_directives - MadBomber/aia GitHub Wiki

Prompt Directives

Prompt directives are special instructions embedded in prompt files or chat sessions, starting with //. They allow dynamic behavior, configuration changes, and workflow control directly from within your prompt text.

Directive Syntax

//command [arguments]

Common Directives

Directive Alias Description
shell sh Execute shell commands
ruby rb Execute Ruby code
config cfg Display or update configuration
include inc Include file content
next Specify the next prompt ID in a sequence
pipeline Specify a pipeline of prompt IDs
clear Clear the context (in chat)
help Show available directives
tools List available tools/functions for LLMs

Examples

  • Execute a shell command:
    //shell ls -l
    
  • Include another file:
    //include snippets/summary.txt
    
  • Change configuration:
    //config model = gpt-4
    
  • Run Ruby code:
    //ruby puts [1,2,3].sum
    
  • List available tools:
    //tools
    

Using Directives in Chat

Directives can be used interactively in chat mode, allowing dynamic context changes and workflow control.


For more details on each directive, see: