ClaudeCodeMod

All shelves / Mods / Safety

persona

By omeerdvrn

persona is a Claude Code safety mod by omeerdvrn.

Sets the role Claude works for, such as UI/UX Designer or QA Engineer, shows it under the prompt, and refuses edits and shell commands outside that role.

DrawsHolds a command

Install

The marketplace name is o-mods.

In your shell
claude plugin marketplace add omeerdvrn/o-mods
claude plugin install persona@o-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
1.0.0
License
MIT
Repo stars
6
Last change
2026-10-15

What it can reach

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

Mods need Claude Code 2.1.29x or later. Run /reload-plugins in a session that is already open. /persona lists the personas, /persona ui-ux switches, and /persona off clears. The choice is saved on this machine and applies to every session and project. CLAUDE_PERSONA in ~/.claude/settings.json wins over it. The six built-in personas are Developer, UI/UX Designer, Backend Developer, QA Engineer, Technical Writer, and Product Manager, who may edit nothing in the project. Each adds a role prompt to the system prompt. It checks the target path of Edit, Write, and NotebookEdit, and checks Bash commands against the persona's blocked patterns and the files they visibly write. patch and git apply are refused under a restricted persona. The Bash check is best effort: a script that writes files on its own is not read. JSON files in ~/.claude/personas/ or a project's .claude/personas/ change a persona or add one. In terminals with the kitty graphics protocol, the role shows as the Claude crab dressed for it. /persona pictures fix changes WezTerm, herdr, and shell profile settings so the crab shows, keeping a backup of each file, and only when you run it.

The marketplace name is o-mods. The marketplace also holds heat, linear, usage-bar, huh, and other mods. This one installs on its own. The README's install names heat and says to install any mod by its name; this page puts this mod's name in that line. Keeping Claude's edits inside one role is why this page files it under safety. modes adds /ask, which refuses edits while it is on. rulebook-guard asks before git commit --amend, an unformatted push, or personal details in notes and commits. This one ties what Claude may edit to a role, as file patterns per persona, and tells Claude to explain the change that is needed instead of working around the block.

Demo

The author's recording of persona: /persona ui-ux sets the persona to UI/UX Designer, shown in the footer. make the button corners rounded edits Button.tsx to add rounded-lg; add a discount field to orders is refused because src/api/orders.ts is off limits for this persona, and Claude says a backend developer should make the change. Then /persona backend and /persona qa, and the footer reads QA Engineer. The project is the author's sample.
From the author's repo.

What it hooks into

  • ui.renderDraws into the sessionSessionModePromptHint
  • session.startWhen a session starts
  • command.runWhen you run its slash command/persona/persona:persona
  • tool.callAround a tool call, where it can hold oneEditWriteNotebookEditBash
  • prompt.composeWhile you write a prompt

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

Slash commands 1

  • /personaSet the role Claude works for on this machine: what it may edit and how it answers

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
omeerdvrn
Category
Safety
Marketplace
o-mods
Repo
omeerdvrn/o-mods
Folder
mods/persona
Version
1.0.0
License
MIT
Repo stars
6
Last change
2026-10-15
Language
TypeScript
Files
17

Other mods in Safety

outboxcharlie947Holds a commandHolds each message Claude tries to send by WhatsApp, email, or Slack in a pane with its text, recipients, and attachments, until you press Send, Edit, or Hold.guardrailsmishgoldenbergHolds a commandBlocks commands such as rm -rf, mass kubectl deletes, or a force push from clickable rules with presets, and checks scripts Claude wrote before they run.loop-breakermishgoldenbergNotices Claude going in circles, the same command failing 3 times or the same code rewritten 3 times in a turn, tells you, and tells Claude to stop and rethink.scope-guardtheonly1meHolds a commandAsks before Claude edits, deletes, or moves files outside what you asked for, and flags milder drift above the prompt with keys to pull Claude back.installguardgrichesHolds a commandHolds a package install the registry flags, such as a made-up name, a lookalike, or an hours-old release, and asks you, with a report pane beside the question.flywheel-modHarperZ9Holds a commandHolds a risky shell or file-edit call when the Flywheel monitor flags it, shows held and passed counts above the prompt, and writes a receipt for each turn.push-gateIvanLutsenkoHolds a commandAsks before every git push the model runs, with the repository, branch, upstream, commit count, and a force-push warning, and runs the confirmed push itself.devtoolsNMenzelHolds a commandHolds a tool call at a breakpoint you set for Continue, Step, or Reject, with a dashboard pane of every call and Error Lens on why a call failed.agentic-flowruvnetHolds a commandRefuses an agentic_flow_agent call whose task matches a destructive or exfiltration pattern or passes an API key, and adds a status-line entry for the guard.agentdbruvnetHolds a commandRefuses a write to AgentDB memory that holds a key, token, password, or private key, and refuses its destructive admin tools unless you turn them on.cc-askpassGoneToneOpens a password pane when a command Claude runs asks for sudo, ssh, or git credentials, so the password goes to the program and never reaches the model.secret-envtoy-craneHolds a commandOpens a pane for typing an API key into a .env file, shows [hidden] wherever the value appears in tool results, and denies Write and Edit on that key's line.
All 73 in Safety