Development
Learn how to develop and test Puzzlet prompts
Puzzlet provides several tools for developing and testing prompts:
Develop Locally
Start a local server to serve your prompts:
This creates a local CDN that serves your prompts from the puzzlet/templates
directory.
Test your local server
You can test your local server by running the following command:
Replace <port>
with the port you are running your local server on, and <path>
with the path to the prompt you want to test.
Example:
This will return the contents of the math.prompt.mdx
prompt as an AST.
SDK Configuration
Configure the Puzzlet SDK to use your local server:
Running Prompts
Fetch and run prompts using the SDK and AgentMark:
Creating New Prompts
- Create new
.prompt.mdx
files in yourpuzzlet/templates
directory - Test locally using the SDK or VSCode extension
- Sync with Puzzlet by committing and pushing to the connected git branch
VSCode Extension
For a more integrated development experience:
- Install the Puzzlet Studio VSCode extension
- Open any
.prompt.mdx
file - Use the built-in prompt “Run” to test your prompts directly in VSCode
Development Workflow
- Start the local server
- Create or modify prompts in your templates directory
- Test using the SDK or VSCode extension
- Sync changes to Puzzlet, by committing and pushing to the connected git branch
- Ensure environment variables are set correctly in your deployed environment
This workflow allows you to develop and test prompts locally before deploying them to your production environment.
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?