Agent profile switcher for USER.md, SOUL.md, and AGENTS.md persona sets.
Project description
🎭 dprofile
Instant Persona Switching for AI Agents.
dprofile is a safe, deterministic profile switcher designed for the modern Agent era. It treats persona sets (USER.md, SOUL.md, AGENTS.md) as atomic units, allowing both humans and AI Agents to swap identities in milliseconds.
SKILL.md is the primary Agent interface for this project. It defines the workflow and safety rules. The CLI is the secondary deterministic executor and fallback guide.
✨ Key Features
- 🤖 Agent-Native: Designed to be called by Agents to self-evolve or switch sub-agent configurations.
- 🛡️ Safety First: Automatic backups,
.dprofile/state, and validation of target directories. - 🏗️ The Three-Layer Model:
USER.md: Who you are helping (Background & Preferences).SOUL.md: Who you are (Identity & Values).AGENTS.md: How you work (Tools & Protocols).
- 📄 Adapter activation: Verified adapters get a rendered copy at each tool's native paths.
🚀 Quick Start
Start by installing the Agent skill. In your Agent, ask:
Install the dprofile skill from github.com/pythias/dprofile.
After the skill is installed, ask the Agent to use a profile:
Use the coding profile for this project with Claude.
The Agent should read SKILL.md, classify the target, and choose the correct operation. For code projects, that usually means applying adapter files through dprofile apply.
The CLI is optional but recommended for deterministic execution:
pip install dprofile -i https://pypi.org/simple
📖 Usage Patterns
1. Global Agent Configs
Agents use dprofile to configure their standard global identities.
# Agent instruction: "Configure my global Claude persona to 'architect'."
dprofile apply architect --ai claude -g
2. Code Projects
Code projects may be opened by many Agents and IDEs, so dprofile targets the current project by default.
It generates and activates Agent-specific files such as CLAUDE.md, .cursor/rules/dprofile.mdc, .github/copilot-instructions.md, GEMINI.md, or AGENTS.md.
Adapters do not all receive the same source layers. Claude and Gemini get the full profile context, while Cursor, Copilot, Codex, and OpenCode default to the operating protocol layer so project instructions stay focused.
# Apply profile to the current project for Claude and Cursor
dprofile apply coding --ai claude,cursor
# Apply to all verified adapters in the current project
dprofile apply coding --ai all
🗃️ Bundled Profiles
dprofile comes with 25+ production-ready personas categorized for quick access:
🏗️ Engineering & AI
architect: System boundaries and engineering decisions.coding: Direct implementation and fixes.reviewer: Risk-first feedback and code quality.debugger: Hypothesis-driven root cause analysis.ops: SRE, production, and infrastructure.ai-infra: GPUs, vLLM, MCP, and inference optimization.ml-researcher: Model experiments and benchmarks.linux-expert: Kernel, syscalls, and low-level system mastery.
📝 Content & Design
writer: Long-form content and editing.copywriter: Conversion, headlines, and clarity.social-media: Platform-native posts (X, Red, Weibo).designer: UI systems and visual design.
🚀 Strategy & Product
product-manager: Scenarios, scope, and PRDs.founder-mode: High-leverage judgment and growth.sales: Persuasion, demos, and follow-ups.customer-support: Resolution and FAQ management.
🧠 Critical Thinking & Utility
slow-thinker: Deep reasoning and alternatives.challenger: Rigorous pushback and assumption testing.minimalist: Extreme conciseness.prompt-engineer: Agent workflows and tool routing.executor: Direct task execution.completionist: End-to-end delivery with tests/docs.
🛠️ Commands
| Command | Description |
|---|---|
dprofile list |
Lists profiles in the library. * reflects .dprofile/state.json in the current directory only; use show -g for global Agent homes. |
dprofile apply |
Apply a profile to the project or global Agent config. |
dprofile show |
Inspect current state or a specific profile. |
dprofile diff |
Compare two profiles side-by-side. |
dprofile guide |
Detailed usage protocol and adapter info. |
dprofile validate-profile |
Validate the structure of a profile. |
🤝 Development & Release
Testing
python3 -m unittest discover -s tests -v
Publishing a Release
- Update version in
pyproject.tomlanddprofile/__init__.py. - Tag and push (use the same version as in
pyproject.toml):
git tag vX.Y.Z
git push origin main && git push origin vX.Y.Z
Replace X.Y.Z with the version you set in pyproject.toml (for example 0.4.0, tag as v0.4.0).
📄 License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dprofile-0.4.1.tar.gz.
File metadata
- Download URL: dprofile-0.4.1.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0949bbf9b22d8de503b11020c89dc0d8ba10ddf8ad3333b213c588e76af22f8d
|
|
| MD5 |
e886bea154cb2e6f4d75164cdbc41f58
|
|
| BLAKE2b-256 |
4013f28755a96da4c2e43491f4237ef1f9831299cdf324ddd34635f6821598fc
|
Provenance
The following attestation bundles were made for dprofile-0.4.1.tar.gz:
Publisher:
publish.yml on pythias/dprofile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dprofile-0.4.1.tar.gz -
Subject digest:
0949bbf9b22d8de503b11020c89dc0d8ba10ddf8ad3333b213c588e76af22f8d - Sigstore transparency entry: 1566458762
- Sigstore integration time:
-
Permalink:
pythias/dprofile@9651dc67854a0ac73bb9a2db1c36b51981e84e7c -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/pythias
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9651dc67854a0ac73bb9a2db1c36b51981e84e7c -
Trigger Event:
push
-
Statement type:
File details
Details for the file dprofile-0.4.1-py3-none-any.whl.
File metadata
- Download URL: dprofile-0.4.1-py3-none-any.whl
- Upload date:
- Size: 50.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78af33d1ee3e2843d2b4304923e3ed3b366c1388908a2c09ad8d0d71953fa2c3
|
|
| MD5 |
9aa53bbe7199061520e2a0c44934bd71
|
|
| BLAKE2b-256 |
97910bf6d5525a9f0fba5f444faad9893100c59db6c9d77069280ef6643eddab
|
Provenance
The following attestation bundles were made for dprofile-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on pythias/dprofile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dprofile-0.4.1-py3-none-any.whl -
Subject digest:
78af33d1ee3e2843d2b4304923e3ed3b366c1388908a2c09ad8d0d71953fa2c3 - Sigstore transparency entry: 1566458769
- Sigstore integration time:
-
Permalink:
pythias/dprofile@9651dc67854a0ac73bb9a2db1c36b51981e84e7c -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/pythias
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9651dc67854a0ac73bb9a2db1c36b51981e84e7c -
Trigger Event:
push
-
Statement type: