Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By fprochazkav0.8.7MITIn 1 marketplace
Lets a Claude Code session delegate work to foreground subagents, or dispatch worker sessions into tmux windows. Hooks inject these roles at every session and subagent start; needs Claude Code 2.1.257 or newer, and the README expects CLAUDE_CODE_FORK_SUBAGENT set to 0.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
default_roleRole injected into a session that a launcher did not give a role: the name of a file under roles/ without .md, or none for no role. A role set through FP_CC_AUTH_SWITCH_ROLE or FP_CC_AUTH_SWITCH_ROLE_PROMPT wins over this option.
stringdefault worker
Resident agent typesresident_agent_types
Third-party agent types that stay alive for a whole run and report through SendMessage; they get the resident subagent role instead of the task subagent role, like the plugin's own agent-roles:resident. Empty by default.
string list
Four role files, one injected into every agent before it takes its first action:
roles/worker.md — the top-level session, on one task. It talks to the user, decides, delegates, and synthesizes. It does not grep, build, or explore. When a dispatcher's brief names it, it also reports to that dispatcher.roles/dispatcher.md — a top-level session that runs worker sessions in sibling tmux windows instead of doing task work. It briefs, watches, nudges and compacts them, spot-checks what they claim, and closes the ones it started; each worker rolls out its own change. A session gets it only when asked for, see Running a dispatcher.roles/task-subagent.md — every subagent, at any nesting depth. It runs everything in the foreground, waits for nothing it was not asked to wait for, and ends its turn with findings.roles/resident-subagent.md — subagents that stay alive for a whole run and report through SendMessage: the plugin's agent-roles:resident agent type and the types listed in the resident_agent_types plugin option. It waits only the way its brief says, sends a heartbeat so silence means death, and ends its turn only on its stop condition.A SessionStart hook delivers the worker role, unless a launcher gave the session another role. A SubagentStart hook delivers one of the two subagent roles, picked by the payload's agent_type: the resident role for agent-roles:resident and the types in the resident_agent_types plugin option, the task role for everything else.
To start a resident subagent, spawn it with subagent_type: "agent-roles:resident", a general-purpose agent with every tool. The agent type is the only value the caller sets that reaches the SubagentStart hook: the payload carries no prompt, description or run_in_background.
claude plugin marketplace add fprochazka/claude-code-plugins --scope user
claude plugin install agent-roles@fprochazka-claude-code-plugins --scope user
Needs Claude Code 2.1.257 or newer. From 2.1.216 to 2.1.252 a plugin's hooks were silently dropped after the first one registered, so on those versions the roles never arrive and nothing reports it. The hook needs bash; it uses jq when present and falls back to plain output without it.
The plugin also expects CLAUDE_CODE_FORK_SUBAGENT set to 0 in ~/.claude/settings.json:
{ "env": { "CLAUDE_CODE_FORK_SUBAGENT": "0" } }
The flag gates a built-in fork agent type. A fork inherits the parent's whole conversation, so it starts with the worker role already in context and then receives the task subagent role from SubagentStart. The two contradict each other: the worker delegates its work and runs it in the background, the task subagent does neither. A fork also inherits the parent's model, against the rule to pick a model per subtask. Nothing selects a fork on its own — the caller asks for subagent_type: "fork" — so the flag removes the choice rather than changing a default.
noisy-tools-in-subagent is a dependency and installs with the plugin. The worker role points at its noisy-runner agent for builds, tests, and linters.
7-day copy clicks
npx claudepluginhub fprochazka/claude-code-plugins --plugin agent-rolesPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.