profiles
A Claude Code plugin for managing per-workflow .claude profiles backed by a
git repo of profile branches. You define your own repo and profiles, then select
from existing profiles or create new ones. This plugin handles config and
management of the profile branches.
Use this plugin if you frequently wear different hats (do a variety of different
workflows) and want to minimize context overhead between different projects without
needing to reconfigure each different set of addons.
Each workspace's .claude/ is a clone of a profiles repo on a chosen branch.
Different scenarios (rust-cli, web-dev, claude-addon-dev, etc.) live on
different branches. Configuring or sharing a profile is plain git.
This repo is just the plugin. Your profiles live in a separate repo that
you own and create — install the plugin and run /profiles:init to set
one up.
Install
In Claude Code:
/plugin marketplace add https://github.com/jhughes-dev/claude-profiles.git
/plugin install profiles@profiles
Then run /profiles:init to configure your profiles repo. The wizard handles:
- Pointing at an existing repo (URL or local path).
- Creating a new remote (uses
gh/glab if available).
- Initializing a new local bare repo, seeded with starter content.
A local bare repo is a fully supported, no-server option: it's a real git remote
addressed as file://<path>, so every workspace clones, pushes, and pulls it
exactly like a hosted one. You can always push it to a hosting service later.
It will also offer to capture your current ~/.claude config as your user
profile on your new profiles repo (without overwriting any live files). The
user-profile branch name is your choice — user by default, or any name (e.g.
main); it's recorded in the global config.
It is recommended that you keep the profiles plugin enabled in your "user"
profile (i.e. in ~/.claude or wherever you configure your setup)
Your profiles repo
/profiles:init sets up a separate git repo that you own — any git
repo is sufficient: a hosted remote (GitHub/GitLab) or a purely local bare repo
on your machine. It just holds your profiles, one per branch:
| Branch | Role |
|---|
user | Your personal ~/.claude config, captured during init. The branch name is configurable (default user; can be any branch, e.g. main). |
template | Starting content for new profile branches. /profiles:set --new branches from here. |
| Scenario branches | One per development context (rust-cli, web-development, etc.). |
Workspace commands
Once /profiles:init is done, in any workspace:
/profiles:set # interactive picker — detects the repo's stack and suggests a fit
/profiles:set rust-cli # clone a specific profile
/profiles:set --new my-thing # new branch from template, configure then push
/profiles:set --new combo --from rust-cli,addons-dev # merge two profiles into a new branch
/profiles:set --adopt my-thing # adopt this workspace's existing .claude as a new profile branch
/profiles:set --none # mark workspace as no-profile
/profiles:status # show sync status of this workspace's profile
/profiles:update # pull + push this workspace's profile (resolve conflicts)
/profiles:configure # promote user-space config (plugins/skills/settings) into this profile
/profiles:describe "Rust CLI projects" # set this profile's one-line description
/profiles:source list # list profile sources
/profiles:source add work git@host:team/profiles.git # draw profiles from another repo called "work"
The plugin's SessionStart hook reminds you to commit/push profile changes,
pull updates, or run /profiles:set in workspaces that don't have one yet.
Multiple sources
Profiles can come from more than one repo — e.g. a personal repo plus a shared
team repo. Manage them with /profiles:source (add/remove/list/default).
/profiles:set <branch> finds which source provides a branch and asks
when several share the same name; the chosen source is recorded in the
workspace marker's source field so future syncs pull from the right repo.
Profile descriptions
A profile can describe itself with a one-line .profile-description file at its
root (.claude/.profile-description). Set it with /profiles:describe,
or commit the file directly. Descriptions are cached in the config as profiles
are cloned/adopted and shown when picking a profile (/profiles:set,
list-branches --by-source), so it's easy to recognize what each branch is for.