@isr4el-silv4/persona
v1.0.4
Published
Persona extension for pi
Maintainers
Readme
Persona Extension

A Pi extension that lets you create reusable personas — configurations that restrict which tools the agent can use and inject custom system prompts. Think of them as specialized modes for your Pi agent.
Installation
pi install npm:@isr4el-silv4/personaWhat Are Personas?
Personas let you constrain and customize the agent's behavior. Each persona defines:
- A subset of tools — restrict the agent to only the tools it needs
- A system prompt — custom instructions that shape how the agent behaves
- A scope — global (all projects), project-local, or ephemeral (one session only)
Example Personas
- Scout — only
read,grep,find,lsfor fast codebase exploration - Reviewer — only
readandgrepfor reading and reviewing code - Architect — full tool access with a system prompt focused on design decisions
- Bug Hunter — restricted tools with instructions to focus on debugging
Usage
Create a Persona
/persona createStarts an interactive wizard that walks you through:
- Name — e.g.,
scout(lowercase, hyphens for spaces) - Description — short summary shown in the UI
- Tools — pick which tools the persona can use (checkbox list)
- System prompt mode —
replace(overwrite Pi's default) orappend(add to it) - Inherit project context — include project-level instructions
- Interactive — allow the agent to ask you questions
- System prompt — the actual instructions for the agent
- Scope — global, project, or ephemeral
Activate a Persona
/persona scoutThe agent will now use only the tools and instructions defined by that persona. A badge appears in the UI showing the active persona.
List Available Personas
/persona listShows all personas with their scope (🌍 global, 📁 project, ⚡ ephemeral).
Edit a Persona
/persona edit scoutRe-opens the wizard pre-filled with the persona's current values. Change anything and save.
Delete a Persona
/persona delete scoutRemoves the persona from disk.
Clear Active Persona
/persona noneReturns the agent to its default tool set and system prompt.
Scopes
| Scope | Where It's Stored | When To Use |
|-------|-------------------|-------------|
| Global | ~/.pi/agent/personas/ | Personas you use across all projects |
| Project | .pi/personas/ | Personas specific to the current project |
| Ephemeral | In-memory only | Quick one-off personas that disappear after the session |
System Prompt Modes
replace— Your prompt completely replaces Pi's default system prompt. Use this for focused personas that shouldn't know about general-purpose behavior.append— Your prompt is added to the end of Pi's default. Use this to add constraints or instructions on top of the default behavior.
Tips
- Use ephemeral scope to experiment with a persona before saving it permanently
- Name personas with short, descriptive names — you'll type them often
- Use
appendmode when you want the agent to keep its general capabilities while adding new constraints - Use
replacemode when you want a tightly focused agent with no extra behavior
