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

acd-persona-generator

v0.1.0

Published

Generate ACD-compliant AI agent persona specifications. Not just system prompts — complete character architectures with Level 2 loop design, drift defense, and behavioral memory.

Readme

acd-persona-generator-mcp

MCP server that generates ACD-compliant AI agent persona specifications. Not just system prompts — complete character architectures with Level 2 loop design, drift defense, and behavioral memory.

Built on Agent Character Design (ACD) — a discipline for designing AI agent personalities, behavior arcs, and interaction rhythms.

What it does

Three tools covering the full persona lifecycle:

| Tool | Input | Output | |---|---|---| | assess_level | A system prompt | ACD Level (1/2/3) + stability score + weaknesses + specific upgrade actions | | generate_persona | Requirements (role, context, constraints) | Full Level 2 persona spec: disposition profile, re-grounding schedule, behavioral memory schema, drift defense rules | | upgrade_to_level2 | Existing persona spec | Enhanced spec with added loop-shaping mechanisms |

Why this exists

Most "AI persona" tools stop at Level 1 (input shaping) — a well-written system prompt. That's fragile:

  • Level 1 — system prompts. Drifts under long conversations. Breaks under stimulus. What everyone does.
  • Level 2 — loop shaping. Context re-injection, behavioral memory, drift detection. What Claude's best agent systems actually use.
  • Level 3 — prior shaping. Fine-tuning. Expensive, rare, not always needed.

This server helps you design at Level 2 — the level where character actually stabilizes across sessions.

Grounded in real data: Anthropic's Persona Selection Model (PSM) research shows emotional conversations accelerate drift 7.3×, while Level 2 activation capping reduces drift 60%. These numbers are baked into the drift risk assessment.

Install

npm install -g acd-persona-generator

Or run directly:

npx acd-persona-generator

MCP Client Config

For Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "acd-persona-generator": {
      "command": "npx",
      "args": ["-y", "acd-persona-generator"]
    }
  }
}

Development

npm install
npm run build       # compile TypeScript
npm test            # run test suite (8 tests)
npm run dev         # run with hot reload

Requires Node ≥ 20.

Architecture

src/
├── index.ts       # MCP server entry + tool registration
├── generator.ts   # Core persona generation logic
└── schemas.ts     # Zod schemas for all tool inputs/outputs

tests/
└── generator.test.ts   # 8 tests covering all 3 tools

Part of the ACD Ecosystem

  • agent-character-design — The Field Guide + methodology spec
  • acd-persona-generator-mcp (this repo) — Seed 1: persona generation
  • acd-behavioral-audit-mcp (coming soon) — Seed 2: audit existing agents

License

MIT. See LICENSE.


Built by Zico Zhou. The Field Guide is at agentcharacterdesign.com (coming soon).