Code Runner
Bash
Reference documentation for the hunch
CLI available in the Code Runner
hunch input
Loads and outputs the input JSON.
Example:
hunch compiled-prompt
Prints the compiled prompt.
Options:
--instructions / --no-instructions
: Whether to include the instructions of the code runner block. Default is--no-instructions
.--titles / --no-titles
: Whether to include the titles of the blocks. Default is--titles
.
Example:
hunch extract-url
Extracts the first URL from the compiled prompt.
Example:
hunch extract-urls
Extracts all URLs from the compiled prompt.
Example:
hunch block
Select and apply commands to a single input block to the code runner. Running this without any subcommands will output the JSON for the selected block.
Options:
--title TEXT
: The title of the block to fetch--ititle TEXT
: The case-insensitive title of the block to fetch
Subcommands:
output
: Prints the output of the blockextract-url
: Extracts the first URL from the output of the blockextract-urls
: Extracts all URLs from the output of the block
Examples: