ClaudeCodeMod

All shelves / Mods / Safety

pdpa-thai

By Boom-Vitt

pdpa-thai is a Claude Code safety mod by Boom-Vitt.

Refuses a tool call that repeats a placeholder for Thai or other personal data it redacted before sending, and masks that data on screen.

DrawsHolds a command

Install

The marketplace name is boombignose-mods.

In your shell
claude plugin marketplace add Boom-Vitt/boombignose-mods
claude plugin install pdpa-thai@boombignose-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.3.0
License
MIT
Repo stars
5
Last change
2026-10-08

What it can reach

  • Draws in the session
  • Holds a command
  • Sees tool calls

The guard's toasts and the /pdpa-guard replies are in Thai. boombignose-mods is a set of Claude Code mods: this guard, a context bar, an agents pane, and a multi-agent workflow. PDPA is Thailand's Personal Data Protection Act. The guard starts as redact, with the on-screen mask on and recording mode off. Those settings are not saved, and Claude Code starts that way again. redact replaces each detected value with a placeholder before the text is sent. block refuses to send a prompt that contains detected personal data. off turns off redaction and the tool-call refusal. The mask is separate: /pdpa-blur on, off, or record. While redact or block is on, a tool call that contains a placeholder issued in this session, written exactly as issued, is refused, and Claude is told to ask you for the real value. The mask draws a detected value in your messages and Claude's messages as a grey block. Hover reveals it, except in recording mode, and only in the terminal and the desktop app. The status line shows PDPA and the mode. Detection runs in the Claude Code process. The mod makes no network call of its own. The redacted conversation is still sent to your configured model provider, Anthropic by default. The author says the rules will miss some personal data and will flag some harmless text, that this is not a secret scanner, and that installing it does not make an organization compliant and is not legal advice. If a hook errors or runs past Claude Code's time limit, the text is sent unchanged, with no notice. Tested only with Claude Code 2.1.289.

The marketplace name is boombignose-mods. The marketplace also holds context-bar, agents-panel, and bbnw. This one installs on its own. The tool-call refusal is why this page files it under safety. It guards Thai and international personal data, such as a national ID number, a phone number, or an email address, in what is sent and on screen. display-redaction masks email addresses and secret-shaped text in what Claude Code draws, and leaves the transcript, the model's context, and the files unchanged. wp-credential-guard masks a WordPress username and application password, refuses a slash command that carries one, and denies Bash when a placeholder is unknown. This one guards personal data rather than credentials, replaces it before it is sent, and refuses a tool call that repeats a placeholder it issued. The redacted conversation still goes to the configured model provider on the login Claude Code already holds, so this page does not list that send as network access. The source writes the redaction toasts and the /pdpa-guard replies in Thai. The blur replies are in English.

Demo

The pdpa-thai section of the English README, on the author's GitHub page.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/pdpa-guard/pdpa-blur
  • prompt.submitWhen you send a prompt
  • session.appendWhen an entry is written to the transcript
  • prompt.attachmentA Claude Code event
  • prompt.contextA Claude Code event
  • tool.callAround a tool call, where it can hold one
  • ui.renderDraws into the sessionAssistantMessageUserMessage

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 2

  • /pdpa-guardPDPA guard: redact | block | off (no argument shows the current mode)
  • /pdpa-blurPDPA blur in the transcript: on | off | record (record = no hover reveal, for screen recording)

Files

The author's source, 3 files. They load when you open them.

Facts

Author
Boom-Vitt
Category
Safety
Marketplace
boombignose-mods
Repo
Boom-Vitt/boombignose-mods
Folder
pdpa-thai
Version
0.3.0
License
MIT
Repo stars
5
Last change
2026-10-08
Language
Shell
Files
8

Other mods in Safety

subagent-fenceerikdarlingdataHolds a commandRefuses a force-push, a push to a protected branch, a git command that skips hooks, and killing a process by name.launch-codesOneWave-AIHolds a commandHolds a dangerous shell command until you type a one-time code and press LAUNCH, and denies it otherwise.dogmaMarcel-BichHolds a commandRuns, asks about, or blocks git commands and deletes by your DOGMA-PERMISSIONS.md, always denies deleting a protected path, and draws the restricting rules.guard-packatretyak1985Holds a commandHolds file tools and shell moves that leave the project's roots, asks before a production deploy, and redacts secrets in a tool result before Claude reads it.supabase-guardSzotaszHolds a commandAsks before a Supabase write aimed at another project, or a destructive call, and stops the call when you refuse.secret-panebengousHolds a commandOpens a masked box beside the transcript when Claude needs a secret, gives Claude a placeholder, and puts the real value back only inside a Bash command.ultramodmertkayacsHolds a commandPacks ten mods: limits and context above the prompt, a guard with undo for rm -rf and git reset --hard, .env reads refused, and a receipt under each answer.envdavekissHolds a commandOpens a card when Claude needs a key, so you paste the value into a pane Claude can't read, and holds Claude's reads of .env files and commands that print them.model-allowlisterikdarlingdataHolds a commandRefuses a subagent spawn that pins a model id instead of a tier alias such as opus or sonnet, and holds spawns to model rules you write per agent type.ruflo-browserruvnetHolds a commandRefuses ruflo browser opens of file, javascript, data, or chrome URLs, credentialed or cloud-metadata hosts, unsafe Chrome flags, and cookie-reading scripts.ruflo-intelligenceruvnetHolds a commandRefuses a key, token, or password in what ruflo learns from, an email address in a public transfer, and a reset of ruflo's intelligence without confirm.ruflo-jujutsuruvnetHolds a commandRefuses a pull request ruflo creates or reviews when its title or body holds a key, token, or password, and a merge or close that does not carry confirm.
All 73 in Safety