v1.0.0
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-scrubCLI 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 });