npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@isr4el-silv4/persona

v1.0.4

Published

Persona extension for pi

Readme

Persona Extension

persona

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/persona

What 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, ls for fast codebase exploration
  • Reviewer — only read and grep for 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 create

Starts an interactive wizard that walks you through:

  1. Name — e.g., scout (lowercase, hyphens for spaces)
  2. Description — short summary shown in the UI
  3. Tools — pick which tools the persona can use (checkbox list)
  4. System prompt modereplace (overwrite Pi's default) or append (add to it)
  5. Inherit project context — include project-level instructions
  6. Interactive — allow the agent to ask you questions
  7. System prompt — the actual instructions for the agent
  8. Scope — global, project, or ephemeral

Activate a Persona

/persona scout

The 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 list

Shows all personas with their scope (🌍 global, 📁 project, ⚡ ephemeral).

Edit a Persona

/persona edit scout

Re-opens the wizard pre-filled with the persona's current values. Change anything and save.

Delete a Persona

/persona delete scout

Removes the persona from disk.

Clear Active Persona

/persona none

Returns 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 append mode when you want the agent to keep its general capabilities while adding new constraints
  • Use replace mode when you want a tightly focused agent with no extra behavior