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.

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 XML tags without additional commentary.

Example: { "commands": { "ls": { "category": "explicitly_referenced" }, "find": { "category": "related" } } }

<%= File.read(file)>
❯ 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! πŸ”₯πŸ”₯πŸ”₯
name: cli_assistant
model: gpt-4o-mini
tools:
- Roast::Tools::AskUser
steps:
- identify_commands⏎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment