Introduction to Raycast-PromptLab
PromptLab is an innovative extension for Raycast designed to create and share sophisticated AI commands. By utilizing placeholders, action scripts, and more, PromptLab enhances the capabilities of Raycast AI, making processes more efficient and contextually intelligent.
Feature Overview
PromptLab offers a broad spectrum of features that enable users to create, edit, run, and share personalized AI commands. These commands can be detailed, listed, chatted, or created as no-view commands. The use of contextual placeholders in prompts allows for a dynamic interaction with data, which can include AppleScript, JXA, Shell scripts, and JavaScript placeholders. Data can also be retrieved from external sources like APIs, websites, and applications.
Moreover, PromptLab allows users to analyze the contents of selected files, extract information from images, and handle tasks through commands accessible via a menu bar item. Commands can also be saved and executed as Quicklinks, optionally requiring input parameters. What’s more, users have the ability to run AppleScript or Bash scripts based on model responses and enact Siri Shortcuts whose outputs can be integrated into prompts.
Another unique feature is the "Chat Mode," which integrates autonomous command execution, retains chat history and statistics, and allows interaction with AI in a conversational format with file context integration.
Top-Level Commands
Primary commands in PromptLab include:
- New PromptLab Command: Create new custom commands accessible through 'My PromptLab Commands.'
- Manage Models: Allows users to view, edit, add, and delete custom models.
- PromptLab Command Store: A repository for exploring and searching commands shared by others.
- PromptLab Chat: Initiates conversations with the AI, utilizing selected files as context.
- PromptLab Menu Item: A menu bar item providing quick access to PromptLab commands.
Creating Your Own Commands
Users can develop custom PromptLab commands using their own prompts, which make good use of various placeholders:
- Placeholders: When setting up a command, placeholders such as
{{selectedText}}
or{{todayEvents}}
are used to insert real-time data and context, transforming static prompts into dynamic ones filled with relevant information. - Action Scripts: Custom scripts can be executed once an AI response is obtained, utilizing variables and pre-defined handlers to further process the response.
- Custom Configuration Fields: Allow for the setup of text, boolean, or number input fields that need to be completed before executing a command.
Chats, Context Data, Statistics, and More
PromptLab's Chat feature maintains conversations over time, allowing for customization and carrying over of context data such as files or websites, ensuring the AI remains informed during interactions. This feature also supplies chat-specific statistics and permits the export of chat histories for better review and usage.
Autonomous Agent Features
This capability enables AI to autonomously execute commands based on user prompts—running specified commands to provide complete, informative answers to queries, thereby boosting AI's utility and responsiveness.
Installation
PromptLab is easily accessible through the Raycast extension store. A manual installation process is available for those who prefer to install directly from the repository, involving simple steps to clone, install, and run the necessary files.
Using Custom Model Endpoints
Users have the flexibility to use various AI model endpoints by configuring them within the PromptLab settings. This includes setting up APIs like Anthropic’s Claude or OpenAI’s API, allowing further customization and adaptation to specific needs.
Troubleshooting and Further Support
If users encounter any issues, they are encouraged to ensure their software is up-to-date, review command settings, check the PromptLab Wiki for solutions, or report issues on GitHub for support.
Contributing and Roadmap
PromptLab welcomes contributions from users, encouraging them to refer to the contributing guidelines. Future updates and feature plans are outlined in the roadmap, ensuring continued development and enhancement of the extension.
Useful Resources
PromptLab provides users with access to resources and best practices in prompt engineering to make the most of its capabilities. This includes links to OpenAI API best practices, Brex's Prompt Engineering Guide, and strategies for enhancing the reliability of responses.
PromptLab represents an exciting development in the integration of AI with everyday workflows, promising to streamline tasks and offer intelligent solutions through user-generated prompts and commands.