Learns your preferences for how an agent should communicate, act, and take risks. Negotiates an update with you when observed behavior drifts from what's declared.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Panmind?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/panstudio-panmind-panmind)
---
name: panmind
description: Learns your preferences for how an agent should communicate, act, and take risks. Negotiates an update with you when observed behavior drifts from what's declared.
argument-hint: "[init|status|drift|negotiate|import|export]"
user-invocable: true
allowed-tools: "mcp__panmind__list_personas,mcp__panmind__get_behavioral_context,mcp__panmind__observe_interaction,mcp__panmind__get_drift_report,mcp__panmind__negotiate_update,mcp__panmind__import_profile,mcp__panmind__export_profile,Bash"
---
# PanMind Behavioral Science
PanMind observes your behavioral patterns and helps your agent learn your preferences. It detects when behavior drifts from your declared profile and proposes negotiated updates.
## Commands
Route based on $ARGUMENTS:
- `/panmind init [persona]` — bootstrap PanMind and onboard from `~/.claude/CLAUDE.md` and the active output style
- `/panmind` or `/panmind status` — show current behavioral profile
- `/panmind drift` — check for behavioral drift
- `/panmind negotiate` — review and accept/reject proposed changes
- `/panmind import <path>` — import a personality file into PanMind
- `/panmind export [format]` — export behavioral profile (yaml, json, soulspec)
## Init
When the user runs `/panmind init`, or asks to (re)onboard from `~/.claude/CLAUDE.md`: run the CLI directly. There's no MCP tool for this — it also sets the default persona, a filesystem-level change no MCP tool exposes.
```bash
panmind init [persona]
```
Omit `[persona]` to reuse the already-configured default, or `developer` on a fresh install. Imports `~/.claude/CLAUDE.md` and the active output style into that persona's user level as the authoritative source and makes it the default persona. Idempotent — rerunning overwrites the persona's user-level profile instead of duplicating it.
## Session Start
!`panmind status 2>/dev/null || echo "PanMind not yet bootstrapped"`
At the beginning of each session, call `get_behavioral_context` to load the user's behavioral preferences. Apply these preferences to guide your communication style, epistemic approach, interaction patterns, and risk posture. Omit `persona_name` unless the user names a specific persona — it falls back to `PANMIND_DIR/default_persona`, then `"default"`. Pass `model` with your own model id when you know it (it's usually stated in your system prompt, e.g. `claude-sonnet-5`) so the context can counter that specific model's observed tendencies rather than the average across models.
```
Tool: get_behavioral_context
Args: { "model": "<your model id, if known>" }
```
## Ongoing Observation
After completing significant work, call `observe_interaction` with the recent conversation messages. This feeds the observation engine and reports whether a profile update is recommended. Pass the same `session_id` for every call within one conversation — it's the idempotency key that keeps repeated calls from double-counting the same turns.
```
Tool: observe_interaction
Args: { "messages": [...], "session_id": "<stable id for this conversation>" }
```
## Drift Detection
When `observe_interaction` returns `negotiation_recommended: true` (or a non-null `proposal_id`), call `get_drift_report` and present the summary to the user naturally. Do not interrupt the user's workflow. Mention it at a natural break point.
```
Tool: get_drift_report
Args: {}
```
The response includes a `proposal_id` and a `proposal_tier`, either `"suggestion"` or `"strong"`. Hold onto the id — `negotiate_update` needs it.
## Negotiation
Match tone to `proposal_tier`. For `"suggestion"`, the evidence is early: phrase it as tentative and easy to wave off, e.g. "you might be leaning more `<state>` than your declared profile, but it's early days — want me to update it, or keep watching?" For `"strong"`, the evidence is solid: "it looks like you've been running more `<state>` than your declared profile says — want me to update that?" Either way it's a question, not a verdict that the profile is wrong. Use the `proposal_id` from `get_drift_report`, not a persona name alone — a stale or wrong id is rejected rather than silently applied to whatever the current proposal happens to be.
A plain "no" is a complete answer. Reject it immediately: don't ask why, don't re-present the same proposal again later in the same session, and don't fall back to a partial accept the user didn't ask for. A rejection is itself useful evidence — record it and move on.
If the user accepts:
```
Tool: negotiate_update
Args: { "proposal_id": "<id from get_drift_report>", "decision": "accept" }
```
If the user rejects, a bare "no" included — pass whatever reason is available, or omit it:
```
Tool: negotiate_update
Args: { "proposal_id": "<id from get_drift_report>", "decision": "reject", "reason": "..." }
```
`accepted_dimensions` narrows either decision to specific dimensions (default: all dimensions in the proposal).
If your client supports form elicitation, you can instead call `negotiate_update` with only the `proposal_id`: the user then decides in a form (accept or reject, and which dimensions). A declined or cancelled form changes nothing.
## Import
When the user wants to import a personality file:
```
Tool: import_profile
Args: { "source_path": "CLAUDE.md" }
```
A relative `source_path` is read from the import root: `PANMIND_IMPORT_ROOT`, else the directory the server started in. Files outside that root, symlinks that lead out of it, and files over 256 KiB are refused. Add `"persona_name"` to name the resulting persona explicitly; otherwise it's derived from the filename.
## Export
When the user wants to see or save their profile:
```
Tool: export_profile
Args: { "format": "soulspec" }
```
## Behavioral Dimensions
PanMind tracks nine behavioral dimensions. Four cover stance:
1. **Epistemic Style** — how uncertainty is handled (confident, hedging, admits ignorance, speculating)
2. **Interaction Agency** — how autonomous the agent is (asks first, assumes and acts, offers options, decides unilaterally, defers to user)
3. **Communication Register** — output structure and density (terse, moderate, thorough, technical dense, plain accessible)
4. **Risk Caution** — safety vs speed tradeoff (acts immediately, checks before acting, warns frequently, refuses ambiguity)
Five more, orthogonal to stance, cover manner:
5. **Structure** — prose vs. headers and bullets (prose, light structure, heavy structure)
6. **Sycophancy** — praise and validation vs. candor (candid, neutral, flattering)
7. **Narration** — announcing steps, recapping, closing pleasantries (silent action, brief signposting, narrates and recaps)
8. **Specificity** — concrete references vs. adjectives (concrete, mixed, vague)
9. **Pushback** — holding a position vs. giving in, labeled only when the user pushed back (holds position, concedes with reason, capitulates)
Each dimension is a probability distribution, not a label. The dominant state guides behavior, but secondary tendencies add nuance.
## Privacy
All data is stored locally in `~/.panmind/` (or `PANMIND_DIR`, if set). Nothing is sent to external services. Every profile change is git-committed for full version history.