Adam Bandel


Prompt Development Kit

May 2025
Type: desktop
Code: 33k lines
Files: 241
Active: May 2025 to May 2025
Stack:
TypeScriptReactTauriRustSQLiteReactFlow
Tags:
aideveloper-toolsautomation

Overview

Prompt Development Kit (PDK) is a cross-platform desktop app for building and organizing chains of AI prompts. Each prompt is a node on a canvas, and you connect nodes into sequences, use variables at several scopes, and pull code from your own projects straight into the prompts.

I never released it, and I stopped using it. The code context part outlived it as its own app, Code Context Builder.

Screenshots

Flow Canvas

Node Editor

Code Context Builder

Problem

Working with LLM prompts means keeping several variations and versions of a prompt, reusing the same patterns across prompts, and pasting code and documentation into them. I built PDK so I could string predefined prompts together as nodes and reuse them by changing only the variables, with global or locally scoped variables holding the context.

Approach

Stack

Challenges

Outcomes

Connecting nodes on the canvas defines a prompt sequence. Variables come in three scopes (global, flow and code context), which covers the common kinds of reuse. Version history keeps earlier versions of flows and nodes, so you can experiment without losing previous work. Token counting is built in, though it ended up switched off in the flow and node views for performance and stays on in the code context builder. File scanning runs in parallel with Rayon.

It was good for managing a collection of prompts I wanted to remember, and for building hierarchical prompt chains, some of them quite complex, mostly for coding and for generating documentation. Overall, though, defining prompt workflows in it was too cumbersome, and I stopped using it. Once you code a lot, you find you don’t use the same prompts over and over: every project is different, every day is different, and different models need different prompting. What I kept using was the code context builder inside it, so I took that out and made it a standalone app.

Implementation Notes

The variable system uses a {{variable_name}} syntax with three scopes:

// Variable resolution priority
1. Code context variables (auto-generated from file scans)
2. Flow-specific variables (scoped to current flow)
3. Global variables (available everywhere)

The database schema has 19 tables, covering flows, nodes, variables, versions and soft-deleted items:

-- Core tables for flow/node versioning
CREATE TABLE flow_versions (
  id INTEGER PRIMARY KEY,
  flow_id INTEGER,
  version TEXT,
  snapshot TEXT,  -- JSON snapshot of flow state
  created_at TEXT
);

CREATE TABLE node_versions (
  id INTEGER PRIMARY KEY,
  node_id INTEGER,
  version TEXT,
  snapshot TEXT,
  created_at TEXT
);

The code context builder scans project directories and generates variables:

// Parallel file scanning with Rayon
files.par_iter()
    .filter(|f| matches_patterns(f, &include_patterns, &exclude_patterns))
    .map(|f| read_and_tokenize(f))
    .collect()

Related Posts

No posts yet.