Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created June 2, 2025 15:07
Show Gist options
  • Save technicalpickles/efe3739b71f97f18a035bcc692b79eb8 to your computer and use it in GitHub Desktop.
Save technicalpickles/efe3739b71f97f18a035bcc692b79eb8 to your computer and use it in GitHub Desktop.

Revisions

  1. technicalpickles created this gist Jun 2, 2025.
    23 changes: 23 additions & 0 deletions identify_commands-prompt.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@

    Given the user's input, identify which commands are being explicitly referred to.
    If there isn't no explicit reference, identify what the user is trying to do, and what commands are relevant to it.

    RESPONSE FORMAT: You must respond in JSON format inside <json> XML tags without additional commentary.

    Example:
    <json>
    {
    "commands": {
    "ls": {
    "category": "explicitly_referenced"
    },
    "find": {
    "category": "related"
    }
    }
    }
    </json>

    <input>
    <%= File.read(file)>
    </input>
    13 changes: 13 additions & 0 deletions output.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ❯ ROAST_LOG_LEVEL=debug bin/roast execute --verbose cli_assistant/workflow.yml input.md
    /Users/josh.nichols/.local/share/mise/installs/ruby/3.4.4/lib/ruby/gems/3.4.0/gems/raix-0.8.6/lib/raix/prompt_declarations.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
    You can add ostruct to your Gemfile or gemspec to silence this warning.
    🔥🔥🔥 Everyone loves a good roast 🔥🔥🔥

    Configuring OpenAI client with token from workflow
    Starting workflow...
    Workflow: /Users/josh.nichols/workspace/terminal-roast/cli_assistant/workflow.yml
    Options: {verbose: true}
    Running workflow for file: input.md
    Prompt file for workflow not found:
    Executing: identify_commands (Resource type: none)
    🔥🔥🔥 ROAST COMPLETE! 🔥🔥🔥
    7 changes: 7 additions & 0 deletions workflow.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    name: cli_assistant
    model: gpt-4o-mini
    tools:
    - Roast::Tools::AskUser

    steps:
    - identify_commands⏎