Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Auto Assign
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Auto-assign issue
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: sbaker
numOfAssignee: 1
120 changes: 99 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,99 @@
MIT License

Copyright (c) 2026 Prompd LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Elastic License 2.0

URL: https://www.elastic.co/licensing/elastic-license

## Acceptance

By using the software, you agree to all of the terms and conditions below.

## Copyright License

The licensor grants you a non-exclusive, royalty-free, worldwide,
non-sublicensable, non-transferable license to use, copy, distribute, make
available, and prepare derivative works of the software, in each case subject to
the limitations and conditions below.

## Limitations

You may not provide the software to third parties as a hosted or managed
service, where the service provides users with access to any substantial set of
the features or functionality of the software.

You may not move, change, disable, or circumvent the license key functionality
in the software, and you may not remove or obscure any functionality in the
software that is protected by the license key.

You may not alter, remove, or obscure any licensing, copyright, or other notices
of the licensor in the software. Any use of the licensor's trademarks is subject
to applicable law.

## Patents

The licensor grants you a license, under any patent claims the licensor can
license, or becomes able to license, to make, have made, use, sell, offer for
sale, import and have imported the software, in each case subject to the
limitations and conditions in this license. This license does not cover any
patent claims that you cause to be infringed by modifications or additions to
the software. If you or your company make any written claim that the software
infringes or contributes to infringement of any patent, your patent license for
the software granted under these terms ends immediately. If your company makes
such a claim, your patent license ends immediately for work on behalf of your
company.

## Notices

You must ensure that anyone who gets a copy of any part of the software from you
also gets a copy of these terms.

If you modify the software, you must include in any modified copies of the
software prominent notices stating that you have modified the software.

## No Other Rights

These terms do not imply any licenses other than those expressly granted in
these terms.

## Termination

If you use the software in violation of these terms, such use is not licensed,
and your licenses will automatically terminate. If the licensor provides you
with a notice of your violation, and you cease all violation of this license no
later than 30 days after you receive that notice, your licenses will be
reinstated retroactively. However, if you violate these terms after such
reinstatement, any additional violation of these terms will cause your licenses
to terminate automatically and permanently.

## No Liability

As far as the law allows, the software comes as is, without any warranty or
condition, and the licensor will not be liable to you for any damages arising
out of these terms or the use or nature of the software, under any kind of
legal claim.

## Definitions

The "licensor" is the entity offering these terms, and the "software" is the
software the licensor makes available under these terms, including any portion
of it.

"you" refers to the individual or entity agreeing to these terms.

"your company" is any legal entity, sole proprietorship, or other kind of
organization that you work for, plus all organizations that have control over,
are under the control of, or are under common control with that
organization. "control" means ownership of substantially all the assets of an
entity, or the power to direct its management and policies by vote, contract, or
otherwise. Control can be direct or indirect.

"your licenses" are all the licenses granted to you for the software under
these terms.

"use" means anything you do with the software requiring one of your licenses.

"trademark" means trademarks, service marks, and similar rights.

---

Licensor: Logikbug LLC (dba Prompd)
Software: Prompd Desktop Application
Copyright 2025-2026 Logikbug LLC. All rights reserved.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Prompd brings software engineering practices to AI prompt development. Instead o

**Everything runs locally.** Your API keys, prompts, and data never leave your machine. LLM calls go directly from Prompd to provider APIs with zero intermediaries.

> **Platform:** Pre-built binaries are currently **Windows only**. Mac and Linux builds are coming soon. You can build from source on any platform today.

<!-- SCREENSHOT: Design View - Open a .prmd file in Design View showing the WYSIWYG editor
with the provider bar (Anthropic/OpenAI tabs), parameter panel, and content sections.
Use the public-examples/prompts/topic-researcher.prmd file for a good example. -->
Expand Down Expand Up @@ -52,7 +54,7 @@ Prompd brings software engineering practices to AI prompt development. Instead o

```bash
# Clone the repository
git clone https://github.com/Prompd/prompd.app.git
git clone https://github.com/Prompd/prompd-app.git
cd prompd.app

# Build local packages (required before frontend)
Expand Down Expand Up @@ -150,7 +152,7 @@ At minimum, you need one LLM provider API key (e.g., Anthropic or OpenAI) config

## Documentation

- [CLAUDE.md](CLAUDE.md) - Developer guide and full architecture reference
- [CLAUDE-ARCHITECTURE.md](CLAUDE-ARCHITECTURE.md) - Deep architecture reference (node types, state management, execution model)
- [CONTRIBUTING.md](CONTRIBUTING.md) - How to contribute
- [docs/editor.md](docs/editor.md) - Editor features and usage
- [frontend/ELECTRON.md](frontend/ELECTRON.md) - Build and distribution
Expand Down
20 changes: 14 additions & 6 deletions backend/src/models/Package.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ const PackageSchema = new mongoose.Schema({
enum: ['ai-tools', 'templates', 'utilities', 'integrations', 'examples', 'other'],
default: 'other'
},
type: {
type: String,
enum: ['package', 'workflow', 'node-template', 'skill'],
default: 'package'
},
isPrivate: {
type: Boolean,
default: false
Expand All @@ -219,6 +224,7 @@ const PackageSchema = new mongoose.Schema({
PackageSchema.index({ name: 1 }, { unique: true })
PackageSchema.index({ name: 'text', description: 'text', displayName: 'text' })
PackageSchema.index({ category: 1, isPrivate: 1 })
PackageSchema.index({ type: 1, isPrivate: 1 })
PackageSchema.index({ 'statistics.totalDownloads': -1 })
PackageSchema.index({ 'statistics.stars': -1 })
PackageSchema.index({ updatedAt: -1 })
Expand Down Expand Up @@ -316,16 +322,18 @@ PackageSchema.methods.canUserModify = function(userId) {

// Static methods
PackageSchema.statics.search = function(query, options = {}) {
const {
limit = 20,
skip = 0,
category = null,
const {
limit = 20,
skip = 0,
category = null,
type = null,
sortBy = 'relevance',
includePrivate = false
includePrivate = false
} = options

const searchQuery = {
...(category && { category }),
...(type && { type }),
...(includePrivate === false && { isPrivate: false }),
isDeprecated: false
}
Expand Down
185 changes: 185 additions & 0 deletions backend/src/prompts/modes/brainstorm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"id": "brainstorm",
"label": "Brainstorm",
"icon": "Lightbulb",
"description": "Collaborative document editor that iterates with you on a working copy",
"responseFormat": "xml",
"systemPromptFile": "brainstorm.md",
"tools": [
{
"name": "edit_file",
"description": "Apply targeted search/replace edits to the document. Use this for focused changes to specific sections.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Use \"document\" — the system routes to the working copy automatically"
},
"edits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"search": {
"type": "string",
"description": "Exact text to find (must match exactly, including whitespace)"
},
"replace": {
"type": "string",
"description": "Text to replace it with"
}
},
"required": ["search", "replace"]
},
"description": "Array of search/replace operations to apply sequentially"
}
},
"required": ["path", "edits"]
},
"requiresApproval": false
},
{
"name": "write_file",
"description": "Replace the entire document content. Use this for major rewrites or restructuring.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Use \"document\" — the system routes to the working copy automatically"
},
"content": {
"type": "string",
"description": "The complete new document content"
}
},
"required": ["path", "content"]
},
"requiresApproval": false
},
{
"name": "ask_user",
"description": "Ask the user a clarifying question, optionally with selectable options",
"parameters": {
"type": "object",
"properties": {
"question": {
"type": "string",
"description": "The question to ask the user"
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "Option text"
},
"description": {
"type": "string",
"description": "Optional explanation of this option"
}
},
"required": ["label"]
},
"description": "Optional list of selectable options for the user"
}
},
"required": ["question"]
},
"requiresApproval": false
},
{
"name": "search_registry",
"description": "Search the Prompd package registry for templates and components to reference or inherit from",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search terms to find packages"
},
"tags": {
"type": "array",
"items": { "type": "string" },
"description": "Optional tags to filter results"
}
},
"required": ["query"]
},
"requiresApproval": false,
"triggersModal": true
},
{
"name": "list_package_files",
"description": "List all files in a registry package (useful for exploring base templates)",
"parameters": {
"type": "object",
"properties": {
"package_name": {
"type": "string",
"description": "Package name (e.g. @prompd/public-examples)"
},
"version": {
"type": "string",
"description": "Package version (e.g. 1.1.0)"
}
},
"required": ["package_name", "version"]
},
"requiresApproval": false
},
{
"name": "read_package_file",
"description": "Read a specific file from a registry package (useful for resolving inherited templates)",
"parameters": {
"type": "object",
"properties": {
"package_name": {
"type": "string",
"description": "Package name (e.g. @prompd/public-examples)"
},
"version": {
"type": "string",
"description": "Package version (e.g. 1.1.0)"
},
"file_path": {
"type": "string",
"description": "Path to the file within the package"
}
},
"required": ["package_name", "version", "file_path"]
},
"requiresApproval": false
},
{
"name": "get_document_errors",
"description": "Get current validation errors and warnings from the document with line numbers and severity",
"parameters": {
"type": "object",
"properties": {}
},
"requiresApproval": false
}
],
"settings": {
"maxIterations": 15,
"streamResponses": true,
"permissionLevels": {
"auto": {
"label": "Auto",
"description": "All edits apply directly to the working copy",
"requiresApprovalTools": []
}
},
"defaultPermissionLevel": "auto"
},
"followUpStrategies": {
"clear": "Understand the user's intent and make targeted edits to the document",
"vague": "Ask a clarifying question using ask_user to understand what the user wants to change",
"error": "Explain the issue and suggest an alternative approach",
"rejected": "Acknowledge and propose a different approach to the edit"
}
}
Loading
Loading