Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 05 Jul 20:01
· 171 commits to main since this release

prompt-scrub v1.0.0

What's changed

First public release of prompt-scrub — a local-first utility that strips identifying content out of prompts and messages before they reach a cloud LLM, and rehydrates the model's response back to the original values locally.

Installation

npm install -g @nanocollective/prompt-scrub

CLI usage

# Inspect a prompt before sending (recommended first step)
echo "My email is alice@example.com" | prompt-scrub inspect

# Scrub a prompt
echo "My email is alice@example.com" | prompt-scrub scrub

# Rehydrate a response
echo "Contact Email_1 for details." | prompt-scrub rehydrate --session-id <id>

Library usage

import { scrub, rehydrate } from "@nanocollective/prompt-scrub";

const { scrubbedContent, sessionId } = scrub({ content: prompt });
// send scrubbedContent to LLM...
const { content } = rehydrate({ content: response, sessionId });

Full changelog