Skip to main content

hunch input

Loads and outputs the input JSON. Example:
hunch input

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 compiled-prompt --instructions

hunch extract-url

Extracts the first URL from the compiled prompt. Example:
hunch extract-url

hunch extract-urls

Extracts all URLs from the compiled prompt. Example:
hunch extract-urls

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 block
  • extract-url: Extracts the first URL from the output of the block
  • extract-urls: Extracts all URLs from the output of the block
Examples:
hunch block --title "Block 2"

hunch block output --title "Block 2"

hunch block extract-url --title "Block 1"

hunch block extract-urls --title "Block 2"